From: Robert Chiras Date: Mon, 6 Apr 2020 11:31:57 +0000 (+0300) Subject: LF-1207: arm64/dts: imx8qxp: Add rpmsg support for rm67191 X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~577^2~2^2~459 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=9ecab085351319baf2269a60a917bb2a8ad6faf0;p=linux.git LF-1207: arm64/dts: imx8qxp: Add rpmsg support for rm67191 Add new dts file to support the rpmsg dts for the dsi-rm67191 use-case. Signed-off-by: Robert Chiras --- diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 8ab94e6a622d..77fafadaee63 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -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 index 000000000000..498c65c48f1d --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191-rpmsg.dts @@ -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" diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dts index d17639e0afd6..33427aef74c4 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dts @@ -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 index 000000000000..5fb7da451e56 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek-dsi-rm67191.dtsi @@ -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>; + }; + }; + }; +};