aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorSebastian Schaper <openwrt@sebastianschaper.net>2023-04-23 15:40:34 +0200
committerDavid Bauer <mail@david-bauer.net>2023-04-24 03:06:39 +0200
commit0601f7134d5f86f75997453eb30590b0f578cbfb (patch)
tree70bb72a10a35bdd84c90c4434d403c3be9edadce /target/linux/ramips
parent45cf200b2e22c34f2ae043b87e24230de526fefc (diff)
downloadupstream-0601f7134d5f86f75997453eb30590b0f578cbfb.tar.gz
upstream-0601f7134d5f86f75997453eb30590b0f578cbfb.tar.bz2
upstream-0601f7134d5f86f75997453eb30590b0f578cbfb.zip
ramips: fix green LED for D-Link DAP-X1860
It was found this device uses a single tri-color power/status LED rather than individual red/orange LEDs, which also supports green. Add GPIO for green color and use with `boot` and `running` aliases. Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net> Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts13
1 files changed, 9 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts b/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts
index 1aa3f7c91b..818d2d8c41 100644
--- a/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts
+++ b/target/linux/ramips/dts/mt7621_dlink_dap-x1860-a1.dts
@@ -15,9 +15,9 @@
aliases {
label-mac-device = &gmac0;
- led-boot = &led_power_orange;
+ led-boot = &led_power_green;
led-failsafe = &led_power_red;
- led-running = &led_power_orange;
+ led-running = &led_power_green;
led-upgrade = &led_power_red;
};
@@ -40,15 +40,20 @@
leds {
compatible = "gpio-leds";
+ led_power_green: power_green {
+ label = "green:power";
+ gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
+ default-state = "on";
+ };
+
led_power_red: power_red {
label = "red:power";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
- led_power_orange: power_orange {
+ power_orange {
label = "orange:power";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
- default-state = "on";
};
rssihigh {