ramips: use phy trigger for various Netgear boards

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)
master
David Bauer 5 years ago
parent b8b62b8506
commit f057133349
  1. 1
      target/linux/ramips/base-files/etc/board.d/01_leds
  2. 1
      target/linux/ramips/dts/R6220.dtsi
  3. 1
      target/linux/ramips/dts/R6350.dts

@ -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"

@ -44,6 +44,7 @@
led_wifi: wifi {
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
led_wps: wps {

@ -49,6 +49,7 @@
wifi {
label = "r6350:green:wifi";
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};

Loading…
Cancel
Save