aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-12-21 19:55:25 +0100
committerMathias Kresin <dev@kresin.me>2017-12-23 15:35:52 +0100
commitc7776d4c552e1d2b10d111191376190c112a67e5 (patch)
tree5506b563fbea02aebe9ae12a9da17785f6cd0a70 /target/linux/ramips/base-files
parent39e9bfb18199b046bd3b613002112e4e6dd53658 (diff)
downloadupstream-c7776d4c552e1d2b10d111191376190c112a67e5.tar.gz
upstream-c7776d4c552e1d2b10d111191376190c112a67e5.tar.bz2
upstream-c7776d4c552e1d2b10d111191376190c112a67e5.zip
ramips: fix Linkit smart 7688 support
Use a more appropriate compatible string. Fix the wireless led GPIO and add the default wireless trigger. Use the wireless LED for boot state indication as well. Remove the GPIO pinmux for pins not exposed on the board. 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_leds3
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh2
2 files changed, 4 insertions, 1 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 a1c0c0e690..03d084f17b 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -245,6 +245,9 @@ kng_rc)
set_usb_led "$boardname:green:usb"
set_wifi_led "$boardname:green:wifi"
;;
+linkits7688)
+ ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
+ ;;
m2m)
set_wifi_led "$boardname:blue:wifi"
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 6ad22f56c8..8858876899 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -175,7 +175,7 @@ get_status_led() {
status_led="$boardname:blue:status"
;;
linkits7688)
- [ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
+ status_led="linkit-smart-7688:orange:wifi"
;;
m2m)
status_led="$boardname:blue:wifi"