aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorSven Schwermer <sven@svenschwermer.de>2022-03-07 22:08:32 +0100
committerPetr Štetiar <ynezz@true.cz>2022-03-08 18:33:42 +0100
commit4eefdc7adbbafbb3ed3c091ead20ba0a674a48da (patch)
tree544534cfb70a4d1c2c950977d371bc1370f64773 /target/linux/ath79/dts
parentc46621b3f3fff89cce4dd5e24bd52a4337e44378 (diff)
downloadupstream-4eefdc7adbbafbb3ed3c091ead20ba0a674a48da.tar.gz
upstream-4eefdc7adbbafbb3ed3c091ead20ba0a674a48da.tar.bz2
upstream-4eefdc7adbbafbb3ed3c091ead20ba0a674a48da.zip
ath79: Add green power LED to Airtight C-75
In addition to the missing green LED definition, the polarity of the amber power LED was incorrect which is fixed here. Signed-off-by: Sven Schwermer <sven@svenschwermer.de>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/qca9550_airtight_c-75.dts22
1 files changed, 15 insertions, 7 deletions
diff --git a/target/linux/ath79/dts/qca9550_airtight_c-75.dts b/target/linux/ath79/dts/qca9550_airtight_c-75.dts
index 0121753445..587610c6df 100644
--- a/target/linux/ath79/dts/qca9550_airtight_c-75.dts
+++ b/target/linux/ath79/dts/qca9550_airtight_c-75.dts
@@ -4,6 +4,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "AirTight Networks C-75";
@@ -11,9 +12,10 @@
aliases {
label-mac-device = &eth0;
- led-boot = &led_power;
- led-failsafe = &led_power;
- led-upgrade = &led_power;
+ led-boot = &led_power_amber;
+ led-running = &led_power_green;
+ led-failsafe = &led_power_amber;
+ led-upgrade = &led_power_amber;
};
keys {
@@ -29,10 +31,16 @@
leds {
compatible = "gpio-leds";
- led_power: power {
- label = "amber:power";
- gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
- default-state = "on";
+ led_power_amber: power-amber {
+ color = <LED_COLOR_ID_AMBER>;
+ function = LED_FUNCTION_POWER;
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
+ };
+
+ led_power_green: power-green {
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_POWER;
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
wlan2g {