ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v1.dts
index 9e437b6f00f64e3777c679d45f86631fc161ff04..eb21394d046fd93f18fddeca259d562588dd2e35 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include <dt-bindings/leds/common.h>
+
 #include "qca9561_tplink_archer-c6x.dtsi"
 
 / {
 
 &leds {
        wan_amber {
-               label = "amber:wan";
+               function = LED_FUNCTION_WAN;
+               color = <LED_COLOR_ID_AMBER>;
                gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
        };
 
        wps {
-               label = "green:wps";
+               function = LED_FUNCTION_WPS;
+               color = <LED_COLOR_ID_GREEN>;
                gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
        };
 };