/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7622.dtsi"
compatible = "gpio-leds";
led_status: status_red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 81 GPIO_ACTIVE_LOW>;
default-state = "on";
};
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7622.dtsi"
compatible = "gpio-leds";
led_power_blue: power_blue {
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 18 GPIO_ACTIVE_LOW>;
};
led_power_amber: power_amber {
- label = "amber:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&pio 17 GPIO_ACTIVE_LOW>;
};
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7629.dtsi"
/ {
compatible = "gpio-leds";
led_cpu: cpu {
- label = "orange:cpu";
+ function = LED_FUNCTION_CPU;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pio 57 GPIO_ACTIVE_LOW>;
};
};
wan {
- label = "orange:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
};
};
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7629.dtsi"
/ {
compatible = "gpio-leds";
led_power_green: power_green {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 21 GPIO_ACTIVE_LOW>;
};
led_power_red: power_red {
- label = "red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 61 GPIO_ACTIVE_LOW>;
};
};
wps_green {
- label = "green:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 57 GPIO_ACTIVE_LOW>;
};
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7629.dtsi"
/ {
compatible = "gpio-leds";
led_status_green: status_green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 55 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
led_status_amber: status_amber {
- label = "amber:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&pio 56 GPIO_ACTIVE_HIGH>;
};
};
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7981.dtsi"
compatible = "gpio-leds";
led_status_red: led_status_red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 3 GPIO_ACTIVE_LOW>;
};
led_status_green: led_status_green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};
};
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7981.dtsi"
compatible = "gpio-leds";
green_led: led-0 {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
};
led-1 {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 12 GPIO_ACTIVE_LOW>;
};
red_led: led-2 {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 35 GPIO_ACTIVE_LOW>;
};
};
/dts-v1/;
+#include <dt-bindings/leds/common.h>
+
#include "mt7981.dtsi"
/ {
compatible = "gpio-leds";
led_status: led@0 {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
};
};
led@2 {
- label = "blue:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 5 GPIO_ACTIVE_LOW>;
};
led@3 {
- label = "blue:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
};
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7981.dtsi"
compatible = "gpio-leds";
led_status_green: green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 4 GPIO_ACTIVE_LOW>;
};
led_status_red: red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 5 GPIO_ACTIVE_LOW>;
};
};
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7981.dtsi"
compatible = "gpio-leds";
led_status_red: red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
};
led_status_blue: blue {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&pio 13 GPIO_ACTIVE_LOW>;
};
};
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7981.dtsi"
compatible = "gpio-leds";
led_status_red: red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 3 GPIO_ACTIVE_LOW>;
};
led_status_green: green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
};
};
};
wan-red {
- label = "red:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 12 GPIO_ACTIVE_LOW>;
};
};
compatible = "gpio-leds";
wlan {
- label = "white:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1tpt";
};
};
wan-red {
- label = "red:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 12 GPIO_ACTIVE_LOW>;
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7986a.dtsi"
compatible = "gpio-leds";
led_status_red: status_red {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
};
led_status_green: status_green {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
};
#include "mt7986a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
aliases {
};
led_green_lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 20 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
#include "mt7986a.dtsi"
};
white2 {
- label = "white:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_WHITE>;
gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
red2 {
- label = "red:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_RED>;
gpios = <&pio 17 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led_status_green: green2 {
- label = "green:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led_status_amber: amber2 {
- label = "amber:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
led_power_amber: power_amber {
gpios = <&pio 15 GPIO_ACTIVE_LOW>;
- label = "amber:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_AMBER>;
};
wlan2g_green {
led_power_blue: power_blue {
gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
- label = "blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
};
led_power_green: power_green {
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
};
wlan2g_blue {
lan_green {
gpios = <&pio 22 GPIO_ACTIVE_HIGH>;
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
};
lan_amber {
gpios = <&pio 13 GPIO_ACTIVE_LOW>;
- label = "amber:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_AMBER>;
};
wlan5g_blue {