ath79: add support for Compex WPJ558 (16M)
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 01_leds
old mode 100755 (executable)
new mode 100644 (file)
index 8f0e2f8..8715a57
@@ -1,4 +1,3 @@
-#!/bin/sh
 
 . /lib/functions/uci-defaults.sh
 
@@ -72,7 +71,8 @@ tplink,archer-c59-v1|\
 tplink,archer-c59-v2|\
 tplink,archer-c60-v1|\
 tplink,archer-c60-v2|\
-tplink,archer-c60-v3)
+tplink,archer-c60-v3|\
+tplink,tl-wr841hp-v3)
        ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x1e"
        ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
        ;;
@@ -84,6 +84,10 @@ avm,fritzdvbc)
        ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan1" "60" "100"
        ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan1" "80" "100"
        ;;
+buffalo,wzr-hp-g300nh-rb|\
+buffalo,wzr-hp-g300nh-s)
+       ucidef_set_led_netdev "router" "Router" "green:router" "eth1"
+       ;;
 comfast,cf-e110n-v2)
        ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
        ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
@@ -129,6 +133,10 @@ comfast,cf-e314n-v2)
        ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
        ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
        ;;
+comfast,cf-e375ac)
+       ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x04"
+       ucidef_set_led_switch "wan" "WAN" "red:wan" "switch0" "0x02"
+       ;;
 comfast,cf-e5)
        ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
        ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
@@ -150,13 +158,17 @@ openmesh,om2p-hs-v1|\
 openmesh,om2p-hs-v2|\
 openmesh,om2p-hs-v3|\
 openmesh,om2p-lc|\
+openmesh,om5p|\
 telco,t1)
        ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
        ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
        ;;
 comfast,cf-wr752ac-v1|\
-engenius,eap300-v2|\
-enterasys,ws-ap3705i)
+enterasys,ws-ap3705i|\
+openmesh,mr900-v1|\
+openmesh,mr900-v2|\
+openmesh,mr1750-v1|\
+openmesh,mr1750-v2)
        ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
        ;;
 compex,wpj344-16m|\
@@ -167,6 +179,7 @@ compex,wpj531-16m)
        ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "65" "100"
        ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "50" "100"
        ;;
+devolo,dlan-pro-1200plus-ac|\
 devolo,magic-2-wifi)
        ucidef_set_led_netdev "plcw" "dLAN" "white:dlan" "eth0.1" "rx"
        ;;
@@ -181,14 +194,6 @@ dlink,dap-1365-a1)
 dlink,dir-859-a1)
        ucidef_set_led_switch "internet" "WAN" "green:internet" "switch0" "0x20"
        ;;
-engenius,enh202-v1)
-       ucidef_set_led_switch "lan" "LAN" "amber:lan" "switch0" "0x10"
-       ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
-       ucidef_set_rssimon "wlan0" "200000" "1"
-       ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1"  "100"
-       ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
-       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
-       ;;
 engenius,ens202ext-v1|\
 engenius,enstationac-v1)
        ucidef_set_rssimon "wlan0" "200000" "1"
@@ -214,12 +219,26 @@ qxwlan,e750a-v4-16m)
        ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
        ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
        ;;
+glinet,gl-x300b|\
 glinet,gl-x750)
        ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
        ;;
 hak5,lan-turtle)
        ucidef_set_led_netdev "wan" "WAN" "orange:system" "eth1"
        ;;
+joyit,jt-or750i)
+       ucidef_set_led_default "ath10k" "ath10k-disable" "ath10k-phy0" "0"
+       ;;
+meraki,mr12|\
+tplink,cpe210-v2|\
+tplink,cpe210-v3)
+       ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
+       ucidef_set_rssimon "wlan0" "200000" "1"
+       ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
+       ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
+       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
+       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
+       ;;
 meraki,mr16)
        ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
        ;;
@@ -247,12 +266,24 @@ pcs,cr3000)
        ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x10"
        ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x02"
        ;;
