ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_dlink_dir-1960-a1.dts
index e0a714c9dc64612eca474d392b8698cbf0737a20..13883f9f74041cbb34611cac2ce595a2fab04507 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "mt7621_dlink_dir-xx60-a1.dtsi"
 
 / {
@@ -9,7 +11,8 @@
 
 &leds {
        usb_white {
-               label = "white:usb";
+               function = LED_FUNCTION_USB;
+               color = <LED_COLOR_ID_WHITE>;
                gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                trigger-sources = <&xhci_ehci_port1>;
                linux,default-trigger = "usbport";