]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: imx8dxl-evk: Add PCIe support
authorRichard Zhu <hongxing.zhu@nxp.com>
Mon, 21 Oct 2024 19:06:00 +0000 (15:06 -0400)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Oct 2024 03:35:48 +0000 (11:35 +0800)
Add PCIe support on i.MX8DXL EVK board.

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

index 4caaecc1922771bc5b276d7f85cd03871fdfc013..6259186cd4d92ed063f2f7d07cbae978779d08e3 100644 (file)
                regulator-always-on;
        };
 
+       reg_pcieb: regulator-pcieb {
+               compatible = "regulator-fixed";
+               regulator-max-microvolt = <3300000>;
+               regulator-min-microvolt = <3300000>;
+               regulator-name = "reg_pcieb";
+               gpio = <&pca6416_1 13 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
        bt_sco_codec: audio-codec-bt {
                compatible = "linux,bt-sco";
                #sound-dai-cells = <1>;
        status = "okay";
 };
 
+&hsio_phy {
+       fsl,hsio-cfg = "pciea-x2-pcieb";
+       fsl,refclk-pad-mode = "output";
+       status = "okay";
+};
+
 &cm40_intmux {
        status = "disabled";
 };
        status = "okay";
 };
 
+&pcieb {
+       phys = <&hsio_phy 0 PHY_TYPE_PCIE 0>;
+       phy-names = "pcie-phy";
+       pinctrl-0 = <&pinctrl_pcieb>;
+       pinctrl-names = "default";
+       reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
+       vpcie-supply = <&reg_pcieb>;
+       status = "okay";
+};
+
 &sai0 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sai0>;
                >;
        };
 
+       pinctrl_pcieb: pcieagrp {
+               fsl,pins = <
+                       IMX8DXL_PCIE_CTRL0_PERST_B_LSIO_GPIO4_IO00      0x06000021
+                       IMX8DXL_PCIE_CTRL0_CLKREQ_B_LSIO_GPIO4_IO01     0x06000021
+                       IMX8DXL_PCIE_CTRL0_WAKE_B_LSIO_GPIO4_IO02       0x04000021
+               >;
+       };
+
        pinctrl_sai0: sai0grp {
                fsl,pins = <
                        IMX8DXL_SPI0_CS0_ADMA_SAI0_RXD          0x06000060