MLK-17275-8: dts: imx8qm-mek: Enable IT6263 and ADV7535
authorRobert Chiras <robert.chiras@nxp.com>
Thu, 21 Dec 2017 12:19:15 +0000 (14:19 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:45 +0000 (14:52 -0500)
Final step for the OF_DYNAMIC support: enable the LVDS and MIPI-DSI to
HDMI converter nodes by default in the main DTS file for each platform.
This patch enables these nodes for i.MX8QM MEK board.
Also, use adi,dsi-channel = <1> for ADV7535, since the panel can only
work on channel 0. By using channel 1 for ADV7535, we can have them work
simultaneously: one on DSI0 and the other on DSI1.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-dsi-rm67191.dts
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek.dts

index fc48d7a..4ce6121 100644 (file)
 
 #include "fsl-imx8qm-mek.dts"
 
-&hdmi {
-       status = "disabled";
-};
-
-&ldb1_phy {
-       status = "disabled";
-};
-
-&ldb1 {
-       status = "disabled";
-};
-
-&mipi_dsi_phy1 {
-       status = "okay";
-};
-
-&mipi_dsi1 {
-       status = "okay";
-};
-
 &mipi_dsi_bridge1 {
        status = "okay";
 
                };
        };
 
-       port@1 {
+       port@2 {
                mipi_bridge1_out: endpoint {
                        remote-endpoint = <&panel1_in>;
                };
        };
 };
 
-&mipi_dsi_phy2 {
-       status = "okay";
-};
-
-&mipi_dsi2 {
-       status = "okay";
-};
-
 &mipi_dsi_bridge2 {
        status = "okay";
 
@@ -85,7 +57,7 @@
                };
        };
 
-       port@1 {
+       port@2 {
                mipi_bridge2_out: endpoint {
                        remote-endpoint = <&panel2_in>;
                };
index 1612b83..9cb0702 100644 (file)
        };
 };
 
+&ldb2_phy {
+       status = "okay";
+};
+
+&ldb2 {
+       status = "okay";
+
+       lvds-channel@0 {
+               fsl,data-mapping = "jeida";
+               fsl,data-width = <24>;
+               status = "okay";
+
+               port@1 {
+                       reg = <1>;
+
+                       lvds1_out: endpoint {
+                               remote-endpoint = <&it6263_1_in>;
+                       };
+               };
+       };
+};
+
+&i2c1_lvds1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lvds1_lpi2c1>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       lvds-to-hdmi-bridge@4c {
+               compatible = "ite,it6263";
+               reg = <0x4c>;
+
+               port {
+                       it6263_1_in: endpoint {
+                               clock-lanes = <3>;
+                               data-lanes = <0 1 2 4>;
+                               remote-endpoint = <&lvds1_out>;
+                       };
+               };
+       };
+};
+
+&i2c0_mipi_dsi0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mipi0_lpi2c0>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       adv_bridge1: adv7535@3d {
+               compatible = "adi,adv7535", "adi,adv7533";
+               reg = <0x3d>;
+               adi,dsi-lanes = <4>;
+               adi,dsi-channel = <1>;
+               status = "okay";
+
+               port {
+                       adv7535_1_in: endpoint {
+                               remote-endpoint = <&mipi_dsi_bridge1_adv>;
+                       };
+               };
+       };
+};
+
+&mipi_dsi_phy1 {
+       status = "okay";
+};
+
+&mipi_dsi1 {
+       status = "okay";
+};
+
+&mipi_dsi_bridge1 {
+       status = "okay";
+
+       port@1 {
+               mipi_dsi_bridge1_adv: endpoint {
+                       remote-endpoint = <&adv7535_1_in>;
+               };
+       };
+};
+
+&i2c0_mipi_dsi1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_mipi1_lpi2c0>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       adv_bridge2: adv7535@3d {
+               compatible = "adi,adv7535", "adi,adv7533";
+               reg = <0x3d>;
+               adi,dsi-lanes = <4>;
+               adi,dsi-channel = <1>;
+               status = "okay";
+
+               port {
+                       adv7535_2_in: endpoint {
+                               remote-endpoint = <&mipi_dsi_bridge2_adv>;
+                       };
+               };
+       };
+};
+
+&mipi_dsi_phy2 {
+       status = "okay";
+};
+
+&mipi_dsi2 {
+       status = "okay";
+};
+
+&mipi_dsi_bridge2 {
+       status = "okay";
+
+       port@1 {
+               mipi_dsi_bridge2_adv: endpoint {
+                       remote-endpoint = <&adv7535_2_in>;
+               };
+       };
+};
+
 &lvds0_pwm {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lvds0_pwm0>;