#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "iodata,wn-dx1200gr", "mediatek,mt7621-soc";
compatible = "gpio-leds";
wps {
- label = "blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
};
};
read-only;
};
- factory: partition@200000 {
+ partition@200000 {
label = "factory";
reg = <0x200000 0x200000>;