devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Pawel Dembicki <paweldembicki@gmail.com>
Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org,
	Jacek Anaszewski <jacek.anaszewski@gmail.com>,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: [PATCH] leds: add new functions for mobile routers
Date: Wed, 2 Mar 2022 17:42:04 -0600	[thread overview]
Message-ID: <YiAAzH4GDnC8ridY@robh.at.kernel.org> (raw)
In-Reply-To: <20220218085002.18110-1-paweldembicki@gmail.com>

On Fri, Feb 18, 2022 at 09:50:02AM +0100, Pawel Dembicki wrote:
> 2G/2G/4G routers have some special leds functions:
>   - signal strength, which shows info about signal status.
>     Some devices have multicolor indication (e.g. D-Link DWR-960)
>     other use multiple leds for different levels (e.g. Cell-C RTL30VW)
>   - connection status, which shows if connection is active. Some devices
>     have multiple leds for different bands (e.g. D-Link DWR-960).
>   - sms indicator
> 
> This patch adds new LED_FUNCTION_* defines of them.
> 
> Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
> ---
>  Documentation/leds/well-known-leds.txt | 9 +++++++++
>  include/dt-bindings/leds/common.h      | 5 +++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/Documentation/leds/well-known-leds.txt b/Documentation/leds/well-known-leds.txt
> index 2160382c86be..677cf7e57a76 100644
> --- a/Documentation/leds/well-known-leds.txt
> +++ b/Documentation/leds/well-known-leds.txt
> @@ -16,6 +16,15 @@ but then try the legacy ones, too.
>  
>  Notice there's a list of functions in include/dt-bindings/leds/common.h .
>  
> +* 4G/3G/2G routers
> +
> +Cellular routers use LEDs for signal strength identification and connection
> +status. Some models also have incoming SMS indicator.
> +
> +Good: "*:connection"
> +Good: "*:signal"
> +Good: "*:sms"
> +
>  * Gamepads and joysticks
>  
>  Game controllers may feature LEDs to indicate a player number. This is commonly
> diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
> index 3be89a7c20a9..3adfa120353e 100644
> --- a/include/dt-bindings/leds/common.h
> +++ b/include/dt-bindings/leds/common.h
> @@ -60,6 +60,11 @@
>  #define LED_FUNCTION_MICMUTE "micmute"
>  #define LED_FUNCTION_MUTE "mute"
>  
> +/* Used for 4G/3G/2G routers. */
> +#define LED_FUNCTION_CONNECTION "connection"

wan?

> +#define LED_FUNCTION_SIGNAL "signal"
> +#define LED_FUNCTION_SMS "sms"

mail?

The whole idea with defining the names was to not create different names 
for roughly the same thing.

Rob

      reply	other threads:[~2022-03-02 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18  8:50 [PATCH] leds: add new functions for mobile routers Pawel Dembicki
2022-03-02 23:42 ` Rob Herring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YiAAzH4GDnC8ridY@robh.at.kernel.org \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jacek.anaszewski@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=paweldembicki@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).