/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>;
};