board: ge: bx50v3: Add PCIe reset to DT
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 4 Aug 2021 16:22:54 +0000 (18:22 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 9 Aug 2021 12:46:50 +0000 (14:46 +0200)
Add PCIe reset gpio to the Bx50v3 devicetree and get get rid of
CONFIG_PCIE_IMX_PERST_GPIO.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
arch/arm/dts/imx6q-bx50v3-uboot.dtsi
include/configs/ge_bx50v3.h

index b54e8e6..0253d2f 100644 (file)
        phy-reset-duration = <1>;
        phy-reset-post-delay = <0>;
 };
+
+/*
+ * PCIe reset is not done in the file shared with the kernel, since
+ * this GPIO also resets other peripherals (i.e. not just PCIe).
+ * These peripherals are being initialized by U-Boot and should not
+ * be reset by the kernel, so it may not reset PCIe via this GPIO.
+ */
+&pcie {
+       reset-gpio = <&gpio7 12 GPIO_ACTIVE_LOW>;
+};
index 2b61172..5be3a49 100644 (file)
 
 #define CONFIG_PCI_SCAN_SHOW
 #define CONFIG_PCIE_IMX
-#define CONFIG_PCIE_IMX_PERST_GPIO     IMX_GPIO_NR(7, 12)
 #define CONFIG_PCIE_IMX_POWER_GPIO     IMX_GPIO_NR(1, 5)
 
 #endif /* __GE_BX50V3_CONFIG_H */