From 338c64937fb87a8e5b03c213076ef369e5291c89 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 9 Jun 2020 12:51:32 +0200 Subject: [PATCH] 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 --- .../linux/ramips/dts/mt7620a_netgear_ex3700.dts | 16 ++++++++-------- .../linux/ramips/dts/mt7620a_netgear_ex6130.dts | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts b/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts index 15b0f2764a..bcfa696977 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex3700.dts @@ -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; }; @@ -18,33 +18,33 @@ 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>; }; diff --git a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts index 47dceea809..c9e6b1763f 100644 --- a/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts +++ b/target/linux/ramips/dts/mt7620a_netgear_ex6130.dts @@ -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 = ðernet; @@ -19,33 +19,33 @@ 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>; }; -- 2.25.1