Edited by komw at 2016-2-29 04:43
Could you explain how you make to work your TFT?
I have a 3.5 KEDEI version4 LCD tft ( pinout like this http://imageshack.com/i/p77p1oydj but I have a version4)I compiled kernel with SPI, and FBTFT support, next I configured my SPI at script.bin:
- [spi0]
- spi_used = 1
- spi_cs_bitmap = 1
- spi_mosi = port:PC00<3><default><default><default>
- spi_miso = port:PC01<3><default><default><default>
- spi_sclk = port:PC02<3><default><default><default>
- spi_cs0 = port:PC03<3><1><default><default>
- [spi1]
- spi_used = 0
- spi_cs_bitmap = 1
- spi_cs0 = port:PA13<2><1><default><default>
- spi_sclk = port:PA14<2><default><default><default>
- spi_mosi = port:PA15<2><default><default><default>
- spi_miso = port:PA16<2><default><default><default>
-
- [spi_devices]
- spi_dev_num = 1
- [spi_board0]
- modalias = "spidev"
- max_speed_hz = 16000000
- bus_num = 0
- chip_select = 0
- mode = 0
- full_duplex = 1
- manual_cs = 0
- irq_gpio = 1
Copy code
and I tried to enable kernel modules:
modprobe fbtft_device custom name=fb_ili9341 gpios=reset:25,dc:24,led:18 speed=16000000 rotate=90 bgr=1
But always I get the error at dmesg:
Some stacktrace and errors:
[ 265.655190] fbtft_device: SPI devices registered:
[ 265.655213] fbtft_device: spidev spi0.0 16000kHz 8 bits mode=0x00
[ 265.655224] fbtft_device: 'fb' Platform devices registered:
[ 265.655294] fbtft_device: Deleting spi0.0
[ 265.655736] fbtft_device: GPIOS used by 'fb_ili9341':
[ 265.655750] fbtft_device: 'reset' = GPIO25
[ 265.655759] fbtft_device: 'dc' = GPIO24
[ 265.655767] fbtft_device: 'led' = GPIO18
[ 265.655775] fbtft_device: SPI devices registered:
[ 265.655787] fbtft_device: fb_ili9341 spi0.0 16000kHz 8 bits mode=0x00
[ 265.670563] gpio_request: CHIP->REQUEST error
[ 265.670582] gpio_request: gpio-25 (fb_ili9341) status -22
[ 265.670602] fb_ili9341 spi0.0: fbtft_request_gpios: gpio_request_one('reset'=25) failed with -22
265.670649] WARNING: at drivers/gpio/gpiolib.c:103 gpio_ensure_requested+0x54/0xb4()
[ 265.670660] autorequest GPIO-25
[ 265.670668] Modules linked in: fb_ili9341(+) fbtft_device fbtft fb_sys_fops
[ 265.671340] WARNING: at drivers/gpio/gpiolib.c:103 gpio_ensure_requested+0x54/0xb4()
[ 265.671351] autorequest GPIO-24
[ 265.671358] Modules linked in: fb_ili9341(+) fbtft_device fbtft fb_sys_fops
[ 265.671945] WARNING: at drivers/gpio/gpiolib.c:103 gpio_ensure_requested+0x54/0xb4()
[ 265.671956] autorequest GPIO-18
[ 265.671962] Modules linked in: fb_ili9341(+) fbtft_device fbtft fb_sys_fops
[ 265.672610] fb_ili9341: probe of spi0.0 failed with error -22 So I always get the errors with gpio gpio_request: gpio-25 (fb_ili9341) status -22 fb_ili9341 spi0.0: fbtft_request_gpios: gpio_request_one('reset'=25) failed with -22 It seems that there is some problems with setup a gpio 25.
|