kernel: add pending patches for new LED_FUNCTION_* definitions
[openwrt/staging/stintel.git] / target / linux / generic / pending-5.15 / 880-02-dt-bindings-leds-add-LED_FUNCTION_SPEED_-for-link-sp.patch
1 From e22afe910afcfb51b6ba6a0ae776939959727f54 Mon Sep 17 00:00:00 2001
2 From: INAGAKI Hiroshi <musashino.open@gmail.com>
3 Date: Wed, 20 Mar 2024 15:59:06 +0900
4 Subject: [PATCH v2 2/2] dt-bindings: leds: add LED_FUNCTION_SPEED_* for link
5 speed on LAN/WAN
6
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).
10
11 example:
12
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
15 (up/down).
16
17 - 1000 Mbps: green:speed-(lan|wan)-N
18 - 100 Mbps: amber:speed-(lan|wan)-N
19 - 10 Mbps: (none, turned off)
20
21 Reviewed-by: Rob Herring <robh@kernel.org>
22 Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
23 ---
24 include/dt-bindings/leds/common.h | 2 ++
25 1 file changed, 2 insertions(+)
26
27 --- a/include/dt-bindings/leds/common.h
28 +++ b/include/dt-bindings/leds/common.h
29 @@ -89,6 +89,8 @@
30 #define LED_FUNCTION_PROGRAMMING "programming"
31 #define LED_FUNCTION_RX "rx"
32 #define LED_FUNCTION_SD "sd"
33 +#define LED_FUNCTION_SPEED_LAN "speed-lan"
34 +#define LED_FUNCTION_SPEED_WAN "speed-wan"
35 #define LED_FUNCTION_STANDBY "standby"
36 #define LED_FUNCTION_TORCH "torch"
37 #define LED_FUNCTION_TX "tx"