Skip to content

Commit 77b9f2d

Browse files
musashino205lag-linaro
authored andcommitted
dt-bindings: leds: Add LED_FUNCTION_SPEED_* for link speed on LAN/WAN
Add LED_FUNCTION_SPEED_LAN and LED_FUNCTION_SPEED_WAN for LEDs that indicate link speed of ethernet ports on LAN/WAN. This is useful to distinguish those LEDs from LEDs that indicate link status (up/down). example: Fortinet FortiGate 30E/50E have LEDs that indicate link speed on each of the ethernet ports in addition to LEDs that indicate link status (up/down). - 1000 Mbps: green:speed-(lan|wan)-N - 100 Mbps: amber:speed-(lan|wan)-N - 10 Mbps: (none, turned off) Signed-off-by: INAGAKI Hiroshi <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 7d36c35 commit 77b9f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/dt-bindings/leds/common.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@
9696
#define LED_FUNCTION_PROGRAMMING "programming"
9797
#define LED_FUNCTION_RX "rx"
9898
#define LED_FUNCTION_SD "sd"
99+
#define LED_FUNCTION_SPEED_LAN "speed-lan"
100+
#define LED_FUNCTION_SPEED_WAN "speed-wan"
99101
#define LED_FUNCTION_STANDBY "standby"
100102
#define LED_FUNCTION_TORCH "torch"
101103
#define LED_FUNCTION_TX "tx"

0 commit comments

Comments
 (0)