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>
Fri, 6 Sep 2019 22:59:41 +0000 (00:59 +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>
(cherry picked from commit fa46c9b208fe3833f085e9f6ddf7c492b16f6c34)

target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/dts/R6220.dtsi
target/linux/ramips/dts/R6350.dts

index 35d046cc90324b352c0ac12c2a1ae8a8e94d75cd..f5e914c518d311b9f8b4e2f4650a0841334ccce5 100755 (executable)
@@ -278,7 +278,6 @@ r6220|\
 netgear,r6350|\
 wndr3700v5)
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x10"
-       set_wifi_led "$boardname:green:wifi"
        ;;
 re350-v1)
        ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$boardname:blue:wifi2G" "wlan0"
index 98a2078eccd93486818fe2bb111a4b02b808229e..4dbb234e824c2b55300689953b3b912d66f5af26 100644 (file)
@@ -44,6 +44,7 @@
 
                led_wifi: wifi {
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
 
                led_wps: wps {
index e49a5decde8fcb2b58990284b2c183f2cc78c911..538fa21ace792beac42c97d683ff017978f20823 100644 (file)
@@ -49,6 +49,7 @@
                wifi {
                        label = "r6350:green:wifi";
                        gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
                };
        };