ili9341 fbtft on fb2 makes trouble

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ili9341 fbtft on fb2 makes trouble

1,156 Views
peterhafner
Contributor I

Hi,

HW:

- 240x320RGB LCD connected via SPI

- IMX6Q

- LA show active communication on SPI bus

This is the output after loading modules 

modprobe fbtft dma
modprobe fbtft_device custom name=fb_ili9341 speed=16000000 fps=30 gpios=dc:28,reset:30 busnum=1 cs=2 debug=1 rotate=90 bgr=1


[ 35.410591] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[ 41.577000] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[ 41.587239] fbtft_device: SPI devices registered:
[ 41.590795] fbtft_device: dh2228fv spi1.0 80000kHz 8 bits mode=0x00
[ 41.596630] fbtft_device: dh2228fv spi1.1 500kHz 8 bits mode=0x00
[ 41.601881] fbtft_device: dh2228fv spi1.2 500kHz 8 bits mode=0x00
[ 41.607361] fbtft_device: dh2228fv spi1.3 500kHz 8 bits mode=0x00
[ 41.612602] fbtft_device: 'fb' Platform devices registered:
[ 41.617348] fbtft_device: fb@0 id=0 pdata? yes
[ 41.620941] fbtft_device: fb@1 id=1 pdata? yes
[ 41.624816] fbtft_device: Deleting spi1.2
[ 41.628312] fbtft_device: GPIOS used by 'fb_ili9341':
[ 41.632167] fbtft_device: 'dc' = GPIO28
[ 41.635220] fbtft_device: 'reset' = GPIO30
[ 41.638289] fbtft_device: SPI devices registered:
[ 41.641798] fbtft_device: dh2228fv spi1.0 80000kHz 8 bits mode=0x00
[ 41.643048] fb_ili9341: module is from the staging directory, the quality is unknown, you have been warned.
[ 41.644434] fb_ili9341 spi1.2: fbtft_request_gpios: 'dc' = GPIO28
[ 41.644456] fb_ili9341 spi1.2: fbtft_request_gpios: 'reset' = GPIO30
[ 41.665658] fbtft_device: dh2228fv spi1.1 500kHz 8 bits mode=0x00
[ 41.670902] fbtft_device: dh2228fv spi1.3 500kHz 8 bits mode=0x00
[ 41.676191] fbtft_device: fb_ili9341 spi1.2 16000kHz 8 bits mode=0x00
[ 42.093718] Console: switching to colour frame buffer device 40x15
[ 42.099084] graphics fb2: fb_ili9341 frame buffer, 320x240, 150 KiB video memory, 16 KiB DMA buffer memory, fps=33, spi1.2 at 16 MH

If I draw to framebuffer (see attached file), I didn't get anything to the LCD.

The same app works nice on fb0 !

 A "unblank" scrreen is acting like this !

root@pico-imx6:~# echo 0 > /sys/class/graphics/fb2/blank
-sh: echo: write error: Invalid argument

Any hints ?

Thanks and Regards 

Peter

Labels (1)
Tags (3)
0 Kudos
1 Reply

876 Views
igorpadykov
NXP Employee
NXP Employee

Hi Peter

one can check if mxcfb2 is enabled and set in kernel boot parameters as described in Table 11.

Common kernel boot parameters attached Release Notes and try nxp linux from source.codeaurora.org :

imx6q-sabresd.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos