mediatek: convert to new LED color/function format where possible
[openwrt/staging/nbd.git] / target / linux / mediatek / dts / mt7629-iptime-a6004mx.dts
index 5b1b3083a066589e535fb507bdc6c3f113e0a33a..78286714eafa6f8f4b27c495dc982fd32ba01ef9 100644 (file)
@@ -2,6 +2,7 @@
 
 /dts-v1/;
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include "mt7629.dtsi"
 
 / {
@@ -25,7 +26,8 @@
                compatible = "gpio-leds";
 
                led_cpu: cpu {
-                       label = "orange:cpu";
+                       function = LED_FUNCTION_CPU;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&pio 57 GPIO_ACTIVE_LOW>;
                };
 
@@ -42,7 +44,8 @@
                };
 
                wan {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
                };
        };