1 From 77b9f2d6fd9bf34ec810de6bdad42d7d0a47d31b Mon Sep 17 00:00:00 2001
2 From: INAGAKI Hiroshi <musashino.open@gmail.com>
3 Date: Sat, 23 Mar 2024 16:36:10 +0900
4 Subject: [PATCH] dt-bindings: leds: Add LED_FUNCTION_SPEED_* for link speed on
7 Add LED_FUNCTION_SPEED_LAN and LED_FUNCTION_SPEED_WAN for LEDs that
8 indicate link speed of ethernet ports on LAN/WAN. This is useful to
9 distinguish those LEDs from LEDs that indicate link status (up/down).
13 Fortinet FortiGate 30E/50E have LEDs that indicate link speed on each
14 of the ethernet ports in addition to LEDs that indicate link status
17 - 1000 Mbps: green:speed-(lan|wan)-N
18 - 100 Mbps: amber:speed-(lan|wan)-N
19 - 10 Mbps: (none, turned off)
21 Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
22 Reviewed-by: Rob Herring <robh@kernel.org>
23 Link: https://lore.kernel.org/r/20240323074326.1428-3-musashino.open@gmail.com
24 Signed-off-by: Lee Jones <lee@kernel.org>
26 include/dt-bindings/leds/common.h | 2 ++
27 1 file changed, 2 insertions(+)
29 --- a/include/dt-bindings/leds/common.h
30 +++ b/include/dt-bindings/leds/common.h
32 #define LED_FUNCTION_PROGRAMMING "programming"
33 #define LED_FUNCTION_RX "rx"
34 #define LED_FUNCTION_SD "sd"
35 +#define LED_FUNCTION_SPEED_LAN "speed-lan"
36 +#define LED_FUNCTION_SPEED_WAN "speed-wan"
37 #define LED_FUNCTION_STANDBY "standby"
38 #define LED_FUNCTION_TORCH "torch"
39 #define LED_FUNCTION_TX "tx"