ramips: use amber LED for boot/failsafe on Netgear EX3700/EX6130
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 9 Jun 2020 10:51:32 +0000 (12:51 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 10 Jun 2020 23:41:43 +0000 (01:41 +0200)
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>
target/linux/ramips/dts/mt7620a_netgear_ex3700.dts
target/linux/ramips/dts/mt7620a_netgear_ex6130.dts

index 15b0f2764a4ff59e24ace6bbeaccdef74344ef37..bcfa696977d1e582732cc09ef24d4c0b1edf17a5 100644 (file)
@@ -9,8 +9,8 @@
        model = "Netgear EX3700/EX3800";
 
        aliases {
-               led-boot = &led_power_green;
-               led-failsafe = &led_power_green;
+               led-boot = &led_power_amber;
+               led-failsafe = &led_power_amber;
                led-running = &led_power_green;
                led-upgrade = &led_power_green;
        };
        leds {
                compatible = "gpio-leds";
 
-               led_power_green: power_g {
+               led_power_green: power_green {
                        label = "ex3700:green:power";
                        gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
-               power_a {
+               led_power_amber: power_amber {
                        label = "ex3700:amber:power";
                        gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
                };
 
-               router_g {
+               router_green {
                        label = "ex3700:green:router";
                        gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
                };
 
-               router_r {
+               router_red {
                        label = "ex3700:red:router";
                        gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
                };
 
-               device_g {
+               device_green {
                        label = "ex3700:green:device";
                        gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
                };
 
-               device_r {
+               device_red {
                        label = "ex3700:red:device";
                        gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
                };
index 47dceea809546ccdd7cca48f16bff088f470c556..c9e6b1763f2ab9d183545248fa06e7246c798427 100644 (file)
@@ -9,8 +9,8 @@
        model = "Netgear EX6130";
 
        aliases {
-               led-boot = &led_power_green;
-               led-failsafe = &led_power_green;
+               led-boot = &led_power_amber;
+               led-failsafe = &led_power_amber;
                led-running = &led_power_green;
                led-upgrade = &led_power_green;
                label-mac-device = &ethernet;
        leds {
                compatible = "gpio-leds";
 
-               led_power_green: power_g {
+               led_power_green: power_green {
                        label = "ex6130:green:power";
                        gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
-               power_a {
+               led_power_amber: power_amber {
                        label = "ex6130:amber:power";
                        gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
                };
 
-               router_g {
+               router_green {
                        label = "ex6130:green:router";
                        gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
                };
 
-               router_r {
+               router_red {
                        label = "ex6130:red:router";
                        gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
                };
 
-               device_g {
+               device_green {
                        label = "ex6130:green:device";
                        gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
                };
 
-               device_r {
+               device_red {
                        label = "ex6130:red:device";
                        gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
                };