mediatek: convert to new LED color/function format where possible
[openwrt/staging/mans0n.git] / target / linux / mediatek / dts / mt7981b-cudy-wr3000-v1.dts
index f4ba629525155aaa9e613b740f0583e764e92cde..10b56a3aa74807046d13211491fe41350be914a3 100644 (file)
@@ -2,6 +2,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/leds/common.h>
+
 #include "mt7981.dtsi"
 
 / {
@@ -42,7 +44,8 @@
                compatible = "gpio-leds";
 
                led_status: led@0 {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pio 10 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                led@2 {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pio 5 GPIO_ACTIVE_LOW>;
                };
 
                led@3 {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pio 9 GPIO_ACTIVE_LOW>;
                };