arm64: dts: imx8qxp: Add nodes for adv7535 device
authorRobert Chiras <robert.chiras@nxp.com>
Wed, 27 Nov 2019 15:49:52 +0000 (17:49 +0200)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:21:26 +0000 (11:21 +0800)
Add dts nodes for adv7535 DSI-HDMI converter and connect them to their
corresponding mipi dsi nodes.
Use dsi-adv7535 as default use-case for imx8qxp-mek.dtb file.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts

index 1d483f0..cbff63d 100755 (executable)
        clock-frequency = <100000>;
        status = "okay";
 
-       lvds-to-hdmi-bridge@4c {
+       lvds_bridge0: lvds-to-hdmi-bridge@4c {
                compatible = "ite,it6263";
                reg = <0x4c>;
                reset-gpios = <&pca9557_a 6 GPIO_ACTIVE_LOW>;
                        };
                };
        };
+
+       adv_bridge0: adv7535@3d {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               compatible = "adi,adv7535";
+               reg = <0x3d>;
+               adi,addr-cec = <0x3b>;
+               adi,dsi-lanes = <4>;
+               adi,dsi-channel = <1>;
+               interrupt-parent = <&lsio_gpio1>;
+               interrupts = <28 IRQ_TYPE_LEVEL_LOW>;
+               status = "okay";
+
+               port@0 {
+                       reg = <0>;
+                       adv7535_0_in: endpoint {
+                               remote-endpoint = <&mipi0_adv_out>;
+                       };
+               };
+       };
 };
 
 &ldb1_phy {
        };
 };
 
+&mipi0_dphy {
+       status = "okay";
+};
+
+&mipi0_dsi_host {
+       status = "okay";
+
+       ports {
+               port@1 {
+                       reg = <1>;
+                       mipi0_adv_out: endpoint {
+                               remote-endpoint = <&adv7535_0_in>;
+                       };
+               };
+       };
+};
+
 &pwm_mipi_lvds1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm_mipi_lvds1>;
        clock-frequency = <100000>;
        status = "okay";
 
-       lvds-to-hdmi-bridge@4c {
+       lvds_bridge1: lvds-to-hdmi-bridge@4c {
                compatible = "ite,it6263";
                reg = <0x4c>;
                reset-gpios = <&pca9557_b 7 GPIO_ACTIVE_LOW>;
                        };
                };
        };
+
+       adv_bridge1: adv7535@3d {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               compatible = "adi,adv7535";
+               reg = <0x3d>;
+               adi,addr-cec = <0x3b>;
+               adi,dsi-lanes = <4>;
+               adi,dsi-channel = <1>;
+               interrupt-parent = <&lsio_gpio2>;
+               interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+               status = "okay";
+
+               port@0 {
+                       reg = <0>;
+                       adv7535_1_in: endpoint {
+                               remote-endpoint = <&mipi1_adv_out>;
+                       };
+               };
+       };
 };
 
 &ldb2_phy {
        };
 };
 
+&mipi1_dphy {
+       status = "okay";
+};
+
+&mipi1_dsi_host {
+       status = "okay";
+
+       ports {
+               port@1 {
+                       reg = <1>;
+                       mipi1_adv_out: endpoint {
+                               remote-endpoint = <&adv7535_1_in>;
+                       };
+               };
+       };
+};
+
 &lpuart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lpuart0>;