|
|
@@ -4,6 +4,7 @@
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
#include <dt-bindings/soc/qcom,tcsr.h>
|
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
|
|
|
/ {
|
|
|
model = "ASUS RT-AC58U";
|
|
|
@@ -101,37 +102,50 @@
|
|
|
leds {
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
- led_power: status {
|
|
|
- label = "blue:status";
|
|
|
+ led_power: led-0 {
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ function = LED_FUNCTION_POWER;
|
|
|
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
|
|
|
+ panic-indicator;
|
|
|
};
|
|
|
|
|
|
- wan {
|
|
|
- label = "blue:wan";
|
|
|
+ led-1 {
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ function = LED_FUNCTION_WAN;
|
|
|
gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
|
|
+ /*
|
|
|
+ * linux,default-trigger = "90000.mdio-1:04:link";
|
|
|
+ * sadly still lacks rx+tx
|
|
|
+ */
|
|
|
};
|
|
|
|
|
|
- wlan2G {
|
|
|
- label = "blue:wlan2G";
|
|
|
+ led-2 {
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ function = LED_FUNCTION_WLAN;
|
|
|
+ function-enumerator = <2>;
|
|
|
gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
|
|
|
linux,default-trigger = "phy0tpt";
|
|
|
};
|
|
|
|
|
|
- wlan5G {
|
|
|
- label = "blue:wlan5G";
|
|
|
+ led-3 {
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ function = LED_FUNCTION_WLAN;
|
|
|
+ function-enumerator = <5>;
|
|
|
gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
|
|
|
linux,default-trigger = "phy1tpt";
|
|
|
};
|
|
|
|
|
|
- usb {
|
|
|
- label = "blue:usb";
|
|
|
+ led-4 {
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ function = LED_FUNCTION_USB;
|
|
|
gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
|
|
|
trigger-sources = <&usb3_port1>, <&usb3_port2>;
|
|
|
linux,default-trigger = "usbport";
|
|
|
};
|
|
|
|
|
|
- lan {
|
|
|
- label = "blue:lan";
|
|
|
+ led-5 {
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ function = LED_FUNCTION_LAN;
|
|
|
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
|
|
};
|
|
|
};
|