LF-1207: arm64/dts: imx8qxp: Add rpmsg support for rm67191
authorRobert Chiras <robert.chiras@nxp.com>
Mon, 6 Apr 2020 11:31:57 +0000 (14:31 +0300)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:22:21 +0000 (11:22 +0800)
Add new dts file to support the rpmsg dts for the dsi-rm67191
use-case.

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

index 8ab94e6..77fafad 100644 (file)
@@ -82,6 +82,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb imx8qxp-mek-dsp.dtb imx8qxp-mek-ov5640
                          imx8qxp-mek-jdi-wuxga-lvds0-panel.dtb \
                          imx8qxp-mek-jdi-wuxga-lvds1-panel.dtb \
                          imx8qxp-mek-dsi-rm67191.dtb \
+                         imx8qxp-mek-dsi-rm67191-rpmsg.dtb \
                          imx8qxp-mek-dpu-lcdif.dtb \
                          imx8qxp-lpddr4-val-a0.dtb \
                          imx8qxp-lpddr4-val.dtb imx8qxp-lpddr4-val-mqs.dtb imx8qxp-ddr3l-val.dtb \
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191-rpmsg.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191-rpmsg.dts
new file mode 100644 (file)
index 0000000..498c65c
--- /dev/null
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2020 NXP
+ */
+
+/dts-v1/;
+
+#include "imx8qxp-mek-rpmsg.dts"
+#include "imx8qxp-mek-dsi-rm67191.dtsi"
index d17639e..33427ae 100644 (file)
@@ -1,115 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Copyright 2019 NXP
+ * Copyright 2020 NXP
  */
 
 /dts-v1/;
 
 #include "imx8qxp-mek.dts"
-
-/delete-node/ &adv_bridge0;
-/delete-node/ &adv_bridge1;
-
-&ldb1_phy {
-       status = "disabled";
-};
-
-&ldb1 {
-       status = "disabled";
-};
-
-&ldb2_phy {
-       status = "disabled";
-};
-
-&ldb2 {
-       status = "disabled";
-};
-
-&lvds_bridge0 {
-       status = "disabled";
-};
-
-&lvds_bridge1 {
-       status = "disabled";
-};
-
-&mipi0_dphy {
-       status = "okay";
-};
-
-&mipi0_dsi_host {
-       status = "okay";
-       fsl,clock-drop-level = <2>;
-
-       panel@0 {
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               compatible = "raydium,rm67191";
-               reg = <0>;
-               reset-gpios = <&pca9557_a 6 GPIO_ACTIVE_LOW>;
-               dsi-lanes = <4>;
-               video-mode = <2>;
-               width-mm = <68>;
-               height-mm = <121>;
-
-               port@0 {
-                       reg = <0>;
-                       panel0_in: endpoint {
-                               remote-endpoint = <&mipi0_panel_out>;
-                       };
-               };
-       };
-
-       ports {
-               /delete-node/ port@1;
-
-               port@1 {
-                       reg = <1>;
-                       mipi0_panel_out: endpoint {
-                               remote-endpoint = <&panel0_in>;
-                       };
-               };
-       };
-};
-
-&mipi1_dphy {
-       status = "okay";
-};
-
-&mipi1_dsi_host {
-       status = "okay";
-       fsl,clock-drop-level = <2>;
-
-       panel@0 {
-               #address-cells = <1>;
-               #size-cells = <0>;
-
-               compatible = "raydium,rm67191";
-               reg = <0>;
-               reset-gpios = <&pca9557_b 7 GPIO_ACTIVE_LOW>;
-               dsi-lanes = <4>;
-               video-mode = <2>;
-               width-mm = <68>;
-               height-mm = <121>;
-
-               port@0 {
-                       reg = <0>;
-                       panel1_in: endpoint {
-                               remote-endpoint = <&mipi1_panel_out>;
-                       };
-               };
-       };
-
-       ports {
-               /delete-node/ port@1;
-
-               port@1 {
-                       reg = <1>;
-                       mipi1_panel_out: endpoint {
-                               remote-endpoint = <&panel1_in>;
-                       };
-               };
-       };
-};
+#include "imx8qxp-mek-dsi-rm67191.dtsi"
diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dtsi
new file mode 100644 (file)
index 0000000..5fb7da4
--- /dev/null
@@ -0,0 +1,111 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2020 NXP
+ */
+
+/delete-node/ &adv_bridge0;
+/delete-node/ &adv_bridge1;
+
+&ldb1_phy {
+       status = "disabled";
+};
+
+&ldb1 {
+       status = "disabled";
+};
+
+&ldb2_phy {
+       status = "disabled";
+};
+
+&ldb2 {
+       status = "disabled";
+};
+
+&lvds_bridge0 {
+       status = "disabled";
+};
+
+&lvds_bridge1 {
+       status = "disabled";
+};
+
+&mipi0_dphy {
+       status = "okay";
+};
+
+&mipi0_dsi_host {
+       status = "okay";
+       fsl,clock-drop-level = <2>;
+
+       panel@0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               compatible = "raydium,rm67191";
+               reg = <0>;
+               reset-gpios = <&pca9557_a 6 GPIO_ACTIVE_LOW>;
+               dsi-lanes = <4>;
+               video-mode = <2>;
+               width-mm = <68>;
+               height-mm = <121>;
+
+               port@0 {
+                       reg = <0>;
+                       panel0_in: endpoint {
+                               remote-endpoint = <&mipi0_panel_out>;
+                       };
+               };
+       };
+
+       ports {
+               /delete-node/ port@1;
+
+               port@1 {
+                       reg = <1>;
+                       mipi0_panel_out: endpoint {
+                               remote-endpoint = <&panel0_in>;
+                       };
+               };
+       };
+};
+
+&mipi1_dphy {
+       status = "okay";
+};
+
+&mipi1_dsi_host {
+       status = "okay";
+       fsl,clock-drop-level = <2>;
+
+       panel@0 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               compatible = "raydium,rm67191";
+               reg = <0>;
+               reset-gpios = <&pca9557_b 7 GPIO_ACTIVE_LOW>;
+               dsi-lanes = <4>;
+               video-mode = <2>;
+               width-mm = <68>;
+               height-mm = <121>;
+
+               port@0 {
+                       reg = <0>;
+                       panel1_in: endpoint {
+                               remote-endpoint = <&mipi1_panel_out>;
+                       };
+               };
+       };
+
+       ports {
+               /delete-node/ port@1;
+
+               port@1 {
+                       reg = <1>;
+                       mipi1_panel_out: endpoint {
+                               remote-endpoint = <&panel1_in>;
+                       };
+               };
+       };
+};