ramips: use phy trigger for various Netgear boards
authorDavid Bauer <mail@david-bauer.net>
Fri, 30 Aug 2019 18:11:45 +0000 (20:11 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 31 Aug 2019 08:31:00 +0000 (10:31 +0200)
This commit switches the default trigger for the WiFi LED from a netdev
trigger on "wlan0" to a wireless-phy based trigger. THis allows the LED
to work, even when the wireless interface is not named "wlan0" without
modifiying the LED settings.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/dts/mt7621_netgear_r6220.dtsi
target/linux/ramips/dts/mt7621_netgear_r6350.dts

index e54300dafba164a615e5ef6e0e78a69137f03e51..6735876651d3418f20747f076d2822c7006171ee 100755 (executable)
@@ -296,7 +296,6 @@ netgear,r6220|\
 netgear,r6350|\
 netgear,wndr3700-v5)
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
-       set_wifi_led "$boardname:green:wifi"
        ;;
 omnima,hpm)
        ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
index 187485011187bb9b9a69b4a57723880938db4908..17000a5bf29e4461e22a0211ed99a60a1cd47e45 100644 (file)
@@ -39,6 +39,7 @@
 
                led_wifi: wifi {
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                led_wps: wps {
index 403fc91d54fe7428edbeba38d4c9845db644a375..a5c3a1907cbcbc2c9893e9a0ff836443dd6313ea 100644 (file)
@@ -44,6 +44,7 @@
                wifi {
                        label = "r6350:green:wifi";
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
        };