[openwrt/openwrt] ramips: Fix Hongdian H7920 v40 pinctrl default state

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 4 10:37:27 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/44c79d094f4e3b3cd716a61783a0e2fde7ede976

commit 44c79d094f4e3b3cd716a61783a0e2fde7ede976
Author: Coia Prant <coiaprant at gmail.com>
AuthorDate: Wed Oct 1 15:55:57 2025 +0800

    ramips: Fix Hongdian H7920 v40 pinctrl default state
    
    According to the MT7628 hardware datasheet:
    - GPIO/4 was originally used for I2C, but is now used as the Modem Power.
    - GPIO/5 was originally used for I2C, but is now used as the SIM card select. (n/a for this device)
    - GPIO/6 was originally used for SPI CS1, but is now used as the Serial mode switch.
    - GPIO/36 was originally used for PERST, but is now used as the GPS OE. (n/a for this device)
    - GPIO/38 was originally used for WDT, but is now used as the Modem2 Power. (n/a for this device)
    - GPIO/44 was used for WLED_AN, but is now controlled by `gpio-leds`.
    
    Corrected pinctrl to ensure it works properly in the future.
    
    Signed-off-by: Coia Prant <coiaprant at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/20256
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts b/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
index 76c395c382..6c165fc3bf 100644
--- a/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
+++ b/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
@@ -140,7 +140,7 @@
 
 &state_default {
 	gpio {
-		groups = "i2s", "gpio", "refclk";
+		groups = "i2s", "i2c", "spi cs1", "gpio", "perst", "refclk", "wdt", "wled_an";
 		function = "gpio";
 	};
 };
@@ -166,6 +166,3 @@
 	status = "okay";
 };
 
-&pcie {
-	status = "okay";
-};




More information about the lede-commits mailing list