From 859fed4052cf4d15f09889a101ca3110063cf36a Mon Sep 17 00:00:00 2001 From: Robert Chiras Date: Mon, 8 Jan 2018 16:39:43 +0200 Subject: [PATCH] MLK-17275-10: dts: imx8qm-lpddr4: Enable IT6263 and ADV7535 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 LPDDR4 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 --- .../fsl-imx8qm-lpddr4-arm2-dsi-rm67191.dts | 40 +----- .../dts/freescale/fsl-imx8qm-lpddr4-arm2.dts | 126 ++++++++++++++++++ 2 files changed, 128 insertions(+), 38 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-dsi-rm67191.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-dsi-rm67191.dts index aa25d9b6fc49..788ff2cff108 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-dsi-rm67191.dts +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2-dsi-rm67191.dts @@ -14,34 +14,6 @@ #include "fsl-imx8qm-lpddr4-arm2.dts" -&hdmi { - status = "disabled"; -}; - -&ldb1_phy { - status = "disabled"; -}; - -&ldb1 { - status = "disabled"; -}; - -&ldb2_phy { - status = "disabled"; -}; - -&ldb2 { - status = "disabled"; -}; - -&mipi_dsi_phy1 { - status = "okay"; -}; - -&mipi_dsi1 { - status = "okay"; -}; - &mipi_dsi_bridge1 { status = "okay"; @@ -60,21 +32,13 @@ }; }; - 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"; @@ -93,7 +57,7 @@ }; }; - port@1 { + port@2 { mipi_bridge2_out: endpoint { remote-endpoint = <&panel2_in>; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2.dts index 00645fab05d2..573dbe92c460 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2.dts +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-lpddr4-arm2.dts @@ -1173,3 +1173,129 @@ }; }; }; + +&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>; + }; + }; + }; +}; + +&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_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_phy2 { + status = "okay"; +}; + +&mipi_dsi2 { + status = "okay"; +}; + +&mipi_dsi_bridge2 { + status = "okay"; + + port@1 { + mipi_dsi_bridge2_adv: endpoint { + remote-endpoint = <&adv7535_2_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>; + }; + }; + }; +}; -- 2.17.1