ath79: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_tplink_archer-c60-v2.dts
index e71fc9eb7abecfccf52cd0c33bac684143d92e90..aa4a7da10cf42f42de833acd53d33e19823b664c 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>;
        };
 };