arm64: dts: imx8mp-somdevices.dtsi: Add LVDS panel suppport.
authorJosep Orga <jorga@somdevices.com>
Thu, 2 Nov 2023 16:17:31 +0000 (17:17 +0100)
committerJosep Orga <jorga@somdevices.com>
Thu, 2 Nov 2023 16:17:31 +0000 (17:17 +0100)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm64/boot/dts/freescale/imx8mp-somdevices.dtsi

index 635117a..1851603 100644 (file)
                default-brightness-level = <80>;
        };
 
+       lvds0_panel {
+               compatible = "panel-lvds";
+               backlight = <&lvds_backlight>;
+               width-mm = <154>;
+               height-mm = <87>;
+               data-mapping = "vesa-24";
+               status = "okay";
+
+               panel-timing {
+                       clock-frequency = <51200000>;
+                       hactive = <1024>;
+                       vactive = <600>;
+                       hfront-porch = <120>;
+                       hsync-len = <20>;
+                       hback-porch = <140>;
+                       vfront-porch = <12>;
+                       vsync-len = <3>;
+                       vback-porch = <20>;
+
+                       hsync-active = <0>;
+                       vsync-active = <0>;
+                       de-active = <1>;
+                       pixelclk-active = <0>;
+               };
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&lvds_out>;
+                       };
+               };
+       };
+
        usdhc1_pwrseq: usdhc1_pwrseq {
                compatible = "mmc-pwrseq-simple";
                pinctrl-names = "default";
        status = "okay";
 };
 
+/* MIPI-DSI */
 &lcdif1 {
-       status = "okay";
+       status = "disabled";
 };
 
+/* LVDS */
 &lcdif2 {
        status = "okay";
 };
 
+/* HDMI */
 &lcdif3 {
        status = "okay";
 
 
 &ldb {
        status = "okay";
+
+       lvds-channel@0 {
+               fsl,data-mapping = "spwg";
+               fsl,data-width = <24>;
+               status = "okay";
+
+               port@1 {
+                       reg = <1>;
+
+                       lvds_out: endpoint {
+                               remote-endpoint = <&panel_in>;
+                       };
+               };
+       };
 };
 
 &ldb_phy {