summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPaul Wassi <p.wassi@gmx.at>2017-10-24 14:23:58 +0200
committerMathias Kresin <dev@kresin.me>2017-10-25 09:22:13 +0200
commit080061c1ba61805974aed22dbf59438da329e5ea (patch)
treedb5014493cf8e27d33b565ac532f01b3fe891728 /target
parent9f7b897939cf0a670c08dd8cad8cf1f153c8b9f7 (diff)
downloadmtk-20170518-080061c1ba61805974aed22dbf59438da329e5ea.zip
mtk-20170518-080061c1ba61805974aed22dbf59438da329e5ea.tar.gz
mtk-20170518-080061c1ba61805974aed22dbf59438da329e5ea.tar.bz2
ar71xx: fix LED names for GL-AR150
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>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds6
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration4
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c6
3 files changed, 12 insertions, 4 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index dff3144..e101d55 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -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"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
index d6f7077..05d8060 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
@@ -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:"
;;
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c
index e0d1ea4..df52784 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gl-ar150.c
@@ -42,17 +42,17 @@
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,