]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: imx8mp: Add Root Port node and PERST property
authorSherry Sun <sherry.sun@nxp.com>
Wed, 22 Apr 2026 09:35:46 +0000 (17:35 +0800)
committerFrank Li <Frank.Li@nxp.com>
Fri, 5 Jun 2026 17:16:42 +0000 (13:16 -0400)
Since describing the PCIe PERST# property under Host Bridge node is now
deprecated, it is recommended to add it to the Root Port node, so
creating the Root Port node and add the reset-gpios property in Root
Port.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
arch/arm64/boot/dts/freescale/imx8mp-evk.dts
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index 2feb5b18645cd0a616cbb236758f1098865d16e7..a7f3acdc36d1a152527e51cf93cc3eba94f9ada3 100644 (file)
 &pcie0 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pcie0>;
+       /* This property is deprecated, use reset-gpios from the Root Port node. */
        reset-gpio = <&gpio2 7 GPIO_ACTIVE_LOW>;
        vpcie-supply = <&reg_pcie0>;
        vpcie3v3aux-supply = <&reg_pcie0>;
        status = "disabled";
 };
 
+&pcie0_port0 {
+       reset-gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
+};
+
 &pwm1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pwm1>;
index 90d7bb8f5619e50d9fd65bcf18c083affe15e6f9..5ce2825182fdb496499c05f05e40db46a84bcf78 100644 (file)
                        phys = <&pcie_phy>;
                        phy-names = "pcie-phy";
                        status = "disabled";
+
+                       pcie0_port0: pcie@0 {
+                               compatible = "pciclass,0604";
+                               device_type = "pci";
+                               reg = <0x0 0x0 0x0 0x0 0x0>;
+                               bus-range = <0x01 0xff>;
+
+                               #address-cells = <3>;
+                               #size-cells = <2>;
+                               ranges;
+                       };
                };
 
                pcie0_ep: pcie_ep: pcie-ep@33800000 {