ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_tplink_re200-v1.dts
index c8b2794714b4131469d329156ad94f194210ac42..fccda507000a016dfbbaba6df5bc3c3afd6fdab5 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include <dt-bindings/leds/common.h>
 
 #include "mt7620a_tplink_re2x0-v1.dtsi"
 
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "re200-v1:green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "re200-v1:green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "re200-v1:green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                };
 
                qss {
-                       label = "re200-v1:green:qss";
+                       label = "green:qss";
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g_red {
-                       label = "re200-v1:red:wlan2g";
+                       label = "red:wlan2g";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g_green {
-                       label = "re200-v1:green:wlan2g";
+                       label = "green:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
@@ -53,8 +57,8 @@
 
 &state_default {
        gpio {
-               ralink,group = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk";
-               ralink,function = "gpio";
+               groups = "i2c", "uartf", "ephy", "wled", "rgmii1", "spi refclk";
+               function = "gpio";
        };
 };