|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
/dts-v1/;
|
|
/dts-v1/;
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
+#include <dt-bindings/leds/common.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
#include "mt7986a.dtsi"
|
|
#include "mt7986a.dtsi"
|
|
@@ -88,25 +89,29 @@
|
|
};
|
|
};
|
|
|
|
|
|
white2 {
|
|
white2 {
|
|
- label = "white:status";
|
|
|
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
|
+ color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
|
|
gpios = <&pio 16 GPIO_ACTIVE_HIGH>;
|
|
default-state = "off";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
|
|
red2 {
|
|
red2 {
|
|
- label = "red:status";
|
|
|
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
gpios = <&pio 17 GPIO_ACTIVE_HIGH>;
|
|
gpios = <&pio 17 GPIO_ACTIVE_HIGH>;
|
|
default-state = "off";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
|
|
led_status_green: green2 {
|
|
led_status_green: green2 {
|
|
- label = "green:status";
|
|
|
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
|
+ color = <LED_COLOR_ID_GREEN>;
|
|
gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
|
|
gpios = <&pio 31 GPIO_ACTIVE_HIGH>;
|
|
default-state = "off";
|
|
default-state = "off";
|
|
};
|
|
};
|
|
|
|
|
|
led_status_amber: amber2 {
|
|
led_status_amber: amber2 {
|
|
- label = "amber:status";
|
|
|
|
|
|
+ function = LED_FUNCTION_STATUS;
|
|
|
|
+ color = <LED_COLOR_ID_AMBER>;
|
|
gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
|
|
gpios = <&pio 18 GPIO_ACTIVE_HIGH>;
|
|
default-state = "off";
|
|
default-state = "off";
|
|
};
|
|
};
|