MX8 Display

From Variscite Wiki
Revision as of 15:13, 2 September 2019 by Eran (talk | contribs)
VAR-SOM-MX8X Display

Introduction

LVDS

VAR-SOM-MX8X supports 2 LVDS interfaces.
Variscite Symphony carrier board comes with 2 LVDS connectors, one connector per interface.
By default Variscite panel is connected in LVDS#A connector.

Adding custom LVDS panel

VAR-SOM-MX8X evaluation kit comes with 800x480 LCD panel. VAR-SOM-MX8X DTS file was created with this panel in mind. To support your custom LVDS panel, you should make several modifications

Referencing custom LVDS panel in the DTS file

The following code references Variscite panel in fsl-imx8qxp-var-som-common.dtsi under kernel source tree

&ldb1_phy {
	status = "ok";
};

&ldb1 {
	status = "ok";
	lvds-channel@0 {
		fsl,data-mapping = "jeida";
		fsl,data-width = <24>;
		status = "ok";

		display-timings {
			lvds {
				clock-frequency = <29232000>;
				hactive = <800>;
				vactive = <480>;
				hback-porch = <40>;
				hfront-porch = <40>;
				vback-porch = <29>;
				vfront-porch = <13>;
				hsync-len = <48>;
				vsync-len = <3>;
				hsync-active = <0>;
				vsync-active = <0>;
				de-active = <1>;
				pixelclk-active = <0>;
			};
		};
	};
};

You may need to modify "fsl,data-mapping", "fsl,data-width" and "display-timings" properties to match your panel specification.
For more information see Documentation/devicetree/bindings/display/imx/ldb.txt in the kernel source tree.