Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
Welcome to the world of Toradex and Yocto! Integrating your Tianma P0840XGF1MA00 LVDS panel with the Verdin iMX8M Plus SOM and Dahlia Carrier Board is an exciting project. Since you’re using a custom Yocto Linux image, configuring the device tree is essential to set up your display correctly.
Here’s a step-by-step guide to help you get started:
-
Device Tree Configuration: You need to add a node for your LVDS panel in the device tree. This node will specify the display timings and resolution. The
panel-lvds
driver is suitable for defining these details directly in the device tree. -
Specify Display Timings: In the device tree, create a node for your panel under the appropriate LVDS channel. You will need to specify parameters such as
hactive
,vactive
,hsync-len
,vsync-len
,hfront-porch
,vfront-porch
,hback-porch
, andvback-porch
according to your panel’s datasheet. -
Data Mapping and Width: Set the
fsl,data-mapping
andfsl,data-width
properties in thelvds-channel
node to match the color mapping and depth of your panel. For example, if your panel uses an 18-bit JEIDA format, set these properties accordingly. -
Example Configuration:
&ldb { status = "okay"; lvds-channel@0 { fsl,data-mapping = "spwg"; fsl,data-width = <18>; panel@0 { compatible = "panel-lvds"; label = "tianma_p0840xgf1ma00"; data-mapping = "jeida-18"; panel-timing { clock-frequency = <65000000>; hactive = <1024>; vactive = <768>; hsync-len = <136>; hfront-porch = <24>; hback-porch = <160>; vsync-len = <6>; vfront-porch = <3>; vback-porch = <29>; }; }; }; };
-
Testing and Debugging: Use tools like
modetest
from thelibdrm
package to verify the display settings and ensure the panel is correctly initialized.
By following these steps, you should be able to configure your custom LVDS panel with the Verdin iMX8M Plus. Make sure to refer to your panel’s datasheet for accurate timing values and adjust the device tree accordingly.
If you have any more questions or need further assistance, feel free to ask. Enjoy your journey with Toradex!
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem: