notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.84k stars 495 forks source link

[Kernel 5.9.14] 3.5" (480x320) ILI9486 SPI Touch Panel (3.5inch RPi LCD (A) V3) #565

Closed jonathan-gatard closed 3 years ago

jonathan-gatard commented 3 years ago

Hi,

This is my screen: https://www.aliexpress.com/item/32587995145.html (copie of https://www.waveshare.com/3.5inch-rpi-lcd-a.htm) I have an OrangePiZero

Yesterday i setup my screen on "Armbian_5.91_Orangepizero_Debian_buster_next_4.19.59" with this:

nano /boot/armbianEnv.txt

overlays=spi-spidev spi-add-cs1
param_spidev_spi_bus=1
param_spidev_spi_cs=1

nano /etc/modules-load.d/fbtft.conf

fbtft
fbtft_device

nano /etc/modprobe.d/fbtft.conf options fbtft_device rotate=90 name=piscreen speed=32000000 busnum=1 gpios=reset:2,dc:18 txbuflen=32768 fps=25

It created a framebuffer (fb0) which worked without problem. But to enable touchscreen i had to build ads7846.c and fbtft_tools. It doesn't work on kernel 4.19.59 because i don't found the linux headers !

So i would like to do with this image "Armbian_20.11.3_Orangepizero_buster_current_5.9.14" kernel 5.9.14. I see that fbtft is not supported since 5.4 and "fbtft will now only work with Device Tree due to the above mentioned disruptive gpio rework.", could you guide me please ? Is it possible ?

I installed "linux-headers-current-sunxi" for my allwinner cpu !

Thanks !

jonathan-gatard commented 3 years ago

Work with this https://github.com/Kalypox/ili9486-xpt2046