ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_iptime_a1004ns.dts
index 6270af3b15895be3b4e440abcfde2b1a19fb74cc..5c5637c1988d8227bb5822af7aa3ffcc58942ddf 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "mt7620a_iptime.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                led_cpu: cpu {
-                       label = "blue:cpu";
+                       function = LED_FUNCTION_CPU;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";