Skip to content

Commit

Permalink
ath79: Add green power LED to Airtight C-75
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
svenschwermer authored and ynezz committed Mar 8, 2022
1 parent c46621b commit 4eefdc7
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions target/linux/ath79/dts/qca9550_airtight_c-75.dts
Expand Up @@ -4,16 +4,18 @@

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>

/ {
model = "AirTight Networks C-75";
compatible = "airtight,c-75", "qca,qca9550", "qca,qca9558";

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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 4eefdc7

Please sign in to comment.