MLK-16918-10: arm64: dtsi: fsl-imx8qxp: Update dtsi for nwl-mipi-dsi
authorRobert Chiras <robert.chiras@nxp.com>
Thu, 9 Nov 2017 12:06:16 +0000 (14:06 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:47:08 +0000 (15:47 -0500)
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 <robert.chiras@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi

index 969049c..47b033f 100644 (file)
                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>,
                        <&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";
                                remote-endpoint = <&dpu_disp0_mipi_dsi>;
                        };
                };
+
+               port@1 {
+                       mipi_dsi1_out: endpoint {
+                               remote-endpoint = <&mipi_dsi_bridge1_in>;
+                       };
+               };
        };
 
        lvds_region1: lvds_region@56220000 {
                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>,
                        <&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";
                                remote-endpoint = <&dpu_disp1_mipi_dsi>;
                        };
                };
+
+               port@1 {
+                       mipi_dsi2_out: endpoint {
+                               remote-endpoint = <&mipi_dsi_bridge2_in>;
+                       };
+               };
        };
 
        lvds_region2: lvds_region@56240000 {