arm64: dts: imx8qm: Add nodes for adv7535 device
authorRobert Chiras <robert.chiras@nxp.com>
Tue, 26 Nov 2019 14:14:58 +0000 (16:14 +0200)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:21:24 +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 imx8qm-mek.dtb file.

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

index a90ea9e..c92a8e0 100755 (executable)
        };
 };
 
+&i2c0_mipi0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+        pinctrl-names = "default";
+        pinctrl-0 = <&pinctrl_mipi0_lpi2c0>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       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 = <19 IRQ_TYPE_LEVEL_LOW>;
+               status = "okay";
+
+               port@0 {
+                       reg = <0>;
+                       adv7535_0_in: endpoint {
+                               remote-endpoint = <&mipi0_adv_out>;
+                       };
+               };
+       };
+};
+
+&mipi0_dphy {
+       status = "okay";
+};
+
+&mipi0_dsi_host {
+       status = "okay";
+
+       ports {
+               port@1 {
+                       reg = <1>;
+                       mipi0_adv_out: endpoint {
+                               remote-endpoint = <&adv7535_0_in>;
+                       };
+               };
+       };
+};
+
+&i2c0_mipi1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+        pinctrl-names = "default";
+        pinctrl-0 = <&pinctrl_mipi1_lpi2c0>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       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_gpio1>;
+               interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
+               status = "okay";
+
+               port@0 {
+                       reg = <0>;
+                       adv7535_1_in: endpoint {
+                               remote-endpoint = <&mipi1_adv_out>;
+                       };
+               };
+       };
+};
+
+&mipi1_dphy {
+       status = "okay";
+};
+
+&mipi1_dsi_host {
+       status = "okay";
+
+       ports {
+               port@1 {
+                       reg = <1>;
+                       mipi1_adv_out: endpoint {
+                               remote-endpoint = <&adv7535_1_in>;
+                       };
+               };
+       };
+};
+
 &dc1_pc {
        status = "okay";
 };
                        IMX8QM_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13           0x07800000
                >;
        };
+
+       pinctrl_mipi0_lpi2c0: mipi0_lpi2c0grp {
+               fsl,pins = <
+                       IMX8QM_MIPI_DSI0_I2C0_SCL_MIPI_DSI0_I2C0_SCL      0xc6000020
+                       IMX8QM_MIPI_DSI0_I2C0_SDA_MIPI_DSI0_I2C0_SDA      0xc6000020
+                       IMX8QM_MIPI_DSI0_GPIO0_01_LSIO_GPIO1_IO19         0x00000020
+               >;
+       };
+
+       pinctrl_mipi1_lpi2c0: mipi1_lpi2c0grp {
+               fsl,pins = <
+                       IMX8QM_MIPI_DSI1_I2C0_SCL_MIPI_DSI1_I2C0_SCL      0xc6000020
+                       IMX8QM_MIPI_DSI1_I2C0_SDA_MIPI_DSI1_I2C0_SDA      0xc6000020
+                       IMX8QM_MIPI_DSI1_GPIO0_01_LSIO_GPIO1_IO23         0x00000020
+               >;
+       };
+
 };
 
 &thermal_zones {