]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx6sx: Add Root Port node and PERST property
authorSherry Sun <sherry.sun@nxp.com>
Wed, 22 Apr 2026 09:35:43 +0000 (17:35 +0800)
committerFrank Li <Frank.Li@nxp.com>
Mon, 1 Jun 2026 15:12:40 +0000 (11:12 -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/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi
arch/arm/boot/dts/nxp/imx/imx6sx.dtsi

index 3e238d8118faedd39a923aa90d859301516cd00f..338de4d144b2a49632c7d227af2d0702e4e96343 100644 (file)
 &pcie {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pcie>;
+       /* This property is deprecated, use reset-gpios from the Root Port node. */
        reset-gpio = <&gpio2 0 GPIO_ACTIVE_LOW>;
        vpcie-supply = <&reg_pcie_gpio>;
        status = "okay";
 };
 
+&pcie_port0 {
+       reset-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
+};
+
 &lcdif1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lcd>;
index 1426f357d47448ab0ed289a5233f71c1e365033e..d42363cb51058cb5d11dea853b6c9be257bdb4c2 100644 (file)
                        power-domains = <&pd_disp>, <&pd_pci>;
                        power-domain-names = "pcie", "pcie_phy";
                        status = "disabled";
+
+                       pcie_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;
+                       };
                };
        };
 };