mediatek-filogic: fix wax220 wifi leds
authorFlorian Maurer <f.maurer@outlook.de>
Thu, 16 Jan 2025 08:29:55 +0000 (09:29 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 18 Jan 2025 20:39:13 +0000 (21:39 +0100)
The WAX220 does have a 2.4GHz and 5GHz wifi led, which was set to trigger on netdev before.
This commit changes this to trigger on activity of the respective radio

Signed-off-by: Florian Maurer <f.maurer@outlook.de>
Link: https://github.com/openwrt/openwrt/pull/17627
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mediatek/dts/mt7986b-netgear-wax220.dts
target/linux/mediatek/filogic/base-files/etc/board.d/01_leds

index 6e51d8847023587c41bd076693751633054a7d28..9537afba898aed5e52480ca37fb2c57d17017a40 100644 (file)
@@ -67,6 +67,7 @@
                wlan2g_blue {
                        gpios = <&pio 1 GPIO_ACTIVE_LOW>;
                        label = "blue:wlan2g";
+                       linux,default-trigger = "phy0tpt";
                };
 
                lan_green {
@@ -84,6 +85,7 @@
                wlan5g_blue {
                        gpios = <&pio 2 GPIO_ACTIVE_LOW>;
                        label = "blue:wlan5g";
+                       linux,default-trigger = "phy1tpt";
                };
        };
 };
index a6bb9b0ca8ac3062af095c9d68c4fb77c17a4c9a..fded01a73ea783c186a4becf4f4ad866f88a4841 100644 (file)
@@ -66,8 +66,6 @@ mercusys,mr90x-v1-ubi)
        ;;
 netgear,wax220)
        ucidef_set_led_netdev "eth0" "LAN" "green:lan" "eth0"
-       ucidef_set_led_netdev "wlan2g" "WLAN2G" "blue:wlan2g" "phy0-ap0"
-       ucidef_set_led_netdev "wlan5g" "WLAN5G" "blue:wlan5g" "phy1-ap0"
        ;;
 nokia,ea0326gmp)
        ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1" "link"