#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
model = "COMFAST CF-E375AC";
compatible = "gpio-leds";
led_lan: lan {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
};
wan {
- label = "red:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
};