#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
read-only;
};
- factory: partition@30000 {
+ partition@30000 {
label = "factory";
reg = <0x30000 0x10000>;
read-only;
compatible = "gpio-leds";
wps {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
};
};
led_status: status {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
};
};