mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
e3ddfcc70c
Initial conversion to new LED color/function format and drop label format where possible. The same label is composed at runtime. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
40 lines
787 B
Plaintext
40 lines
787 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
#include "ar9342_zyxel_nwa11xx.dtsi"
|
|
|
|
/ {
|
|
compatible = "zyxel,nwa1123-ni", "qca,ar9342";
|
|
model = "Zyxel NWA1123-NI";
|
|
|
|
aliases {
|
|
label-mac-device = ð0;
|
|
led-boot = &led_status_green;
|
|
led-failsafe = &led_status_amber;
|
|
led-running = &led_status_green;
|
|
led-upgrade = &led_status_amber;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_status_green: status_green {
|
|
function = LED_FUNCTION_STATUS;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
default-state = "on";
|
|
};
|
|
|
|
led_status_amber: status_amber {
|
|
function = LED_FUNCTION_STATUS;
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pcie {
|
|
status = "okay";
|
|
};
|