From 3f98e35e98b1c57459ab521aef6d24cee833ff8b Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 30 Mar 2026 22:56:02 +0800 Subject: [PATCH] ramips: fix WAN LED GPIO for Xiaomi Mi Router 4C Correct WAN LED GPIO and its pinctrl group. Fixes: https://github.com/openwrt/openwrt/issues/18578 Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22696 Signed-off-by: Hauke Mehrtens (cherry picked from commit 74fe4b014c0291589e913a9572047a00dfa7b13e) --- target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts index a406c8f124..dd06fafd75 100644 --- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4c.dts @@ -34,7 +34,7 @@ wan { function = LED_FUNCTION_WAN; color = ; - gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + gpios = <&gpio 42 GPIO_ACTIVE_LOW>; }; }; @@ -59,6 +59,13 @@ }; }; +&state_default { + gpio { + groups = "gpio", "wdt", "p1led_an", "wled_an"; + function = "gpio"; + }; +}; + &ehci { status = "disabled"; };