arm64: dts: imx8qm: Add nodes for rm67191 mipi panel
authorRobert Chiras <robert.chiras@nxp.com>
Mon, 4 Nov 2019 12:33:22 +0000 (14:33 +0200)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:21:25 +0000 (11:21 +0800)
Add dts file for rm67191 MIPI panel.

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

index 7128dad..a7197d4 100644 (file)
@@ -62,6 +62,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qm-mek.dtb imx8qm-mek-ov5640.dtb \
                          imx8qm-mek-ca72.dtb imx8qm-lpddr4-val-ca53.dtb \
                          imx8qm-lpddr4-val-ca72.dtb imx8qm-ddr4-val.dtb \
                          imx8qm-lpddr4-val-lpspi.dtb imx8qm-lpddr4-val-lpspi-slave.dtb \
+                         imx8qm-mek-dsi-rm67191.dtb \
                          imx8qp-lpddr4-val.dtb imx8dm-lpddr4-val.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8qm-mek-dom0.dtb imx8qm-mek-domu.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8qxp-ai_ml.dtb
diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek-dsi-rm67191.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek-dsi-rm67191.dts
new file mode 100644 (file)
index 0000000..32ac9ca
--- /dev/null
@@ -0,0 +1,101 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019 NXP
+ */
+
+/dts-v1/;
+
+#include "imx8qm-mek.dts"
+
+/delete-node/ &adv_bridge0;
+/delete-node/ &adv_bridge1;
+
+&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>;
+               pinctrl-0 = <&pinctrl_mipi_dsi_0_1_en>;
+               pinctrl-names = "default";
+               reset-gpios = <&lsio_gpio1 7 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 = <&lsio_gpio1 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>;
+                       };
+               };
+       };
+};
+
+&iomuxc {
+       pinctrl_mipi_dsi_0_1_en: mipi_dsi_0_1_en {
+               fsl,pins = <
+                       IMX8QM_LVDS0_I2C0_SDA_LSIO_GPIO1_IO07             0x00000021
+               >;
+       };
+};