I want to connect a 128x64 LCD to my STM32MP157D-DK1 board and implement a program on the A7 core Linux to display some parameters. What should I do? Thanks in advance.
In the past, I have successfully implemented an LCD display by defining the necessary GPIO pins in my Linux user space program. I used the link below as a guide to define the pins. Is this a proper way to implement it? If not what is a better way to do it? Thanks.
Do you see ? Here we tell that the Display Serial Interface node (DSI) is linked to the LTDC (LCD-TFT Display Controler) but also to the panel !
Here the panel has its own driver in the kernel (panel-orisetech-otm8009a.c) but this is not the case for all the panel, and maybe not yours.
In this case you can use the panel-simple.c driver and you will have different property to give in the device tree, such as the famous panel-timings (the documentation of your panel will be mandatory here)! The documentation concerning the property to give for a panel-simple case is given in the kernel here: <kernel_folder>/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
It makes a lot of information to get, but following the wiki will help you a lot. Moreover, I advice you to read the very well done presentation of graphics in Linux made by Bootlin: Understanding the Linux Graphics Stack training.
I hope that it will help you to go forward !
Kind regards,
Erwan.
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.