]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: st: Enable PCIe on the stm32mp257f-ev1 board
authorChristian Bruel <christian.bruel@foss.st.com>
Wed, 20 Aug 2025 07:54:11 +0000 (09:54 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 15 Sep 2025 15:51:30 +0000 (17:51 +0200)
Add PCIe RC and EP support on stm32mp257f-ev1 board.
Default to RC mode.

Signed-off-by: Christian Bruel <christian.bruel@foss.st.com>
Link: https://lore.kernel.org/r/20250820075411.1178729-12-christian.bruel@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

index 4ff334563599b46e987474076798337e75e16ef7..d25d16c3681ffdaed11bac56c39551db3453334f 100644 (file)
        };
 };
 
+&pcie_ep {
+       pinctrl-names = "default", "init";
+       pinctrl-0 = <&pcie_pins_a>;
+       pinctrl-1 = <&pcie_init_pins_a>;
+       reset-gpios = <&gpioj 8 GPIO_ACTIVE_LOW>;
+       status = "disabled";
+};
+
+&pcie_rc {
+       pinctrl-names = "default", "init", "sleep";
+       pinctrl-0 = <&pcie_pins_a>;
+       pinctrl-1 = <&pcie_init_pins_a>;
+       pinctrl-2 = <&pcie_sleep_pins_a>;
+       status = "okay";
+
+       pcie@0,0 {
+                reset-gpios = <&gpioj 8 GPIO_ACTIVE_LOW>;
+                wake-gpios = <&gpioh 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
+       };
+};
+
 &rtc {
        status = "okay";
 };