ramips: use amber LED for boot/failsafe on Netgear EX3700/EX6130

According to the manual, the amber power LED is used to indicate boot,
while the green LED is meant to indicate a running system.

While at it, also adjust the DT node names for all LEDs.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2020-06-09 12:51:32 +02:00
parent fbb46b7bcc
commit 338c64937f
2 changed files with 16 additions and 16 deletions

View File

@ -9,8 +9,8 @@
model = "Netgear EX3700/EX3800"; model = "Netgear EX3700/EX3800";
aliases { aliases {
led-boot = &led_power_green; led-boot = &led_power_amber;
led-failsafe = &led_power_green; led-failsafe = &led_power_amber;
led-running = &led_power_green; led-running = &led_power_green;
led-upgrade = &led_power_green; led-upgrade = &led_power_green;
}; };
@ -18,33 +18,33 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_g { led_power_green: power_green {
label = "ex3700:green:power"; label = "ex3700:green:power";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
power_a { led_power_amber: power_amber {
label = "ex3700:amber:power"; label = "ex3700:amber:power";
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
}; };
router_g { router_green {
label = "ex3700:green:router"; label = "ex3700:green:router";
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
}; };
router_r { router_red {
label = "ex3700:red:router"; label = "ex3700:red:router";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
}; };
device_g { device_green {
label = "ex3700:green:device"; label = "ex3700:green:device";
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
}; };
device_r { device_red {
label = "ex3700:red:device"; label = "ex3700:red:device";
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
}; };

View File

@ -9,8 +9,8 @@
model = "Netgear EX6130"; model = "Netgear EX6130";
aliases { aliases {
led-boot = &led_power_green; led-boot = &led_power_amber;
led-failsafe = &led_power_green; led-failsafe = &led_power_amber;
led-running = &led_power_green; led-running = &led_power_green;
led-upgrade = &led_power_green; led-upgrade = &led_power_green;
label-mac-device = &ethernet; label-mac-device = &ethernet;
@ -19,33 +19,33 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
led_power_green: power_g { led_power_green: power_green {
label = "ex6130:green:power"; label = "ex6130:green:power";
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
power_a { led_power_amber: power_amber {
label = "ex6130:amber:power"; label = "ex6130:amber:power";
gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
}; };
router_g { router_green {
label = "ex6130:green:router"; label = "ex6130:green:router";
gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
}; };
router_r { router_red {
label = "ex6130:red:router"; label = "ex6130:red:router";
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
}; };
device_g { device_green {
label = "ex6130:green:device"; label = "ex6130:green:device";
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
}; };
device_r { device_red {
label = "ex6130:red:device"; label = "ex6130:red:device";
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>; gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
}; };