ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_asus_rt-ac1200.dts
index abb86456da8544636da9a1eadc7dc5fa11d275ec..833a44cc712471cab430e2b01794e2454a0aa331 100644 (file)
@@ -2,6 +2,8 @@
 // Copyright (c) 2022 Ray Wang
 // Copyright (c) 2022 Ivan Pavlov
 
+#include <dt-bindings/leds/common.h>
+
 #include "mt7628an_asus_rt-ac1200.dtsi"
 
 / {
@@ -12,7 +14,8 @@
                compatible = "gpio-leds";
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";