summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorL. D. Pinney <ldpinney@gmail.com>2016-12-29 01:43:08 -0600
committerMathias Kresin <dev@kresin.me>2017-01-02 19:16:54 +0100
commitb28e94d4bfa1f81219765fc395e63ca81badd8df (patch)
tree5acedaffb8283b4ffb616e7dd014016498aa5824 /target/linux/ramips/base-files
parentfd718c50256536ed082852d735dc7690d7604418 (diff)
downloadmtk-20170518-b28e94d4bfa1f81219765fc395e63ca81badd8df.zip
mtk-20170518-b28e94d4bfa1f81219765fc395e63ca81badd8df.tar.gz
mtk-20170518-b28e94d4bfa1f81219765fc395e63ca81badd8df.tar.bz2
ramips: MiWiFi Nano fixes
Use the the dt-bindings macros and add the reset button. Set the correct polarity for the LEDs and drop the default state. Remove all trigger for the LEDs. According to the manual the LEDs are only used to show the operation state, where blue means normal operation. Use the MAC-Addresses stored in EEPROM for the ethernet and the wireless interface. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> [use leds only for boot status indication, add proper commit message] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds5
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh4
2 files changed, 2 insertions, 7 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 e6664bd..0ebf471 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -225,11 +225,6 @@ miniembplug)
miwifi-mini)
ucidef_set_led_default "power" "power" "$board:red:status" "1"
;;
-miwifi-nano)
- ucidef_set_led_default "power" "power" "$board:red:status" "1"
- ucidef_set_led_wlan "radio_led" "radio" "$board:amber:radio" "phy0radio"
- ucidef_set_led_wlan "wifi_led" "wifi" "$board:blue:wifi" "phy0assoc"
- ;;
mlw221|\
mlwg2)
set_wifi_led "$board:blue:wifi"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 6b64d3b..a22be5e 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -152,11 +152,11 @@ get_status_led() {
status_led="$board:blue:wifi"
;;
m3|\
- m4)
+ m4|\
+ miwifi-nano)
status_led="$board:blue:status"
;;
miwifi-mini|\
- miwifi-nano|\
zte-q7)
status_led="$board:red:status"
;;