// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm63268.dtsi"
/ {
led_power_red: led@8 {
reg = <8>;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led_power_green: led@17 {
reg = <17>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
led@23 {
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm63268.dtsi"
/ {
led@4 {
reg = <4>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@8 {
led_power_green: led@20 {
reg = <20>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm63268.dtsi"
/ {
led_power_red: led@8 {
reg = <8>;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
};
led@9 {
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm63268.dtsi"
/ {
led_power_red: led@3 {
reg = <3>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led_power_green: led@6 {
reg = <6>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
led@7 {
reg = <7>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@8 {
led@14 {
reg = <14>;
active-low;
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6318.dtsi"
/ {
led@0 {
reg = <0>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led_power_green: led@1 {
reg = <1>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@4 {
led_power_red: led@11 {
reg = <11>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6328.dtsi"
/ {
led@6 {
reg = <6>;
active-low;
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
};
led@7 {
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6328.dtsi"
/ {
led_alarm_red: led@2 {
reg = <2>;
active-low;
- label = "red:alarm";
+ function = LED_FUNCTION_ALARM;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6328.dtsi"
/ {
led_power_red: led@4 {
reg = <4>;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led_power_green: led@8 {
reg = <8>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
led@11 {
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6328.dtsi"
/ {
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led_power_red: led@5 {
reg = <5>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led@11 {
reg = <11>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6328.dtsi"
/ {
led_power_green: led@4 {
reg = <4>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
led_power_red: led@5 {
reg = <5>;
active-low;
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
panic-indicator;
};
led@10 {
reg = <10>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@11 {
reg = <11>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6328.dtsi"
/ {
led_power_green: led@8 {
reg = <8>;
active-low;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led@13 {
reg = <13>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@14 {
led@15 {
reg = <15>;
active-low;
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
};
led@17 {
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6358.dtsi"
/ {
};
led_power_red: led@3 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
compatible = "gpio-leds";
wlan {
- label = "red:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&ath9k 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0tpt";
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6362.dtsi"
/ {
};
led@30 {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6362.dtsi"
/ {
};
led_power_red: led@34 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
panic-indicator;
};
led_power_green: led@8 {
reg = <8>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
led@9 {
reg = <9>;
active-low;
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
};
led@10 {
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
compatible = "gpio-leds";
led@5 {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};
led@21 {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
led_power_green: led@22 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
led@23 {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
led_power_red: led@24 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
led@30 {
- label = "red:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
};
led@31 {
- label = "red:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
};
led_power_green: led@22 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
led_power_red: led@24 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
};
led_power_green: led@22 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
led_power_red: led@24 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
};
led@4 {
- label = "red:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
led@5 {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
led@11 {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
};
led_power_red: led@22 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
panic-indicator;
};
led@23 {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
led_power_green: led@24 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
};
led_power_blue: led@22 {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
led_power_red: led@24 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
};
led@14 {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
led_power_green: led@22 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
};
led@23 {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
led_power_red: led@24 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
panic-indicator;
};
// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6368.dtsi"
/ {
};
led@15 {
- label = "green:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
led_power_green: led@22 {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
led_power_red: led@23 {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
panic-indicator;
};
led@24 {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
led@27 {
- label = "green:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
};
};