aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc/board.d/01_leds
diff options
context:
space:
mode:
authorThomas Vincent-Cross <me@tvc.id.au>2018-10-23 02:21:16 +1100
committerMathias Kresin <dev@kresin.me>2018-11-28 00:50:35 +0100
commita160f50d4f240019fafe95e80701ebb871c788fe (patch)
tree5d7badd6dbe43f0c543dbdf3f65f0d6052d2248a /target/linux/ramips/base-files/etc/board.d/01_leds
parent31469aebd4c737ba891ceffc58db59c6b039445c (diff)
downloadupstream-a160f50d4f240019fafe95e80701ebb871c788fe.tar.gz
upstream-a160f50d4f240019fafe95e80701ebb871c788fe.tar.bz2
upstream-a160f50d4f240019fafe95e80701ebb871c788fe.zip
ramips: add support for Wavlink WL-WN570HA1
This commit adds support for the Wavlink WL-WN570HA1, a dual-band PoE wireless router with the following specifications: - CPU: MediaTek MT7688AN 580MHz - Flash: 8MB - RAM: 64MB - Ethernet: 1x 10/100Mbps - 2.4 GHz: 802.11b/g/n SoC, 1T1R, 27 dBm - 5 GHz: 802.11a/n/ac MT7610E, 1T1R, 25 dBm - Antennas: 2x external (1 per radio), detachable - LEDs: 3 programmable + Wi-Fi, WAN/LAN, Power - Buttons: Reset Flashing instructions: Factory U-boot launches a TFTP client if reset button is pressed during power-on. Rename the sysupgrade file and configure TFTP as follows: - Client (WL-WN570HA1) IP: 192.168.10.101 - Server IP: 192.168.10.100 - Filename: firmware.bin Signed-off-by: Thomas Vincent-Cross <me@tvc.id.au> [use generic board detection, add firmware partition compatible] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc/board.d/01_leds')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index fb288de09b..4330254c8f 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -370,6 +370,14 @@ vocore-16M)
w502u)
set_wifi_led "rt2800pci-phy0::radio"
;;
+wavlink,wl-wn570ha1)
+ ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
+ ucidef_set_rssimon "wlan0" "200000" "1"
+ ucidef_set_led_rssi "wifi-low" "wifi-low" "$boardname:green:wifi-low" "wlan0" "1" "49"
+ ucidef_set_led_rssi "wifi-med" "wifi-med" "$boardname:green:wifi-med" "wlan0" "50" "84"
+ ucidef_set_led_rssi "wifi-high" "wifi-high" "$boardname:green:wifi-high" "wlan0" "85" "100"
+ set_wifi_led "$boardname:green:wifi"
+ ;;
we1026-5g-16m)
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
set_wifi_led "we1026-5g:green:wifi"