From: Robert Chiras Date: Thu, 9 Nov 2017 12:06:16 +0000 (+0200) Subject: MLK-16918-10: arm64: dtsi: fsl-imx8qxp: Update dtsi for nwl-mipi-dsi X-Git-Tag: C0P2-H0.0--20200415~1032 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=b3612530a12ed4d832375e244a586fa64f21c1c6;p=linux.git MLK-16918-10: arm64: dtsi: fsl-imx8qxp: Update dtsi for nwl-mipi-dsi Now, the NWL MIPI-DSI driver is implemented as a real bridge and uses the "nwl,mipi-dsi" compatible. This patch updates the mipi-dsi nodes to comply with the new design of NWL and NWL_IMX drivers. Signed-off-by: Robert Chiras --- diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi index 969049c009f9..47b033fa2e91 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi @@ -1039,20 +1039,18 @@ status = "disabled"; }; - mipi_dsi1: mipi_dsi@56228000 { + mipi_dsi_bridge1: mipi_dsi_bridge@56228000 { #address-cells = <1>; #size-cells = <0>; - compatible = "fsl,imx8qxp-mipi-dsi"; + compatible = "nwl,mipi-dsi"; reg = <0x0 0x56228000 0x0 0x300>; interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&irqsteer_mipi_lvds0>; clocks = - <&clk IMX8QXP_MIPI0_PIXEL_CLK>, - <&clk IMX8QXP_MIPI0_BYPASS_CLK>, <&clk IMX8QXP_CLK_DUMMY>, <&clk IMX8QXP_MIPI0_DSI_TX_ESC_CLK>, <&clk IMX8QXP_MIPI0_DSI_RX_ESC_CLK>; - clock-names = "pixel", "bypass", "phy_ref", "tx_esc", "rx_esc"; + clock-names = "phy_ref", "tx_esc", "rx_esc"; assigned-clocks = <&clk IMX8QXP_MIPI0_DSI_TX_ESC_SEL>, <&clk IMX8QXP_MIPI0_DSI_RX_ESC_SEL>, @@ -1063,6 +1061,25 @@ <&clk IMX8QXP_MIPI0_DSI_PLL_DIV2_CLK>, <&clk IMX8QXP_MIPI0_DSI_PLL_DIV2_CLK>; power-domains = <&pd_mipi_dsi0>; + phys = <&mipi_dsi_phy1>; + phy-names = "dphy"; + status = "disabled"; + + port@0 { + mipi_dsi_bridge1_in: endpoint { + remote-endpoint = <&mipi_dsi1_out>; + }; + }; + }; + + mipi_dsi1: mipi_dsi@56228000 { + compatible = "fsl,imx8qxp-mipi-dsi"; + clocks = + <&clk IMX8QXP_MIPI0_PIXEL_CLK>, + <&clk IMX8QXP_MIPI0_BYPASS_CLK>, + <&clk IMX8QXP_CLK_DUMMY>; + clock-names = "pixel", "bypass", "phy_ref"; + power-domains = <&pd_mipi_dsi0>; csr = <&mipi_dsi_csr1>; phys = <&mipi_dsi_phy1>; phy-names = "dphy"; @@ -1073,6 +1090,12 @@ remote-endpoint = <&dpu_disp0_mipi_dsi>; }; }; + + port@1 { + mipi_dsi1_out: endpoint { + remote-endpoint = <&mipi_dsi_bridge1_in>; + }; + }; }; lvds_region1: lvds_region@56220000 { @@ -1177,20 +1200,18 @@ status = "disabled"; }; - mipi_dsi2: mipi_dsi@56248000 { + mipi_dsi_bridge2: mipi_dsi_bridge@56248000 { #address-cells = <1>; #size-cells = <0>; - compatible = "fsl,imx8qxp-mipi-dsi"; + compatible = "nwl,mipi-dsi"; reg = <0x0 0x56248000 0x0 0x300>; interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; interrupt-parent = <&irqsteer_mipi_lvds1>; clocks = - <&clk IMX8QXP_MIPI1_PIXEL_CLK>, - <&clk IMX8QXP_MIPI1_BYPASS_CLK>, <&clk IMX8QXP_CLK_DUMMY>, <&clk IMX8QXP_MIPI1_DSI_TX_ESC_CLK>, <&clk IMX8QXP_MIPI1_DSI_RX_ESC_CLK>; - clock-names = "pixel", "bypass", "phy_ref", "tx_esc", "rx_esc"; + clock-names = "phy_ref", "tx_esc", "rx_esc"; assigned-clocks = <&clk IMX8QXP_MIPI1_DSI_TX_ESC_SEL>, <&clk IMX8QXP_MIPI1_DSI_RX_ESC_SEL>, @@ -1201,6 +1222,25 @@ <&clk IMX8QXP_MIPI1_DSI_PLL_DIV2_CLK>, <&clk IMX8QXP_MIPI1_DSI_PLL_DIV2_CLK>; power-domains = <&pd_mipi_dsi1>; + phys = <&mipi_dsi_phy2>; + phy-names = "dphy"; + status = "disabled"; + + port@0 { + mipi_dsi_bridge2_in: endpoint { + remote-endpoint = <&mipi_dsi2_out>; + }; + }; + }; + + mipi_dsi2: mipi_dsi@56248000 { + compatible = "fsl,imx8qxp-mipi-dsi"; + clocks = + <&clk IMX8QXP_MIPI1_PIXEL_CLK>, + <&clk IMX8QXP_MIPI1_BYPASS_CLK>, + <&clk IMX8QXP_CLK_DUMMY>; + clock-names = "pixel", "bypass", "phy_ref"; + power-domains = <&pd_mipi_dsi1>; csr = <&mipi_dsi_csr2>; phys = <&mipi_dsi_phy2>; phy-names = "dphy"; @@ -1211,6 +1251,12 @@ remote-endpoint = <&dpu_disp1_mipi_dsi>; }; }; + + port@1 { + mipi_dsi2_out: endpoint { + remote-endpoint = <&mipi_dsi_bridge2_in>; + }; + }; }; lvds_region2: lvds_region@56240000 {