diff mbox series

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

Message ID 20240320124431.221-2-musashino.open@gmail.com
State New
Headers show
Series dt-bindings: leds: add LED_FUNCTION_* mainly for router devices | expand

Commit Message

INAGAKI Hiroshi March 20, 2024, 12:43 p.m. UTC
Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network
connection.
As an example, "Mobile" LEDs on IIJ SA-W2 indicate status (no signal,
too low, low, good) of mobile network connection via dongle connected
to USB port.

Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
---
 include/dt-bindings/leds/common.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Rob Herring March 21, 2024, 1:55 p.m. UTC | #1
On Wed, Mar 20, 2024 at 09:43:16PM +0900, INAGAKI Hiroshi wrote:
> Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network
> connection.
> As an example, "Mobile" LEDs on IIJ SA-W2 indicate status (no signal,
> too low, low, good) of mobile network connection via dongle connected
> to USB port.
> 
> Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
> Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
> ---
>  include/dt-bindings/leds/common.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
> index ecea167930d9..d4b8498bde7f 100644
> --- a/include/dt-bindings/leds/common.h
> +++ b/include/dt-bindings/leds/common.h
> @@ -91,6 +91,7 @@
>  #define LED_FUNCTION_LAN "lan"
>  #define LED_FUNCTION_MAIL "mail"
>  #define LED_FUNCTION_MTD "mtd"
> +#define LED_FUNCTION_MOBILE "mobile"

Why doesn't "wan" work?

>  #define LED_FUNCTION_PANIC "panic"
>  #define LED_FUNCTION_PROGRAMMING "programming"
>  #define LED_FUNCTION_RX "rx"
> -- 
> 2.25.1
>
INAGAKI Hiroshi March 21, 2024, 2:28 p.m. UTC | #2
Hello Rob Herring,

thank you for your review.

On 2024/03/21 22:55, Rob Herring wrote:
> On Wed, Mar 20, 2024 at 09:43:16PM +0900, INAGAKI Hiroshi wrote:
>> Add LED_FUNCTION_MOBILE for LEDs that indicate status of mobile network
>> connection.
>> As an example, "Mobile" LEDs on IIJ SA-W2 indicate status (no signal,
>> too low, low, good) of mobile network connection via dongle connected
>> to USB port.
>>
>> Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
>> Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
>> ---
>>   include/dt-bindings/leds/common.h | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
>> index ecea167930d9..d4b8498bde7f 100644
>> --- a/include/dt-bindings/leds/common.h
>> +++ b/include/dt-bindings/leds/common.h
>> @@ -91,6 +91,7 @@
>>   #define LED_FUNCTION_LAN "lan"
>>   #define LED_FUNCTION_MAIL "mail"
>>   #define LED_FUNCTION_MTD "mtd"
>> +#define LED_FUNCTION_MOBILE "mobile"
> Why doesn't "wan" work?

To distinguish the LEDs of mobile connection from the LEDs of wired 
wan connection.
For example, IIJ SA-W2 also supports wan connection via the ethernet 
port "GE0" (WAN) in addition to mobile network. If "wan" is used, it 
may confuse users as to which connection the LED is for.

BTW: _MOBILE should be placed before _MTD for alphabetical order, I'll 
fix it and send v2 patch series...

>
>>   #define LED_FUNCTION_PANIC "panic"
>>   #define LED_FUNCTION_PROGRAMMING "programming"
>>   #define LED_FUNCTION_RX "rx"
>> -- 
>> 2.25.1
>>

Thanks,
Hiroshi
diff mbox series

Patch

diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
index ecea167930d9..d4b8498bde7f 100644
--- a/include/dt-bindings/leds/common.h
+++ b/include/dt-bindings/leds/common.h
@@ -91,6 +91,7 @@ 
 #define LED_FUNCTION_LAN "lan"
 #define LED_FUNCTION_MAIL "mail"
 #define LED_FUNCTION_MTD "mtd"
+#define LED_FUNCTION_MOBILE "mobile"
 #define LED_FUNCTION_PANIC "panic"
 #define LED_FUNCTION_PROGRAMMING "programming"
 #define LED_FUNCTION_RX "rx"