aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorXuefu Lin <xuefulin@gmail.com>2016-10-21 17:06:39 +0800
committerJohn Crispin <john@phrozen.org>2016-10-26 12:37:45 +0200
commit8312738806df669ad61bf9225474623acbebe444 (patch)
tree01405a5b502d9bac42e7d9b5a045aa0217bb9508 /target/linux/ramips
parenta71a8955f20e3c3ac13323072a70362f3c9d80fd (diff)
downloadupstream-8312738806df669ad61bf9225474623acbebe444.tar.gz
upstream-8312738806df669ad61bf9225474623acbebe444.tar.bz2
upstream-8312738806df669ad61bf9225474623acbebe444.zip
ramips: fix PSG1218 LEDs
Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
Diffstat (limited to 'target/linux/ramips')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh2
-rw-r--r--target/linux/ramips/dts/PSG1218.dts6
3 files changed, 6 insertions, 5 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 4b66694ed9..d1c83d748a 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -264,7 +264,8 @@ psg1208)
set_wifi_led "$board:white:wlan2g"
;;
psg1218)
- ucidef_set_led_default "power" "power" "$board:red:status" "1"
+ ucidef_set_led_netdev "Network" "Network" "$board:blue:status" "eth0"
+ ucidef_set_led_default "status" "STATUS" "$board:yellow:status" "0"
;;
px-4885)
set_wifi_led "$board:orange:wifi"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 84459a5c01..b6d845f940 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -99,7 +99,7 @@ get_status_led() {
status_led="$board:white:wps"
;;
psg1218)
- status_led="$board:blue:status"
+ status_led="$board:yellow:status"
;;
cy-swr1100|\
w502u)
diff --git a/target/linux/ramips/dts/PSG1218.dts b/target/linux/ramips/dts/PSG1218.dts
index e477ee5038..6fdb67869a 100644
--- a/target/linux/ramips/dts/PSG1218.dts
+++ b/target/linux/ramips/dts/PSG1218.dts
@@ -11,17 +11,17 @@
blue {
label = "psg1218:blue:status";
- gpios = <&gpio0 10 0>;
+ gpios = <&gpio0 10 1>;
};
yellow {
label = "psg1218:yellow:status";
- gpios = <&gpio0 11 0>;
+ gpios = <&gpio0 11 1>;
};
red {
label = "psg1218:red:status";
- gpios = <&gpio0 8 1>;
+ gpios = <&gpio0 8 0>;
};
};