/dts-v1/;
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
#include "mt7629.dtsi"
/ {
compatible = "gpio-leds";
led_cpu: cpu {
- label = "orange:cpu";
+ function = LED_FUNCTION_CPU;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pio 57 GPIO_ACTIVE_LOW>;
};
};
wan {
- label = "orange:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_ORANGE>;
gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
};
};