ar71xx: fix LED names for GL-AR150
authorPaul Wassi <p.wassi@gmx.at>
Tue, 24 Oct 2017 12:23:58 +0000 (14:23 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 25 Oct 2017 07:22:13 +0000 (09:22 +0200)
Add the respective colour to the LED's names for the GL-AR150 to be conform
to the kernel. Also add netdev triggers for the LAN and WAN LED.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
target/linux/ar71xx/base-files/etc/board.d/01_leds
target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c

index dff314465ccae68c4443c88a0cfca2db6c24ef37..e101d557bd96ba381fa2e6c8a180aff1d1457963 100755 (executable)
@@ -387,7 +387,11 @@ gl-mifi)
        ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
        ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
        ;;
-gl-ar150|\
+gl-ar150)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:orange:wlan" "phy0tpt"
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
+       ;;
 gl-ar300)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
        ;;
index d6f70770930ef7963f954bde0175bdcc0fb6fbe2..05d806051a26a6ec3e4f6185e4845e4896f5e0dd 100644 (file)
@@ -54,6 +54,10 @@ dr344)
        migrate_leds ":red:=:green:" ":yellow:=:green:"
        ;;
 
+gl-ar150)
+       migrate_leds "gl-ar150:wlan=gl-ar150:orange:wlan" "gl-ar150:lan=gl-ar150:green:lan" "gl-ar150:wan=gl-ar150:green:wan"
+       ;;
+
 wndap360)
        migrate_leds "wndap360:=netgear:"
        ;;
index e0d1ea4381396b138a435f2f8b9e480a11787607..df5278491919f93821a585fceb59ca84da0094ca 100644 (file)
 
 static struct gpio_led gl_ar150_leds_gpio[] __initdata = {
        {
-               .name = "gl-ar150:wlan",
+               .name = "gl-ar150:orange:wlan",
                .gpio = GL_AR150_GPIO_LED_WLAN,
                .active_low = 0,
        },
        {
-               .name = "gl-ar150:lan",
+               .name = "gl-ar150:green:lan",
                .gpio = GL_AR150_GPIO_LED_LAN,
                .active_low = 0,
        },
        {
-               .name = "gl-ar150:wan",
+               .name = "gl-ar150:green:wan",
                .gpio = GL_AR150_GPIO_LED_WAN,
                .active_low = 0,
                .default_state = 1,