3f4c2479374bcbc9d1862893a86d5af2f10114ca
[openwrt/openwrt.git] /
1 From 7d36c3573391dcf0da089298a4b5a25c39f7289d Mon Sep 17 00:00:00 2001
2 From: INAGAKI Hiroshi <musashino.open@gmail.com>
3 Date: Sat, 23 Mar 2024 16:36:09 +0900
4 Subject: [PATCH] dt-bindings: leds: Add LED_FUNCTION_MOBILE for mobile network
5
6 Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network
7 connection. This is useful to distinguish those LEDs from LEDs that
8 indicates status of wired "wan" connection.
9
10 example (on stock fw):
11
12 IIJ SA-W2 has "Mobile" LEDs that indicate status (no signal, too low,
13 low, good) of mobile network connection via dongle connected to USB
14 port.
15
16 - no signal: (none, turned off)
17 - too low: green:mobile & red:mobile (amber, blink)
18 - low: green:mobile & red:mobile (amber, turned on)
19 - good: green:mobile (turned on)
20
21 Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
22 Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
23 Reviewed-by: Rob Herring <robh@kernel.org>
24 Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
25 Link: https://lore.kernel.org/r/20240323074326.1428-2-musashino.open@gmail.com
26 Signed-off-by: Lee Jones <lee@kernel.org>
27 ---
28 include/dt-bindings/leds/common.h | 1 +
29 1 file changed, 1 insertion(+)
30
31 --- a/include/dt-bindings/leds/common.h
32 +++ b/include/dt-bindings/leds/common.h
33 @@ -90,6 +90,7 @@
34 #define LED_FUNCTION_INDICATOR "indicator"
35 #define LED_FUNCTION_LAN "lan"
36 #define LED_FUNCTION_MAIL "mail"
37 +#define LED_FUNCTION_MOBILE "mobile"
38 #define LED_FUNCTION_MTD "mtd"
39 #define LED_FUNCTION_PANIC "panic"
40 #define LED_FUNCTION_PROGRAMMING "programming"