ramips: cleanup EX2700 and WN3000RPv3 LEDs

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>
This commit is contained in:
Thibaut VARENE 2017-07-30 15:42:38 +02:00 committed by Mathias Kresin
parent 419fa7a15f
commit 1780d40f2b
2 changed files with 4 additions and 5 deletions

View file

@ -160,7 +160,6 @@ dir-860l-b1)
;; ;;
ex2700|\ ex2700|\
wn3000rpv3) wn3000rpv3)
ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0"
set_wifi_led "$board:green:router" set_wifi_led "$board:green:router"
;; ;;
ex3700) ex3700)

View file

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