Skip to contentSkip to conversation

dt-bindings: leds: add LED_FUNCTION_* mainly for router devices

PATCH Applied INAGAKI Hiroshi 4 participants 7 messages Mar 23, 2024 – Apr 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover dt-bindings: leds: add LED_FUNCTION_* mainly for router devices

This patch series adds some LED_FUNCTION_* definitions mainly for router devices.
Those definitions are useful for OpenWrt or something.

v1 -> v2

- fix sort order of LED_FUNCTION_MOBILE
- improve the commit description of the first commit

INAGAKI Hiroshi (2):
dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network
dt-bindings: leds: add LED_FUNCTION_SPEED_* for link speed on LAN/WAN

 include/dt-bindings/leds/common.h | 3 +++
 1 file changed, 3 insertions(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network

Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network connection. This is useful to distinguish those LEDs from LEDs that indicates status of wired "wan" connection.

example (on stock fw):

IIJ SA-W2 has "Mobile" LEDs that indicate status (no signal, too low, low, good) of mobile network connection via dongle connected to USB port.

- no signal: (none, turned off)
- too low: green:mobile & red:mobile (amber, blink)
- low: green:mobile & red:mobile (amber, turned on)
- good: green:mobile (turned on)

---
v1 -> v2

- move _MOBILE before _MTD
- improve the commit description

 include/dt-bindings/leds/common.h | 1 +
 1 file changed, 1 insertion(+)
include/dt-bindings/leds/common.h +1 -0
index ecea167930d9..6216ecdb06c7 100644
@@ -90,6 +90,7 @@
 #define LED_FUNCTION_INDICATOR "indicator"
 #define LED_FUNCTION_LAN "lan"
 #define LED_FUNCTION_MAIL "mail"
+#define LED_FUNCTION_MOBILE "mobile"
 #define LED_FUNCTION_MTD "mtd"
 #define LED_FUNCTION_PANIC "panic"
 #define LED_FUNCTION_PROGRAMMING "programming"
Signature · 1 line
2.25.1
Acked-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network

Quoted 6 lines · INAGAKI Hiroshi

Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network connection. This is useful to distinguish those LEDs from LEDs that indicates status of wired "wan" connection.

example (on stock fw):

Best regards,
Krzysztof

maintainer Reviewed-by on v2 1/2
#3 lore raw

Re: [PATCH v2 1/2] dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network

In reply to INAGAKI Hiroshi
Quoted 17 lines · INAGAKI Hiroshi

Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network connection. This is useful to distinguish those LEDs from LEDs that indicates status of wired "wan" connection.

example (on stock fw):

IIJ SA-W2 has "Mobile" LEDs that indicate status (no signal, too low, low, good) of mobile network connection via dongle connected to USB port.

- no signal: (none, turned off)

(quoted diff) +0 -3
-   too low: green:mobile & red:mobile (amber, blink)
-       low: green:mobile & red:mobile (amber, turned on)
-      good: green:mobile (turned on)
Quoted 9 lines

---
v1 -> v2

- move _MOBILE before _MTD
- improve the commit description

 include/dt-bindings/leds/common.h | 1 +
 1 file changed, 1 insertion(+)
#4 lore raw

PATCH v2 2/2 dt-bindings: leds: add LED_FUNCTION_SPEED_* for link speed on LAN/WAN

In reply to INAGAKI Hiroshi

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)

---
v1 -> v2

(no changes)

 include/dt-bindings/leds/common.h | 2 ++
 1 file changed, 2 insertions(+)
include/dt-bindings/leds/common.h +2 -0
index 6216ecdb06c7..82a5769725ce 100644
@@ -96,6 +96,8 @@
 #define LED_FUNCTION_PROGRAMMING "programming"
 #define LED_FUNCTION_RX "rx"
 #define LED_FUNCTION_SD "sd"
+#define LED_FUNCTION_SPEED_LAN "speed-lan"
+#define LED_FUNCTION_SPEED_WAN "speed-wan"
 #define LED_FUNCTION_STANDBY "standby"
 #define LED_FUNCTION_TORCH "torch"
 #define LED_FUNCTION_TX "tx"
Signature · 1 line
2.25.1
maintainer Applied
#5 lore raw
In reply to INAGAKI Hiroshi
Quoted 10 lines · INAGAKI Hiroshi

This patch series adds some LED_FUNCTION_* definitions mainly for router devices.
Those definitions are useful for OpenWrt or something.

v1 -> v2

- fix sort order of LED_FUNCTION_MOBILE
- improve the commit description of the first commit

[...]

Applied, thanks!

[1/2] dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network

      commit: c332f0450f33c123a538a8fcc69fa8e4e5aedfbb
[2/2] dt-bindings: leds: add LED_FUNCTION_SPEED_* for link speed on LAN/WAN
      commit: 2588a5d98532244a7faf4514f79dc684fddf4c14

--
Lee Jones [李琼斯]

maintainer Applied
#6 lore raw
In reply to INAGAKI Hiroshi
Quoted 10 lines · INAGAKI Hiroshi

This patch series adds some LED_FUNCTION_* definitions mainly for router devices.
Those definitions are useful for OpenWrt or something.

v1 -> v2

- fix sort order of LED_FUNCTION_MOBILE
- improve the commit description of the first commit

[...]

Applied, thanks!

[1/2] dt-bindings: leds: add LED_FUNCTION_MOBILE for mobile network

      commit: b65a10938791d90c88ef4f3ecddee22b9fc23b2e
[2/2] dt-bindings: leds: add LED_FUNCTION_SPEED_* for link speed on LAN/WAN
      commit: 03075af4c95133dfa14f434dab3b7b97e6cb9b56

--
Lee Jones [李琼斯]