Skip to content

Commit f968404

Browse files
SherrySun5nxpfrankli
authored andcommitted
ARM: dts: imx6sx: Add Root Port node and PERST property
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>
1 parent 9dc3953 commit f968404

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,16 @@
282282
&pcie {
283283
pinctrl-names = "default";
284284
pinctrl-0 = <&pinctrl_pcie>;
285+
/* This property is deprecated, use reset-gpios from the Root Port node. */
285286
reset-gpio = <&gpio2 0 GPIO_ACTIVE_LOW>;
286287
vpcie-supply = <&reg_pcie_gpio>;
287288
status = "okay";
288289
};
289290

291+
&pcie_port0 {
292+
reset-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
293+
};
294+
290295
&lcdif1 {
291296
pinctrl-names = "default";
292297
pinctrl-0 = <&pinctrl_lcd>;

arch/arm/boot/dts/nxp/imx/imx6sx.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,17 @@
14701470
power-domains = <&pd_disp>, <&pd_pci>;
14711471
power-domain-names = "pcie", "pcie_phy";
14721472
status = "disabled";
1473+
1474+
pcie_port0: pcie@0 {
1475+
compatible = "pciclass,0604";
1476+
device_type = "pci";
1477+
reg = <0x0 0x0 0x0 0x0 0x0>;
1478+
bus-range = <0x01 0xff>;
1479+
1480+
#address-cells = <3>;
1481+
#size-cells = <2>;
1482+
ranges;
1483+
};
14731484
};
14741485
};
14751486
};

0 commit comments

Comments
 (0)