ar71xx: GL.iNet AR300M family: correct LED definitions
authorAndreas Ziegler <dev@andreas-ziegler.de>
Mon, 25 Feb 2019 00:19:59 +0000 (01:19 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 26 Feb 2019 22:20:04 +0000 (23:20 +0100)
remove USB as this is no LED but power control
rename WiFi LED with correct color red (like in stock firmware)
set middle LED to be used for LAN link/activity

Signed-off-by: Andreas Ziegler <dev@andreas-ziegler.de>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar300m.c

index 170adaa7a22d1476cc269574f2b8b0c226a350f5..183495e57fe9c8fc6fda9e462b0ef5b193413d46 100755 (executable)
@@ -412,6 +412,7 @@ fritz450e)
        ;;
 gl-ar300m)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
        ;;
 gl-ar750)
        ucidef_set_led_wlan "wlan2g" "WLAN2G" "$board:white:wlan2g" "phy1tpt"
index 2a2d2702bcc699f481d1e3595f29349a70fc8d6d..d10a91012926280391e0907df531a01e8073c00f 100644 (file)
@@ -29,7 +29,6 @@
 #include "machtypes.h"
 #include "pci.h"
 
-#define GL_AR300M_GPIO_LED_USB         2
 #define GL_AR300M_GPIO_LED_WLAN                14
 #define GL_AR300M_GPIO_LED_LAN         13
 #define GL_AR300M_GPIO_LED_SYSTEM      12
 
 static struct gpio_led gl_ar300m_leds_gpio[] __initdata = {
        {
-               .name = "gl-ar300m:green:usb",
-               .gpio = GL_AR300M_GPIO_LED_USB,
-               .active_low = 0,
-               .default_state = 1,
-       },
-       {
-               .name = "gl-ar300m:green:wlan",
+               .name = "gl-ar300m:red:wlan",
                .gpio = GL_AR300M_GPIO_LED_WLAN,
                .active_low = 1,
        },