1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00

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@qq.com>
This commit is contained in:
Shiji Yang 2022-09-17 18:50:00 +08:00 committed by Hauke Mehrtens
parent 9db3caa749
commit 288b36c2ea
2 changed files with 13 additions and 1 deletions

@ -30,6 +30,11 @@
label = "yellow:power"; label = "yellow:power";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>; gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
}; };
wan {
label = "blue:wan";
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
};
}; };
keys { keys {
@ -93,7 +98,7 @@
&state_default { &state_default {
gpio { gpio {
groups = "gpio", "wdt", "wled_an"; groups = "gpio", "refclk", "wdt", "wled_an";
function = "gpio"; function = "gpio";
}; };
}; };

@ -144,6 +144,13 @@ wavlink,wl-wn578a2)
ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8" ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" 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) zbtlink,zbt-we1226)
ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0" ucidef_set_led_netdev "wifi_led" "wifi" "green:wlan" "wlan0"
ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x01" ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x01"