mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-24 14:06:15 +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>
78 lines
1.4 KiB
Plaintext
78 lines
1.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
#include "ar934x_ruckus_zf73xx.dtsi"
|
|
|
|
/ {
|
|
model = "Ruckus ZoneFlex 7321[-U]";
|
|
compatible = "ruckus,zf7321", "qca,ar9342";
|
|
|
|
leds {
|
|
air-green {
|
|
label = "green:air";
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
dir-green {
|
|
label = "green:dir";
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
power_red: power-red {
|
|
function = LED_FUNCTION_POWER;
|
|
color = <LED_COLOR_ID_RED>;
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
panic-indicator;
|
|
};
|
|
|
|
wlan2g-green {
|
|
label = "green:wlan2g";
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0assoc";
|
|
};
|
|
|
|
wlan2g-yellow {
|
|
label = "yellow:wlan2g";
|
|
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
wlan5g-green {
|
|
label = "green:wlan5g";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0assoc";
|
|
};
|
|
|
|
wlan5g-yellow {
|
|
label = "yellow:wlan5g";
|
|
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
};
|
|
};
|
|
|
|
&board_data {
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_board_data_60: macaddr@60 {
|
|
reg = <0x60 0x6>;
|
|
};
|
|
|
|
macaddr_board_data_66: macaddr@66 {
|
|
reg = <0x66 0x6>;
|
|
};
|
|
|
|
cal_board_data_41000: cal@41000 {
|
|
reg = <0x41000 0x440>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
nvmem-cells = <&macaddr_board_data_66>;
|
|
};
|