Skip to content

Commit

Permalink
add fbtft module for spi display
Browse files Browse the repository at this point in the history
  • Loading branch information
SamulKyull authored and SamulKyull committed Apr 15, 2024
1 parent 66920c7 commit a7aacf4
Show file tree
Hide file tree
Showing 16 changed files with 2,908 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bsp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ source "bsp/platform/Kconfig"
source "bsp/platform/Kconfig.debug"
source "bsp/drivers/Kconfig"

# Avaota SBC Modules
source "bsp/modules/Kconfig"

endmenu
3 changes: 2 additions & 1 deletion bsp/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0

obj-y += drivers/
obj-y += drivers/
obj-y += modules/
1 change: 0 additions & 1 deletion bsp/drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,3 @@ obj-y += fs/

#awlink
obj-y += awlink/

4 changes: 4 additions & 0 deletions bsp/modules/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: GPL-2.0

# spi tft
source "bsp/modules/fbtft/Kconfig"
4 changes: 4 additions & 0 deletions bsp/modules/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: GPL-2.0

# spi tft
obj-y += fbtft/
21 changes: 21 additions & 0 deletions bsp/modules/fbtft/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPDX-License-Identifier: GPL-2.0
menuconfig AVA_FB_TFT
tristate "Support for onboard SPI TFT LCD display modules"
depends on FB && SPI
depends on GPIOLIB || COMPILE_TEST
select FB_SYS_FILLRECT
select FB_SYS_COPYAREA
select FB_SYS_IMAGEBLIT
select FB_SYS_FOPS
select FB_DEFERRED_IO
select FB_BACKLIGHT

config AVA_FB_TFT_ST7789V
tristate "FB driver for the ST7789V LCD Controller"
depends on AVA_FB_TFT
help
This enables generic framebuffer support for the Sitronix ST7789V
display controller. The controller is intended for small color
displays with a resolution of up to 320x240 pixels.

Say Y if you have such a display that utilizes this controller.
7 changes: 7 additions & 0 deletions bsp/modules/fbtft/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
# Core module
obj-$(CONFIG_AVA_FB_TFT) += fbtft.o
fbtft-y += fbtft-core.o fbtft-sysfs.o fbtft-bus.o fbtft-io.o

# drivers
obj-$(CONFIG_AVA_FB_TFT_ST7789V) += fb_st7789v.o
32 changes: 32 additions & 0 deletions bsp/modules/fbtft/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FBTFT
=========

Linux Framebuffer drivers for small TFT LCD display modules.
The module 'fbtft' makes writing drivers for some of these displays very easy.

Development is done on a Raspberry Pi running the Raspbian "wheezy" distribution.

INSTALLATION
Download kernel sources

From Linux 3.15
cd drivers/video/fbdev/fbtft
git clone https://github.com/notro/fbtft.git

Add to drivers/video/fbdev/Kconfig: source "drivers/video/fbdev/fbtft/Kconfig"
Add to drivers/video/fbdev/Makefile: obj-y += fbtft/

Before Linux 3.15
cd drivers/video
git clone https://github.com/notro/fbtft.git

Add to drivers/video/Kconfig: source "drivers/video/fbtft/Kconfig"
Add to drivers/video/Makefile: obj-y += fbtft/

Enable driver(s) in menuconfig and build the kernel


See wiki for more information: https://github.com/notro/fbtft/wiki


Source: https://github.com/notro/fbtft/
3 changes: 3 additions & 0 deletions bsp/modules/fbtft/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* convert all these over to drm_simple_display_pipe and submit for inclusion
into the DRM subsystem under drivers/gpu/drm - fbdev doesn't take any new
drivers anymore.
Loading

0 comments on commit a7aacf4

Please sign in to comment.