We made a board with an interface for an LCD with the ili9341 controller using SPI and RGB666.
Hardware wise all should be connected correctly.
I’m now in the progress of getting the display to work on Linux, but I have no clue on how to get the communication between the board and display working via SPI.
I understand I need to create a LCD driver for the ili9341 controller ( I found the source codes for this on the internet). But now I need to know how to get the kernel to work with this driver.
In the drivers\video\mxc\mxc_lcdif.c I added the display in the lcdif_modedb:
/* 240x320 @ 70 Hz , pixel clk @ 6.35MHz */ "DET24QVF2H-C", 70, 240, 320, 157480, .left_margin = 20, .right_margin = 10, .hsync_len = 10, .upper_margin = 2, .lower_margin = 4, .vsync_len = 2, .sync = 0, .vmode = FB_VMODE_NONINTERLACED, .flag = 0,},
In u-boot I editted the vidargs:
vidargs=video=mxcfb0:dev=lcd,"DET24QVF2H-C",if=RGB666 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off fbmem=8M
This however does not help me with starting the display via the SPI.
Any pointers and examples are very welcome.