ar71xx: add support for Rockeetech AP531B0
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 01_leds
index c2737bd460342a275a4078b2f4d757b9db50e5a5..32d49318e60233e467620a300a89c36684884359 100755 (executable)
@@ -11,6 +11,10 @@ board_config_update
 board=$(ar71xx_board_name)
 
 case "$board" in
+a40)
+       ucidef_set_led_default "status-red" "Status (red)" "a40:red:status" "0"
+       ucidef_set_led_default "status-blue" "Status (blue)" "a40:blue:status" "0"
+       ;;
 a60)
        ucidef_set_led_default "status-red" "Status (red)" "a60:red:status" "0"
        ucidef_set_led_default "status-blue" "Status (blue)" "a60:blue:status" "0"
@@ -45,10 +49,15 @@ antrouter-r1)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
        ucidef_set_led_default "btc" "BTC" "$board:green:btc" "0"
        ;;
+ap531b0|\
+sc1750|\
+sc450)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ;;
 archer-c59-v1|\
 archer-c60-v1)
-       ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x3C"
-       ucidef_set_led_switch "wan" "WAN" "$board:green:wan" "switch0" "0x02"
+       ucidef_set_led_switch "lan" "LAN" "$board:green:lan" "switch0" "0x1E"
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan2g" "phy1tpt"
        ucidef_set_led_wlan "wlan5g" "WLAN5G" "$board:green:wlan5g" "phy0tpt"
 
@@ -218,8 +227,26 @@ rb-750)
        ucidef_set_led_switch "port4" "port4" "rb750:green:port4" "switch0" "0x04"
        ucidef_set_led_switch "port5" "port5" "rb750:green:port5" "switch0" "0x02"
        ;;
+rb-750-r2|\
+rb-750up-r2)
+       ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
+       ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
+       ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
+       ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
+       ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
+       ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
+       ;;
 rb-941-2nd)
-       ucidef_set_led_timer "act" "act" "rb:green:act" "1000" "1000"
+       ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
+       ;;
+rb-951ui-2nd)
+       ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
+       ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
+       ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
+       ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
+       ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
+       ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
+       ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
        ;;
 rb-2011l|\
 rb-2011uas|\
@@ -232,6 +259,11 @@ rb-2011uias-2hnd)
        ucidef_set_led_switch "eth9" "ETH9" "rb:green:eth9" "switch1" "0x04"
        ucidef_set_led_switch "eth10" "ETH10" "rb:green:eth10" "switch1" "0x02"
        ;;
+rb-mapl-2nd)
+       ucidef_set_led_default "power" "POWER" "rb:green:power" "1"
+       ucidef_set_led_netdev "lan" "LAN" "rb:green:eth" "eth0"
+       ucidef_set_led_wlan "wlan" "WLAN" "rb:green:wlan" "phy0tpt"
+       ;;
 dap-2695-a1)
        ucidef_set_led_default "power" "POWER" "d-link:green:power" "1"
        ucidef_set_led_default "diag" "DIAG" "d-link:red:power" "0"
@@ -242,7 +274,8 @@ dhp-1565-a1)
        ;;
 dir-600-a1|\
 dir-615-e1|\
-dir-615-e4)
+dir-615-e4|\
+ebr-2310-c1)
        ucidef_set_led_netdev "wan" "WAN" "d-link:green:wan" "eth1"
        ucidef_set_led_switch "lan1" "LAN1" "d-link:green:lan1" "switch0" "0x02"
        ucidef_set_led_switch "lan2" "LAN2" "d-link:green:lan2" "switch0" "0x04"
@@ -284,19 +317,18 @@ dlan-pro-1200-ac)
        ucidef_set_led_gpio "plcw" "dLAN" "devolo:status:dlan" "17" "0"
        ucidef_set_led_gpio "plcr" "dLAN" "devolo:error:dlan" "16" "0"
        ;;
-gl-ar150|\
-gl-ar300|\
-gl-ar300m|\
+gl-ar300m)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:red:wlan" "phy0tpt"
+       ;;
 gl-mifi)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
+       ucidef_set_led_netdev "wan" "WAN" "$board:green:wan" "eth0"
+       ucidef_set_led_netdev "lan" "LAN" "$board:green:lan" "eth1"
+       ucidef_set_led_netdev "3gnet" "3GNET" "$board:green:net" "3g-wan"
+       ;;
+gl-ar150|\
+gl-ar300)
        ucidef_set_led_wlan "wlan" "WLAN" "$board:wlan" "phy0tpt"
-
-       case "$board" in
-       gl-mifi)
-               ucidef_set_led_netdev "wan" "WAN" "$board:wan" "eth0"
-               ucidef_set_led_netdev "lan" "LAN" "$board:lan" "eth1"
-               ucidef_set_led_netdev "3gnet" "3GNET" "$board:net" "3g-wan"
-               ;;
-       esac
        ;;
 gl-domino|\
 sc300m|\
@@ -463,10 +495,6 @@ re450)
        ucidef_set_led_wlan "wlan2g" "WLAN 2.4 GHz" "$board:blue:wlan2g" "phy1tpt"
        ucidef_set_led_wlan "wlan5g" "WLAN 5 GHz" "$board:blue:wlan5g" "phy0tpt"
        ;;
-sc1750|\
-sc450)
-       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:wlan" "phy0tpt"
-       ;;
 smart-300)
        ucidef_set_led_netdev "wan" "WAN" "nc-link:green:wan" "eth0"
        ucidef_set_led_switch "lan1" "LAN1" "nc-link:green:lan1" "switch0" "0x04"
@@ -570,7 +598,8 @@ tl-wa801nd-v3)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth1"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
        ;;
-tl-wa850re)
+tl-wa850re|\
+tl-wa850re-v2)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:blue:lan" "eth0"
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:wlan" "phy0tpt"
        ucidef_set_rssimon "wlan0" "200000" "1"
@@ -638,6 +667,9 @@ tl-wpa8630)
 tl-wr802n-v1)
        ucidef_set_led_wlan "wlan" "WLAN" "tp-link:blue:system" "phy0tpt"
        ;;
+tl-wr802n-v2)
+       ucidef_set_led_wlan "wlan" "WLAN" "$board:green:system" "phy0tpt"
+       ;;
 tl-wr940n-v4|\
 tl-wr941nd-v6)
        ucidef_set_led_netdev "wan" "WAN" "tp-link:blue:wan" "eth0"