ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_tl-wr1043nd-v4.dts
index 4aa0ef572f632b15386627a8249ab7272dfcf304..6db4653f69fe6cdf284c3715aa912f2da5977700 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9563_tplink_tl-wr1043n.dtsi"
 
 / {
@@ -92,7 +94,8 @@
 
 &leds {
        usb {
-               label = "green:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
                trigger-sources = <&hub_port0>;
                linux,default-trigger = "usbport";