[openwrt/openwrt] ramips: add missing WAN LED for Xiaomi Mi Router 4A / 4C
LEDE Commits
lede-commits at lists.infradead.org
Sun Oct 23 15:28:11 PDT 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/288b36c2ea32e1de1b7ad4772612d718199804e4
commit 288b36c2ea32e1de1b7ad4772612d718199804e4
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Sat Sep 17 18:50:00 2022 +0800
ramips: add missing WAN LED for Xiaomi Mi Router 4A / 4C
The blue WAN LED connected to GPIO37 is missing, so re-add it.
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi | 7 ++++++-
target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds | 7 +++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
index 0a48c06019..ff738a5261 100644
--- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
+++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4.dtsi
@@ -30,6 +30,11 @@
label = "yellow:power";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
+
+ wan {
+ label = "blue:wan";
+ gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
+ };
};
keys {
@@ -93,7 +98,7 @@
&state_default {
gpio {
- groups = "gpio", "wdt", "wled_an";
+ groups = "gpio", "refclk", "wdt", "wled_an";
function = "gpio";
};
};
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
index 0af01d4393..8a21756225 100644
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
@@ -144,6 +144,13 @@ wavlink,wl-wn578a2)
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10"
;;
+xiaomi,mi-router-4a-100m|\
+xiaomi,mi-router-4a-100m-intl)
+ ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x01"
+ ;;
+xiaomi,mi-router-4c)
+ ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x02"
+ ;;
zbtlink,zbt-we1226)
ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x01"
More information about the lede-commits
mailing list