mediatek: convert to new LED color/function format where possible
[openwrt/staging/mans0n.git] / target / linux / mediatek / dts / mt7981b-cetron-ct3003.dts
index 281c96e275ef5bacbec333947988588bd7f79165..919c208918e0d1087ebaf6ce46b2245a37f619b6 100644 (file)
@@ -3,6 +3,7 @@
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 #include "mt7981.dtsi"
 
                compatible = "gpio-leds";
 
                led_status_red: led_status_red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pio 3 GPIO_ACTIVE_LOW>;
                };
 
                led_status_green: led_status_green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pio 7 GPIO_ACTIVE_LOW>;
                };
        };