mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-27 00:52:36 +00:00
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>
This commit is contained in:
parent
c46621b3f3
commit
4eefdc7adb
@ -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 = ð0;
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user