Closed recner closed 7 years ago
I can manually set GPIO pins by
It's gpio 0 (zero) that fails, have you tried that through sysfs?
Oh, I haven't noticed that gpios start at 1.
Now I'm using this command sudo modprobe fbtft_device name=itdb24 gpios=db0:8,db1:6,db2:4,db3:2,db4:7,db5:5,db6:3,db7:1,cs:15,dc:13,wr:11,reset:12
LED backlight is wired directly to GND, so backlight is always on. RD is wired to 3.3v.
All pins are wired correctly, tested with python script from troubleshooting
Screen however stays white. Is it correct driver for this screen?
screen: http://www.ebay.com/itm/282274565558 dmesg:
[ 34.721559] dma0: IRQ with no loaded buffer?
[ 45.935222] fbtft_device: SPI devices registered:
[ 45.939842] fbtft_device: 'fb' Platform devices registered:
[ 45.943808] fbtft_device: GPIOS used by 'itdb24':
[ 45.962076] fbtft_device: 'db0' = GPIO8
[ 45.983445] fbtft_device: 'db1' = GPIO6
[ 45.986501] fbtft_device: 'db2' = GPIO4
[ 45.989550] fbtft_device: 'db3' = GPIO2
[ 46.003354] fbtft_device: 'db4' = GPIO7
[ 46.006612] fbtft_device: 'db5' = GPIO5
[ 46.009673] fbtft_device: 'db6' = GPIO3
[ 46.012723] fbtft_device: 'db7' = GPIO1
[ 46.023345] fbtft_device: 'cs' = GPIO15
[ 46.026403] fbtft_device: 'dc' = GPIO13
[ 46.029452] fbtft_device: 'wr' = GPIO11
[ 46.032762] fbtft_device: 'reset' = GPIO12
[ 46.054890] fbtft_device: 'fb' Platform devices registered:
[ 46.059302] fbtft_device: fb_s6d1121 id=0 pdata? yes
[ 46.343368] graphics fb2: fb_s6d1121 frame buffer, 240x320, 150 KiB video memory, 4 KiB buffer memory, fps=20
Is it correct driver for this screen?
Looks that way, but the default init sequence in the driver isn't the same as one Arduino init I found, some register settings was missing.
I couldn't find any reference on how to setup the controller on the ebay page. The init sequence is panel specific.
fbtft init: https://github.com/notro/fbtft/blob/master/fb_s6d1121.c#L41 Arduino init: https://github.com/iot-playground/Arduino/blob/master/external_libraries/UTFT/tft_drivers/s6d1121/initlcd.h
init= parameter: https://github.com/notro/fbtft/wiki/fbtft_device#parameters
I tried to pass init sequence from arduino library via init parameter and nothing happened (white screen).
I connected screen to an arduino and uploaded UTFT library example. It also doesn't work (white screen).
I assume that I have broken lcd.
I'm closing this, because it's definitely not an issue of fbtft.
Thank you for helping :)
Hi Notro I have trouble setting up fbtft. My display is using S6D1121 driver. I am trying to load it using "sudo modprobe fbtft_device name=itdb24 gpios=db0:7,db1:5,db2:3,db3:1,db4:6,db5:4,db6:2,db7:0,cs:14,dc:12,wr:10,reset:11,rd:8,led:9" Backlight is not lighting up. Screen also doesn't turn on.
I think my problem is here
[ 55.093561] fb_s6d1121 fb_s6d1121.0: fbtft_request_gpios: gpio_request_one('db7'=0) failed with -22
but i'm unable to find any solution.I can manually set GPIO pins by:
Thank you in advance.
device: Cubieboard A10 with armbian installed
uname -a:
Linux cubieboard 3.4.113-sun4i #1 PREEMPT Thu Feb 2 21:26:29 CET 2017 armv7l armv7l armv7l GNU/Linux
dmesg: