arm64: dts: Add i.MX8MP PCIe EP support
authorRichard Zhu <hongxing.zhu@nxp.com>
Wed, 15 Feb 2023 06:18:35 +0000 (14:18 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 14 Mar 2023 01:03:30 +0000 (09:03 +0800)
Add i.MX8MP PCIe EP support.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index a19224f..2f84b8b 100644 (file)
                        status = "disabled";
                };
 
+               pcie_ep: pcie-ep@33800000 {
+                       compatible = "fsl,imx8mp-pcie-ep";
+                       reg = <0x33800000 0x000400000>, <0x18000000 0x08000000>;
+                       reg-names = "dbi", "addr_space";
+                       clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
+                                <&clk IMX8MP_CLK_HSIO_AXI>,
+                                <&clk IMX8MP_CLK_PCIE_ROOT>;
+                       clock-names = "pcie", "pcie_bus", "pcie_aux";
+                       assigned-clocks = <&clk IMX8MP_CLK_PCIE_AUX>;
+                       assigned-clock-rates = <10000000>;
+                       assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_50M>;
+                       num-lanes = <1>;
+                       interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>; /* eDMA */
+                       interrupt-names = "dma";
+                       fsl,max-link-speed = <3>;
+                       power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_PCIE>;
+                       resets = <&src IMX8MP_RESET_PCIE_CTRL_APPS_EN>,
+                                <&src IMX8MP_RESET_PCIE_CTRL_APPS_TURNOFF>;
+                       reset-names = "apps", "turnoff";
+                       phys = <&pcie_phy>;
+                       phy-names = "pcie-phy";
+                       num-ib-windows = <4>;
+                       num-ob-windows = <4>;
+                       status = "disabled";
+               };
+
                gpu3d: gpu@38000000 {
                        compatible = "vivante,gc";
                        reg = <0x38000000 0x8000>;