ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7240_tplink_tl-wr.dtsi
index 6c090fb437e82475577591c9a3c75309ec44112a..e0c625e23955af7b3d5aecb6a4d026379247dbb4 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "ar7240_tplink.dtsi"
 
 &leds {
@@ -24,7 +26,8 @@
        };
 
        wan {
-               label = "green:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
        };
 };