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.86k stars 495 forks source link

The 6.0 kernel uses tbftf and there is a problem that fbtft cannot be mounted #593

Closed kluoyun closed 1 year ago

kluoyun commented 1 year ago

As shown below, the log after I execute "modprobe fbtft" and "modprobe fb_ili9340" is as follows, debug=7 in the device tree, spi node and tft are also configured correctly.

root@x:~# dmesg | grep fb
[   28.602048] fbcon: Taking over console
[   67.602107] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[   74.034889] fb_ili9340: module is from the staging directory, the quality is unknown, you have been warned.
[   74.045035] SPI driver fb_ili9340 has no spi_device_id for ilitek,ili9340
root@x:~# 
notro commented 1 year ago

Commit 5fa6863ba692 ("spi: Check we have a spi_device_id for each DT compatible") added that warning.

The FBTFT_REGISTER_DRIVER macro will need to be fixed somehow to get rid of the warning.

kluoyun commented 1 year ago

Thanks for your reply, I will try

notro commented 1 year ago

It's just a warning so the driver should work as-is, but if you find a fix it's all the better.

kluoyun commented 1 year ago

I modified the SPI driver and device tree and it works