mediatek: convert to new LED color/function format where possible
[openwrt/staging/mans0n.git] / target / linux / mediatek / dts / mt7981b-jcg-q30-pro.dts
index bb6b474080ac12b2b7954b65807e577fa3ccb425..c8b9aeba42fe283aeafc0b275aa0eeabda11eef9 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: red {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_blue: blue {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pio 13 GPIO_ACTIVE_LOW>;
                };
        };