+qca,ap143-8m|\
+qca,ap143-16m)
+       ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
+       ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x02"
+       ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x04"
+       ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x08"
+       ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x10"
+       ;;
 qihoo,c301)
        ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
        ;;
 samsung,wam250)
        ucidef_set_led_netdev "lan" "LAN" "white:lan" "eth0"
        ;;
+teltonika,rut230-v1)
+       ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
+       ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x04"
+       ;;
 tplink,archer-a7-v5|\
 tplink,archer-c7-v4|\
 tplink,archer-c7-v5)
@@ -309,15 +340,6 @@ tplink,wbs510-v2)
        ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
        ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
        ;;
-tplink,cpe210-v2|\
-tplink,cpe210-v3)
-       ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
-       ucidef_set_rssimon "wlan0" "200000" "1"
-       ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
-       ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
-       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
-       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
-       ;;
 tplink,cpe510-v2|\
 tplink,cpe510-v3)
        ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
@@ -334,7 +356,8 @@ tplink,tl-wr902ac-v1)
 tplink,re355-v1|\
 tplink,re450-v1|\
 tplink,re450-v2|\
-tplink,re450-v3)
+tplink,re450-v3|\
+tplink,re455-v1)
        ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
        ucidef_set_led_netdev "lan_link" "LAN Link" "green:lan_link" "eth0" "link"
        ;;
@@ -356,9 +379,24 @@ tplink,tl-wr842n-v2)
        ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
        ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
        ;;
+tplink,tl-wr941hp-v1)
+       ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1" "link tx rx"
+       ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x1e"
+       ;;
 trendnet,tew-823dru)
        ucidef_set_led_netdev "wan" "WAN" "green:planet" "eth0"
        ;;
+ubnt,bullet-ac|\
+ubnt,nanobeam-ac|\
+ubnt,nanobeam-ac-gen2|\
+ubnt,nanostation-ac|\
+ubnt,powerbeam-5ac-gen2)
+       ucidef_set_rssimon "wlan0" "200000" "1"
+       ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
+       ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "blue:rssi1" "wlan0" "26" "100"
+       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "blue:rssi2" "wlan0" "51" "100"
+       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi3" "wlan0" "76" "100"
+       ;;
 ubnt,bullet-m-ar7240|\
 ubnt,bullet-m-ar7241|\
 ubnt,bullet-m-xw|\
@@ -368,6 +406,8 @@ ubnt,nanostation-loco-m-xw|\
 ubnt,nanostation-m|\
 ubnt,nanostation-m-xw|\
 ubnt,picostation-m|\
+ubnt,powerbeam-m2-xw|\
+ubnt,powerbeam-m5-xw|\
 ubnt,powerbridge-m|\
 ubnt,rocket-m)
        ucidef_set_rssimon "wlan0" "200000" "1"
@@ -376,16 +416,6 @@ ubnt,rocket-m)
        ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100"
        ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100"
        ;;
-ubnt,nanobeam-ac|\
-ubnt,nanobeam-ac-gen2|\
-ubnt,nanostation-ac|\
-ubnt,powerbeam-5ac-gen2)
-       ucidef_set_rssimon "wlan0" "200000" "1"
-       ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
-       ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "blue:rssi1" "wlan0" "26" "100"
-       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "blue:rssi2" "wlan0" "51" "100"
-       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi3" "wlan0" "76" "100"
-       ;;
 wallys,dr531)
        ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
        ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x2"
@@ -402,6 +432,9 @@ wd,mynet-wifi-rangeextender)
        ucidef_set_led_rssi "rssimedium" "RSSIMED" "blue:rssi-med" "wlan0" "33" "100"
        ucidef_set_led_rssi "rssihigh" "RSSIMAX" "blue:rssi-max" "wlan0" "66" "100"
        ;;
+xiaomi,aiot-ac2350)
+       ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x02"
+       ;;
 yuncore,a770)
        ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
        ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x10"