arm64: dts: imx8qxp-mek: Add JDI WUXGA LVDS panel support
authorLiu Ying <victor.liu@nxp.com>
Thu, 14 Nov 2019 08:49:46 +0000 (16:49 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:21:08 +0000 (11:21 +0800)
The JDI TX26D202VM0BWA WUXGA LVDS panel works in LVDS
dual channel mode.  It can connect with the i.MX8QXP
MEK board via J1(for LVDS0) and J3(for LVDS1) jacks.
Either LVDS0 or LVDS1 can be the primary channel.
The panel uses PWM signal supplied by i.MX8QXP to
control the backlight.  This patch adds the panel
support on the i.MX8QXP MEK platform.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
arch/arm64/boot/dts/freescale/Makefile
arch/arm64/boot/dts/freescale/imx8qxp-mek-jdi-wuxga-lvds0-panel.dts [new file with mode: 0644]
arch/arm64/boot/dts/freescale/imx8qxp-mek-jdi-wuxga-lvds1-panel.dts [new file with mode: 0644]

index 5e34cda..031a1b9 100644 (file)
@@ -68,7 +68,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8dxl-phantom-mek.dtb \
                          imx8dxl-phantom-mek-rpmsg.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb imx8qxp-mek-dsp.dtb imx8qxp-mek-ov5640.dtb \
                          imx8qxp-mek-enet2.dtb imx8qxp-mek-enet2-tja1100.dtb imx8qxp-mek-sof.dtb \
-                         imx8qxp-mek-rpmsg.dtb imx8qxp-mek-a0.dtb imx8qxp-lpddr4-val-a0.dtb \
+                         imx8qxp-mek-rpmsg.dtb imx8qxp-mek-a0.dtb \
+                         imx8qxp-mek-jdi-wuxga-lvds0-panel.dtb \
+                         imx8qxp-mek-jdi-wuxga-lvds1-panel.dtb \
+                         imx8qxp-lpddr4-val-a0.dtb \
                          imx8qxp-lpddr4-val.dtb imx8qxp-lpddr4-val-mqs.dtb imx8qxp-ddr3l-val.dtb \
                          imx8qxp-lpddr4-val-lpspi.dtb imx8qxp-lpddr4-val-lpspi-slave.dtb \
                          imx8qxp-lpddr4-val-spdif.dtb imx8qxp-lpddr4-val-gpmi-nand.dtb imx8dxp-lpddr4-val.dtb \
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek-jdi-wuxga-lvds0-panel.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek-jdi-wuxga-lvds0-panel.dts
new file mode 100644 (file)
index 0000000..d4d1a6a
--- /dev/null
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/*
+ * Copyright 2019 NXP
+ */
+
+#include "imx8qxp-mek-rpmsg.dts"
+
+/ {
+       lvds0_panel {
+               compatible = "jdi,tx26d202vm0bwa";
+               backlight = <&lvds_backlight1>;
+
+               port {
+                       panel_lvds0_in: endpoint {
+                               remote-endpoint = <&lvds0_out>;
+                       };
+               };
+       };
+};
+
+/delete-node/ &it6263_0_in;
+
+&ldb1 {
+       fsl,dual-channel;
+
+       lvds-channel@0 {
+               fsl,data-mapping = "spwg";
+               fsl,data-width = <24>;
+
+               port@1 {
+                       reg = <1>;
+
+                       lvds0_out: endpoint {
+                               remote-endpoint = <&panel_lvds0_in>;
+                       };
+               };
+       };
+};
+
+&ldb2 {
+       status = "disabled";
+};
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek-jdi-wuxga-lvds1-panel.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek-jdi-wuxga-lvds1-panel.dts
new file mode 100644 (file)
index 0000000..f00d464
--- /dev/null
@@ -0,0 +1,43 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/*
+ * Copyright 2019 NXP
+ */
+
+#include "imx8qxp-mek-rpmsg.dts"
+
+/ {
+       lvds1_panel {
+               compatible = "jdi,tx26d202vm0bwa";
+               backlight = <&lvds_backlight0>;
+
+               port {
+                       panel_lvds1_in: endpoint {
+                               remote-endpoint = <&lvds1_out>;
+                       };
+               };
+       };
+};
+
+/delete-node/ &it6263_1_in;
+
+&ldb2 {
+       fsl,dual-channel;
+
+       lvds-channel@0 {
+               fsl,data-mapping = "spwg";
+               fsl,data-width = <24>;
+
+               port@1 {
+                       reg = <1>;
+
+                       lvds1_out: endpoint {
+                               remote-endpoint = <&panel_lvds1_in>;
+                       };
+               };
+       };
+};
+
+&ldb1 {
+       status = "disabled";
+};