@@ -168,6 +168,7 @@ examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
+ #include <dt-bindings/net/eth.h>
led-controller {
compatible = "gpio-leds";
@@ -183,6 +184,26 @@ examples:
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
};
+
+ led-2 {
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_AMBER>;
+ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&wan_port (SPEED_10 | SPEED_100)>;
+ };
+
+ led-3 {
+ function = LED_FUNCTION_WAN;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&wan_port SPEED_1000>;
+ };
+
+ led-4 {
+ function = LED_FUNCTION_LAN;
+ gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&gmac 0>;
+ };
};
- |