stsrc / rpi_lcd

[Kernel space | Done] Study project - Linux driver for LCD TFT screen (communication via SPI)
2 stars 1 forks source link

Interfacing to RISC-V processor on linux #1

Open tirumalnaidu opened 2 years ago

tirumalnaidu commented 2 years ago

Hi @stsrc I want to interface the display to my RISC-V processor on linux. Can i directly add your kernel drivers to the linux kernel and start using it. When I inserted the kernel module in the user space, There is no file handler created for SPI. By the way, thank you very much for the work.

stsrc commented 2 years ago

Hello, I recommend you using fbtft drivers (which support ili9341 chip also) which might be found under drivers/staging/fbtft in linux kernel tree (search for CONFIG_FB_TFT_ILI9341 parameter), because they are more up to date than my driver.

However, if you want to use my driver, I will be able to test it and reproduce problem only on Sunday.

"Can i directly add your kernel drivers to the linux kernel and start using it" - yes, you can.

tirumalnaidu commented 2 years ago

Thanks @stsrc I was able to interface the display with your driver. They were some silly mistakes of mine in the dts file. Also I went through the framebuffer driver you recommended. But I am not sure how to access the SPI based ILI9341 using that.

stsrc commented 2 years ago

The fbtft is using SPI under the hood, see function fbtft_write_spi(). I think that on raspbian it was working without any hassle, I had to just load drivers, but maybe I am wrong, it was 6 years ago.