ar71xx: WNDR4300: use the switch LED trigger on the WAN port
authorDaniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Sun, 3 Sep 2017 17:41:42 +0000 (19:41 +0200)
committerMathias Kresin <dev@kresin.me>
Tue, 5 Sep 2017 06:43:39 +0000 (08:43 +0200)
The WAN port on the Netgear WNDR4300 router has two LEDs,
amber and green. Use the switch LED trigger to behave as the
rest of the LAN HW controlled LEDs
- Green: 1 Gbps
- Amber: 100/10 Mbps

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
target/linux/ar71xx/base-files/etc/board.d/01_leds

index 84b1a7dfd966027c1b5e8780a32222bb2fa4835f..4132e919e433c1dcb2a7e76959d03ba1781be55e 100755 (executable)
@@ -823,7 +823,8 @@ r6100)
        ;;
 wndr3700v4|\
 wndr4300)
-       ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2"
+       ucidef_set_led_switch "wan-green" "WAN (green)" "netgear:green:wan" "switch0" "0x20" "0x08"
+       ucidef_set_led_switch "wan-amber" "WAN (amber)" "netgear:amber:wan" "switch0" "0x20" "0x06"
        ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1"
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "netgear:green:wlan2g" "phy0tpt"
        ucidef_set_led_wlan "wlan5g" "WLAN5G" "netgear:blue:wlan5g" "phy1tpt"