ARM: dts: imx6q-apalis: Add LVDS panel support
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>
Wed, 15 Jun 2022 11:49:57 +0000 (13:49 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 Jun 2022 01:12:23 +0000 (09:12 +0800)
Add LVDS panel and endpoint linkage support but keep the inherited
disabled state. This allows to enable it in an overlay per the current
system configuration.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-apalis-eval.dts
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
arch/arm/boot/dts/imx6q-apalis-ixora.dts
arch/arm/boot/dts/imx6qdl-apalis.dtsi

index fdcb740a7a54a7e036a792bcecaeed2f9f8ff08d..51efa7c578797a38592560fef39b3f54ce0edcf8 100644 (file)
        status = "okay";
 };
 
-&ldb {
-       status = "okay";
-};
-
 &pcie {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_reset_moci>;
index 21f88e19e87d56531a2df43d92a6551a45bdc4a5..beb1981fc7755128330abca357a3ba90079b63c8 100644 (file)
        status = "okay";
 };
 
-&ldb {
-       status = "okay";
-};
-
 &pcie {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_reset_moci>;
index e6fc76776b2e7a0bc60b0f7f37bf6a93a4ed3f95..3d42f8ffeb3455854951538de4fa2ba35ca36d7b 100644 (file)
        status = "okay";
 };
 
-&ldb {
-       status = "okay";
-};
-
 &pcie {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_reset_moci>;
index 240783d0901c4fb8bd9022109a9fa8218bd1cda4..636b04139a5b64aaf2e2c05bd7d7a06f0b889620 100644 (file)
                };
        };
 
+       panel_lvds: panel-lvds {
+               compatible = "panel-lvds";
+               backlight = <&backlight>;
+               status = "disabled";
+
+               port {
+                       lvds_panel_in: endpoint {
+                               remote-endpoint = <&lvds0_out>;
+                       };
+               };
+       };
+
        reg_module_3v3: regulator-module-3v3 {
                compatible = "regulator-fixed";
                regulator-name = "+V3.3";
        remote-endpoint = <&lcd_display_in>;
 };
 
+&ldb {
+       lvds-channel@0 {
+               port@4 {
+                       reg = <4>;
+
+                       lvds0_out: endpoint {
+                               remote-endpoint = <&lvds_panel_in>;
+                       };
+               };
+       };
+
+       lvds-channel@1 {
+               fsl,data-mapping = "spwg";
+               fsl,data-width = <18>;
+
+               port@4 {
+                       reg = <4>;
+
+                       lvds1_out: endpoint {
+                       };
+               };
+       };
+};
+
 &pwm1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;