mediatek: convert to new LED color/function format where possible
[openwrt/staging/mans0n.git] / target / linux / mediatek / dts / mt7981b-h3c-magic-nx30-pro.dts
index de702d4a534c6f0e4f1faf831ea098359fc7889a..030cc25041685313d2485706d110f08b505451e4 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_green: green {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pio 4 GPIO_ACTIVE_LOW>;
                };
 
                led_status_red: red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pio 5 GPIO_ACTIVE_LOW>;
                };
        };