#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "hnet,c108", "ralink,mt7620a-soc";
};
lan_red {
- label = "red:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
};
led_lan_green: lan_green {
- label = "green:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
};
};