]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: fix PCIe reset GPIOs for ipTIME A8004T 24534/head
authorMyeongjae SONG <devparlair@outlook.com>
Sun, 2 Aug 2026 07:23:22 +0000 (07:23 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Fri, 14 Aug 2026 20:22:49 +0000 (22:22 +0200)
The ipTIME A8004T requires GPIO19 and GPIO8 for PCIe reset control.

GPIO8 is assigned to UART3 by default, so configure the pin state
to make it available as a GPIO and add both GPIOs to the PCIe
reset-gpios property.

This fixes PCIe initialization after warm reboot.

Signed-off-by: Myeongjae SONG <devparlair@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/24534
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/ramips/dts/mt7621_iptime_a8004t.dts

index 7f28d7af3fb5f820e08f18c60cfe7e7e5bd69755..93eab2acd21d8471de5efc274376522545610796 100644 (file)
 
 &pcie {
        status = "okay";
+
+       reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
+                       <&gpio 8 GPIO_ACTIVE_LOW>;
 };
 
 &pcie0 {
 
 &state_default {
        gpio {
-               groups = "wdt", "jtag", "i2c";
+               groups = "wdt", "jtag", "i2c", "uart3";
                function = "gpio";
        };
 };