MLK-16743-1: Add iMX8QM dual LVDS device tree
authorNitin Garg <nitin.garg@nxp.com>
Wed, 1 Nov 2017 02:30:48 +0000 (21:30 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:39:04 +0000 (15:39 -0500)
Add iMX8QM dual it6263 lvds to hdmi device tree file

Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-it6263.dts [new file with mode: 0644]

index c995447..b81406c 100644 (file)
@@ -9,6 +9,7 @@ dtb-$(CONFIG_ARCH_FSL_IMX8QM) += fsl-imx8qm-lpddr4-arm2.dtb \
                                 fsl-imx8qm-mek.dtb \
                                 fsl-imx8qm-mek_ca53.dtb \
                                 fsl-imx8qm-mek_ca72.dtb \
+                                fsl-imx8qm-mek-it6263.dtb \
                                 fsl-imx8qm-lpddr4-arm2-it6263.dtb \
                                 fsl-imx8qm-lpddr4-arm2-it6263-dual-channel.dtb \
                                 fsl-imx8qm-lpddr4-arm2-lpspi.dtb \
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-it6263.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qm-mek-it6263.dts
new file mode 100644 (file)
index 0000000..d3dc1b0
--- /dev/null
@@ -0,0 +1,120 @@
+/*
+ * Copyright 2017 NXP
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include "fsl-imx8qm-mek.dts"
+
+&ldb1_phy {
+       status = "okay";
+};
+
+&ldb1 {
+       status = "okay";
+
+       lvds-channel@0 {
+               fsl,data-mapping = "jeida";
+               fsl,data-width = <24>;
+               status = "okay";
+
+               port@1 {
+                       reg = <1>;
+
+                       lvds0_out: endpoint {
+                               remote-endpoint = <&it6263_0_in>;
+                       };
+               };
+       };
+};
+
+&i2c1_lvds0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lvds0_lpi2c1>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       lvds-to-hdmi-bridge@4c {
+               compatible = "ite,it6263";
+               reg = <0x4c>;
+
+               port {
+                       it6263_0_in: endpoint {
+                               clock-lanes = <3>;
+                               data-lanes = <0 1 2 4>;
+                               remote-endpoint = <&lvds0_out>;
+                       };
+               };
+       };
+};
+
+&iomuxc {
+       imx8qm-mek {
+               pinctrl_lvds0_lpi2c1: lvds0lpi2c1grp {
+                       fsl,pins = <
+                               SC_P_LVDS0_I2C1_SCL_LVDS0_I2C1_SCL      0xc600004c
+                               SC_P_LVDS0_I2C1_SDA_LVDS0_I2C1_SDA      0xc600004c
+                       >;
+               };
+               pinctrl_lvds1_lpi2c1: lvds1lpi2c1grp {
+                       fsl,pins = <
+                               SC_P_LVDS1_I2C1_SCL_LVDS1_I2C1_SCL      0xc600004c
+                               SC_P_LVDS1_I2C1_SDA_LVDS1_I2C1_SDA      0xc600004c
+                       >;
+               };
+       };
+};
+
+&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>;
+                       };
+               };
+       };
+};