I’m trying to use a 3.5 LCD (waveshare clone) with ILI9486 + XPT2046 with my orange pi zero. My display is like this.
I installed both Debian_buster_next_4.19.59 and Ubuntu_bionic_next_4.19.57 and I followed many guides in here with no success.
I edited armbianEnv.txt and added these:
overlays=spi-spidev spi-add-cs1
param_spidev_spi_bus=1
param_spidev_spi_cs=1
After that I ran this
sudo modprobe fbtft_device custom name=fb_ili9486 gpios=dc:18,reset:2 speed=16000000 busnum=1 rotate=90
and didn’t get any error. I figured that the reset & DC pins on orange pi zero are pin22(GPIO2) and pin18(GPIO18) but I’m not 100% sure about these.
With dmesg I see these:
[ 179.174013] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 179.181645] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[ 179.183696] spidev spi1.1: spidev spi1.1 1000kHz 8 bits mode=0x00
[ 179.184295] fbtft_device: GPIOS used by 'fb_ili9486':
[ 179.184307] fbtft_device: 'dc' = GPIO18
[ 179.184314] fbtft_device: 'reset' = GPIO2
[ 179.184331] spidev spi1.1: spidev spi1.1 1000kHz 8 bits mode=0x00
[ 179.184347] spi spi1.0: fb_ili9486 spi1.0 16000kHz 8 bits mode=0x00
[ 179.202576] fb_ili9486: module is from the staging directory, the quality is unknown, you have been warned.
[ 179.749873] Console: switching to colour frame buffer device 60x40
[ 179.751385] graphics fb0: fb_ili9486 frame buffer, 480x320, 300 KiB video memory, 4 KiB buffer memory, fps=20, spi1.0 at 16 MHz
I tried
con2fbmap 1 0
but the screen remains white
What else could I try? How could I debug the issue?