MLK-16347-14: arm64: dts: fsl-imx8qxp-mek: Enable mipi-dsi with adv7535
authorRobert Chiras <robert.chiras@nxp.com>
Wed, 13 Sep 2017 11:52:50 +0000 (14:52 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:39:14 +0000 (15:39 -0500)
Enable the MIPI-DSI to ADV7535 DSI2HDMI converter path on the MX8QXP MEK
development board.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/fsl-imx8qxp-mek-dsi-adv7535.dts [new file with mode: 0644]

index ff8a846..c57d682 100644 (file)
@@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_FSL_IMX8QXP) += fsl-imx8qxp-lpddr4-arm2.dtb \
                                  fsl-imx8qxp-mek-lvds0-it6263.dtb \
                                  fsl-imx8qxp-mek-lvds1-it6263.dtb \
                                  fsl-imx8qxp-mek-lvds0-lvds1-it6263.dtb \
+                                 fsl-imx8qxp-mek-dsi-adv7535.dtb \
                                  fsl-imx8qxp-lpddr4-arm2-enet2.dtb \
                                  fsl-imx8qxp-lpddr4-arm2-gpmi-nand.dtb \
                                  fsl-imx8qxp-lpddr4-arm2-it6263.dtb \
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qxp-mek-dsi-adv7535.dts b/arch/arm64/boot/dts/freescale/fsl-imx8qxp-mek-dsi-adv7535.dts
new file mode 100644 (file)
index 0000000..2a03be3
--- /dev/null
@@ -0,0 +1,87 @@
+/*
+ * 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-imx8qxp-mek.dts"
+
+&i2c0_mipi_lvds0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c0_mipi_lvds0>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       adv_bridge1: adv7535@3d {
+               compatible = "adi,adv7535", "adi,adv7533";
+               reg = <0x3d>;
+               adi,dsi-lanes = <4>;
+               status = "okay";
+
+               port {
+                       adv7535_1_in: endpoint {
+                               remote-endpoint = <&mipi_dsi1_out>;
+                       };
+               };
+       };
+};
+
+&mipi_dsi_phy1 {
+       status = "okay";
+};
+
+&mipi_dsi1 {
+       status = "okay";
+
+       port@1 {
+               mipi_dsi1_out: endpoint {
+                       remote-endpoint = <&adv7535_1_in>;
+               };
+       };
+};
+
+&i2c0_mipi_lvds1 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_i2c0_mipi_lvds1>;
+       clock-frequency = <100000>;
+       status = "okay";
+
+       adv_bridge2: adv7535@3d {
+               compatible = "adi,adv7535", "adi,adv7533";
+               reg = <0x3d>;
+               adi,dsi-lanes = <4>;
+               status = "okay";
+
+               port {
+                       adv7535_2_in: endpoint {
+                               remote-endpoint = <&mipi_dsi2_out>;
+                       };
+               };
+       };
+};
+
+&mipi_dsi_phy2 {
+       status = "okay";
+};
+
+&mipi_dsi2 {
+       status = "okay";
+
+       port@1 {
+               mipi_dsi2_out: endpoint {
+                       remote-endpoint = <&adv7535_2_in>;
+               };
+       };
+};