mediatek: update leds for openembed som7981

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2024-11-17 22:23:02 +08:00
parent e5b5a78b1c
commit 91cfc2b296
2 changed files with 8 additions and 8 deletions

View File

@@ -12,9 +12,10 @@
compatible = "openembed,som7981", "mediatek,mt7981";
aliases {
led-boot = &wlan5g_led;
led-failsafe = &wlan5g_led;
led-upgrade = &wlan5g_led;
led-boot = &act_led;
led-failsafe = &act_led;
led-running = &act_led;
led-upgrade = &act_led;
serial0 = &uart0;
};
@@ -57,13 +58,14 @@
};
led-2 {
function = LED_FUNCTION_WLAN_2GHZ;
function = LED_FUNCTION_PANIC;
color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 34 GPIO_ACTIVE_LOW>;
panic-indicator;
};
wlan5g_led: led-3 {
function = LED_FUNCTION_WLAN_5GHZ;
act_led: led-3 {
function = LED_FUNCTION_ACTIVITY;
color = <LED_COLOR_ID_RED>;
gpios = <&pio 35 GPIO_ACTIVE_LOW>;
};

View File

@@ -80,8 +80,6 @@ nradio,c8-668gl)
openembed,som7981)
ucidef_set_led_netdev "lanact" "LANACT" "amber:lan" "eth1" "rx tx"
ucidef_set_led_netdev "lanlink" "LANLINK" "green:lan" "eth1" "link"
ucidef_set_led_netdev "wlan2g" "WLAN2G" "green:wlan-2ghz" "phy0-ap0"
ucidef_set_led_netdev "wlan5g" "WLAN5G" "red:wlan-5ghz" "phy1-ap0"
;;
openwrt,one)
ucidef_set_led_netdev "wanact" "WANACT" "mdio-bus:0f:green:wan" "eth0" "rx tx"