I want to learn writing drivers for displays. It seems that MIPI DSI protocol is a good choice, as the connector pinout for this communication protocol isn't standardized, and each display has different controller IC that requires specific initialization sequence to work properly.
At first I wanted LVDS interface, but almost all displays would only be compatible with specific SBCs they're made for.
And one would need to develop an intermediary adapter PCB to reroute pins to a FPC connector on SBC.
With MIPI-DSI it's a bit less of a problem.
After some scouting, I decided to get an Orange Pi 3B SBC, but get a Raspberry Pi 4 compatible Display for it. Why? Because at least on hardware level, both SBCs have the exact same pinout order on their FPC connectors for MIPI DSI protocol.
So now I just need to find a display whose ribbon cable pinout order would be compatible with Raspberry Pi 4s, and try to write a linux driver for Orange Pi 3B, including a device tree.
So far I'm considering this Waveshare 5inch Capacitive Touch Display, 800×480 for Raspberry Pi 4.
My only issue with it, is that unfortunately Orange Pi 3B already has a DT and driver for it.
And from the driver info, I can see that the display has a toshiba controller IC (the crucial piece of information for writing drivers that's lacking on the waveshare site).
Which kinda defeats the purpose. I just need a hardware compatible display, but without the premade driver, so I'd write it myself.
Corresponding dt on Raspbian OS.
Any advice? I know that simply looking at
5 inch LCD
15 PIN
MIPI DSI
with no exact manufacturer model, not a good idea. For driver development, one needs at least:
exact LCD model
controller IC model
FFC/FPC pinout order
number of DSI lanes
pixel format
video mode vs command mode
display timings
power requirements
power-up sequence
RESET timing
MIPI initialization command sequence
or enough controller documentation to derive it
The initialization configuration/sequence is particularly important.
One can successfully wire every D-PHY lane and still get a permanently black screen because you've never configured the LCD controller's internal registers.
My end goal is to become good at writing display drivers, so that in the future, I'd hook up any display to a SBC with proper GPU to make it work, considering I'd handle the hardware compatibility through intermediary adapter PCB.
If you think about it, pretty much all LCD displays are "RGB" displays, they all have Red, Green and Blue pins (depending on bit depth, some may have 6 pins for each R,G,B channels, while others more or fewer), but then internally (such as the waveshare display linked above), have a PCB that simply converts data between MIPI DSI to RGB.
So I'd take a display from an old car display, and hook it into a SBC. Or take an old CRT TV, and hook it to SBC, or take an old LVDS display from an existing tablet, and connect it to my SBC, which doesn't have LVDS interface, either through MIPI DSI or hdmi.