ramips: fix PSG1218 LEDs
authorXuefu Lin <xuefulin@gmail.com>
Fri, 21 Oct 2016 09:06:39 +0000 (17:06 +0800)
committerJohn Crispin <john@phrozen.org>
Wed, 26 Oct 2016 10:37:45 +0000 (12:37 +0200)
Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/base-files/etc/diag.sh
target/linux/ramips/dts/PSG1218.dts

index 4b66694ed972ced02a8563b8392117fa3eff0e35..d1c83d748a196eac2af2822f41bae85603b5ac7b 100755 (executable)
@@ -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"
index 84459a5c0147b16ad184b0488db8456167cbb0fe..b6d845f9402734637ae0709c0ddb01c8d5e567aa 100644 (file)
@@ -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)
index e477ee503839dcba91d2fb3d253ce363b837fbc8..6fdb67869a4107fc433a207017bfa71d980f8535 100644 (file)
 
                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>;
                };
        };