// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+#include <dt-bindings/leds/common.h>
+
#include "qca9531_alfa-network_r36a.dtsi"
/ {
pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
lan {
- label = "blue:lan";
+ function = LED_FUNCTION_LAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
led_status: status {
- label = "blue:status";
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
usb {
- label = "blue:usb";
+ function = LED_FUNCTION_USB;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
wan {
- label = "blue:wan";
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wlan {
- label = "blue:wlan";
+ function = LED_FUNCTION_WLAN;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};