#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc";
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "amber:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
wps {
- label = "amber:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_AMBER>;
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
};