// 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";
};
&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";
};
};