#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "fon,fonera-20n", "ralink,rt3052-soc";
};
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
usb {
- label = "orange:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
trigger-sources = <&otg_port1>;
linux,default-trigger = "usbport";