ath79: Port PowerCloud Systems CAP324 support
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / board.d / 01_leds
index 0ba03b2..4fa4434 100755 (executable)
@@ -10,7 +10,6 @@ boardname="${board##*,}"
 case "$board" in
 "avm,fritz300e")
        ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
-       ucidef_set_led_wlan "wlan" "WLAN" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_rssimon "wlan0" "200000" "1"
        ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
        ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
@@ -20,16 +19,38 @@ case "$board" in
        ;;
 "etactica,eg200")
        ucidef_set_led_netdev "lan" "LAN" "$boardname:red:eth0" "eth0"
-       ucidef_set_led_wlan "wlan" "WLAN" "$boardname:red:wlan" "phy0tpt"
        ucidef_set_led_oneshot "modbus" "Modbus" "$boardname:red:modbus" "100" "33"
        ucidef_set_led_default "etactica" "etactica" "$boardname:red:etactica" "ignore"
        ;;
-"glinet,ar150")
-       ucidef_set_led_wlan "wlan" "WLAN" "gl-ar150:orange:wlan" "phy0tpt"
+"netgear,wnr612-v2"|\
+"on,n150r")
+       ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth0"
+       ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
+       ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
+       ;;
+
+"pcs,cap324")
+       ucidef_set_led_netdev "lan" "LAN" "pcs:lan:green" "eth0"
+       ;;
+
+"pcs,cr5000")
+       ucidef_set_led_usbdev "usb" "USB" "pcs:white:wps" "1-1"
+       ;;
+
+"tplink,re450-v2")
+       ucidef_set_led_netdev "lan_data" "LAN Data" "tp-link:green:lan_data" "eth0" "tx rx"
+       ucidef_set_led_netdev "lan_link" "LAN Link" "tp-link:green:lan_link" "eth0" "link"
        ;;
 "tplink,tl-mr3020-v1")
        ucidef_set_led_switch "lan" "LAN" "tp-link:green:lan" "switch0" "0x02"
        ;;
+"tplink,tl-wr1043nd-v4")
+       ucidef_set_led_switch "wan" "WAN" "tp-link:green:wan" "switch0" "0x20"
+       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
+       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
+       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+       ;;
 "tplink,tl-wr740n-v2")
        ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
        ucidef_set_led_switch "lan1" "LAN1" "$boardname:green:lan1" "switch0" "0x02"
@@ -37,9 +58,13 @@ case "$board" in
        ucidef_set_led_switch "lan3" "LAN3" "$boardname:green:lan3" "switch0" "0x08"
        ucidef_set_led_switch "lan4" "LAN4" "$boardname:green:lan4" "switch0" "0x10"
        ;;
-"tplink,tl-wr1043nd-v1")
-       ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1"
-       ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt"
+"tplink,tl-wr741nd-v4"|\
+"tplink,tl-wr740nd-v4")
+       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04"
+       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10"
+       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
        ;;
 esac