ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_totolink_a3.dts
index 246dfadddd897c20da39eb9dd12316b16fc26624..c8a4f91958118f80a29fdad48c1d4d17f640a522 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "mt7628an_iptime.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_cpu: cpu {
-                       label = "blue:cpu";
+                       function = LED_FUNCTION_CPU;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "blue:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };