ramips: cleanup EX2700 and WN3000RPv3 LEDs
authorThibaut VARENE <hacks@slashdirt.org>
Sun, 30 Jul 2017 13:42:38 +0000 (15:42 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 2 Aug 2017 22:11:25 +0000 (00:11 +0200)
This patch cleans up the WN3000RPv3 and EX2700 setup, bringing it in line
with other similar devices:

The power led is a bicolor one. The bootloader brings the red side on at
powerup.

Instead of blinking the red side in diag.sh and need to forcefully turn it off
in 01_leds, this patch simplifies the setup by relying on the default off state
of the gpio-led driver for the red side and blinking the green side as with
other devices.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
target/linux/ramips/base-files/etc/board.d/01_leds
target/linux/ramips/base-files/etc/diag.sh

index db6910cdfeca4d55466c01b8fca0376e81430a9c..02f4b913d59936fadd0922454d64644f3f58713d 100644 (file)
@@ -160,7 +160,6 @@ dir-860l-b1)
        ;;
 ex2700|\
 wn3000rpv3)
-       ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0"
        set_wifi_led "$board:green:router"
        ;;
 ex3700)
index ffd2abd0786e89287c3442b0840c3a2a7bf66ffa..c57a2a59876998eec6ae99d484fe0c51a7ca32ce 100644 (file)
@@ -21,6 +21,7 @@ get_status_led() {
        dch-m225|\
        dir-860l-b1|\
        e1700|\
+       ex2700|\
        ex3700|\
        fonera20n|\
        kn|\
@@ -41,7 +42,8 @@ get_status_led() {
        wndr3700v5|\
        x5|\
        x8|\
-       xdxrn502j)
+       xdxrn502j|\
+       wn3000rpv3)
                status_led="$board:green:power"
                ;;
        3g-6200nl)
@@ -51,13 +53,11 @@ get_status_led() {
        cs-qr10|\
        d105|\
        dcs-930l-b1|\
-       ex2700|\
        hlk-rm04|\
        jhr-n825r|\
        mpr-a1|\
        mpr-a2|\
-       mzk-ex750np|\
-       wn3000rpv3)
+       mzk-ex750np)
                status_led="$board:red:power"
                ;;
        ai-br100|\