devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
@ 2022-11-29 17:49 Manivannan Sadhasivam
  2022-11-30  0:35 ` Rob Herring
  2023-02-07 11:33 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 7+ messages in thread
From: Manivannan Sadhasivam @ 2022-11-29 17:49 UTC (permalink / raw)
  To: jacek.anaszewski, pavel, robh+dt, krzysztof.kozlowski+dt
  Cc: devicetree, linux-kernel, linux-leds, thunder.leizhen, festevam,
	Manivannan Sadhasivam

Document the commonly used LED triggers by the SoCs. Not all triggers
are documented as some of them are very application specific. Most of the
triggers documented here are currently used in devicetrees of many SoCs.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---

Changes in v4:

* Removed the sorting of triggers
* Removed the "items" as they were not needed
* Reworded the description
* Dropped Zhen Lei's tested-by tag as the patch has changed
* Added kbd-capslock trigger

Changes in v3:

* Rebased on top of v6.1-rc1
* Added WLAN Rx trigger
* Added tested tag from Zhen Lei

Changes in v2:

* Added more triggers, fixed the regex
* Sorted triggers in ascending order

 .../devicetree/bindings/leds/common.yaml      | 40 ++++++++++++++++++-
 1 file changed, 38 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index 3c14a98430e1..68da651f29a8 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -98,8 +98,44 @@ properties:
             # LED alters the brightness for the specified duration with one software
             # timer (requires "led-pattern" property)
           - pattern
-        # LED is triggered by SD/MMC activity
-      - pattern: "^mmc[0-9]+$"
+            # LED indicates mic mute state
+          - audio-micmute
+            # LED indicates audio mute state
+          - audio-mute
+            # LED indicates bluetooth power state
+          - bluetooth-power
+            # LED indicates activity of all CPUs
+          - cpu
+            # LED indicates disk read activity
+          - disk-read
+            # LED indicates disk write activity
+          - disk-write
+            # LED indicates camera flash state
+          - flash
+            # LED indicated keyboard capslock
+          - kbd-capslock
+            # LED indicates MTD memory activity
+          - mtd
+            # LED indicates NAND memory activity (deprecated),
+            # in new implementations use "mtd"
+          - nand-disk
+            # No trigger assigned to the LED. This is the default mode
+            # if trigger is absent
+          - none
+            # LED indicates camera torch state
+          - torch
+            # LED indicates USB gadget activity
+          - usb-gadget
+            # LED indicates USB host activity
+          - usb-host
+        # LED indicates [N]th MMC storage activity
+      - pattern: "^mmc[0-9]{1,2}$"
+        # LED indicates activity of [N]th CPU
+      - pattern: "^cpu[0-9]{1,2}$"
+        # LED indicates power status of [N]th Bluetooth HCI device
+      - pattern: "^hci[0-9]{1,2}-power$"
+        # LED indicates [N]th WLAN Tx/Rx activity
+      - pattern: "^phy[0-9]{1,2}(tx|rx)$"
 
   led-pattern:
     description: |
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
  2022-11-29 17:49 [PATCH v4] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
@ 2022-11-30  0:35 ` Rob Herring
  2023-02-07 11:33 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 7+ messages in thread
From: Rob Herring @ 2022-11-30  0:35 UTC (permalink / raw)
  To: Manivannan Sadhasivam, pavel, Geert Uytterhoeven
  Cc: jacek.anaszewski, krzysztof.kozlowski+dt, devicetree,
	linux-kernel, linux-leds, thunder.leizhen, festevam

On Tue, Nov 29, 2022 at 11:49 AM Manivannan Sadhasivam
<manivannan.sadhasivam@linaro.org> wrote:
>
> Document the commonly used LED triggers by the SoCs. Not all triggers
> are documented as some of them are very application specific. Most of the
> triggers documented here are currently used in devicetrees of many SoCs.
>
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> ---
>
> Changes in v4:
>
> * Removed the sorting of triggers
> * Removed the "items" as they were not needed
> * Reworded the description
> * Dropped Zhen Lei's tested-by tag as the patch has changed
> * Added kbd-capslock trigger
>
> Changes in v3:
>
> * Rebased on top of v6.1-rc1
> * Added WLAN Rx trigger
> * Added tested tag from Zhen Lei
>
> Changes in v2:
>
> * Added more triggers, fixed the regex
> * Sorted triggers in ascending order
>
>  .../devicetree/bindings/leds/common.yaml      | 40 ++++++++++++++++++-
>  1 file changed, 38 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
> index 3c14a98430e1..68da651f29a8 100644
> --- a/Documentation/devicetree/bindings/leds/common.yaml
> +++ b/Documentation/devicetree/bindings/leds/common.yaml
> @@ -98,8 +98,44 @@ properties:
>              # LED alters the brightness for the specified duration with one software
>              # timer (requires "led-pattern" property)
>            - pattern
> -        # LED is triggered by SD/MMC activity
> -      - pattern: "^mmc[0-9]+$"
> +            # LED indicates mic mute state
> +          - audio-micmute
> +            # LED indicates audio mute state
> +          - audio-mute
> +            # LED indicates bluetooth power state
> +          - bluetooth-power
> +            # LED indicates activity of all CPUs
> +          - cpu
> +            # LED indicates disk read activity
> +          - disk-read
> +            # LED indicates disk write activity
> +          - disk-write
> +            # LED indicates camera flash state
> +          - flash
> +            # LED indicated keyboard capslock
> +          - kbd-capslock
> +            # LED indicates MTD memory activity
> +          - mtd
> +            # LED indicates NAND memory activity (deprecated),
> +            # in new implementations use "mtd"
> +          - nand-disk
> +            # No trigger assigned to the LED. This is the default mode
> +            # if trigger is absent
> +          - none
> +            # LED indicates camera torch state
> +          - torch
> +            # LED indicates USB gadget activity
> +          - usb-gadget
> +            # LED indicates USB host activity
> +          - usb-host
> +        # LED indicates [N]th MMC storage activity
> +      - pattern: "^mmc[0-9]{1,2}$"
> +        # LED indicates activity of [N]th CPU
> +      - pattern: "^cpu[0-9]{1,2}$"

This will conflict with Pawel's tree because I already added this.
Mine covers 'cpu' and my 100 core system with 100 cpu leds. ;)

> +        # LED indicates power status of [N]th Bluetooth HCI device
> +      - pattern: "^hci[0-9]{1,2}-power$"
> +        # LED indicates [N]th WLAN Tx/Rx activity
> +      - pattern: "^phy[0-9]{1,2}(tx|rx)$"

And these are pending from Geert[1].

Rob

[1] https://lore.kernel.org/all/a85c256af01f64389a078c2b37c3b72a27d97536.1668005062.git.geert+renesas@glider.be/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
  2022-11-29 17:49 [PATCH v4] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
  2022-11-30  0:35 ` Rob Herring
@ 2023-02-07 11:33 ` Krzysztof Kozlowski
  2023-02-07 18:46   ` Lee Jones
  1 sibling, 1 reply; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-07 11:33 UTC (permalink / raw)
  To: Manivannan Sadhasivam, jacek.anaszewski, pavel, robh+dt,
	krzysztof.kozlowski+dt, Lee Jones
  Cc: devicetree, linux-kernel, linux-leds, thunder.leizhen, festevam

On 29/11/2022 18:49, Manivannan Sadhasivam wrote:
> Document the commonly used LED triggers by the SoCs. Not all triggers
> are documented as some of them are very application specific. Most of the
> triggers documented here are currently used in devicetrees of many SoCs.
> 
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> ---
> 
> Changes in v4:
> 
> * Removed the sorting of triggers
> * Removed the "items" as they were not needed
> * Reworded the description
> * Dropped Zhen Lei's tested-by tag as the patch has changed
> * Added kbd-capslock trigger

Any plans for this patch?

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
  2023-02-07 11:33 ` Krzysztof Kozlowski
@ 2023-02-07 18:46   ` Lee Jones
  2023-02-07 20:39     ` Krzysztof Kozlowski
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2023-02-07 18:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Manivannan Sadhasivam, jacek.anaszewski, pavel, robh+dt,
	krzysztof.kozlowski+dt, devicetree, linux-kernel, linux-leds,
	thunder.leizhen, festevam

On Tue, 07 Feb 2023, Krzysztof Kozlowski wrote:

> On 29/11/2022 18:49, Manivannan Sadhasivam wrote:
> > Document the commonly used LED triggers by the SoCs. Not all triggers
> > are documented as some of them are very application specific. Most of the
> > triggers documented here are currently used in devicetrees of many SoCs.
> > 
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> > ---
> > 
> > Changes in v4:
> > 
> > * Removed the sorting of triggers
> > * Removed the "items" as they were not needed
> > * Reworded the description
> > * Dropped Zhen Lei's tested-by tag as the patch has changed
> > * Added kbd-capslock trigger
> 
> Any plans for this patch?

Who are you asking?

This patch is not in my inbox.

-- 
Lee Jones [李琼斯]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
  2023-02-07 18:46   ` Lee Jones
@ 2023-02-07 20:39     ` Krzysztof Kozlowski
  2023-02-07 21:39       ` Lee Jones
  2023-02-13  7:09       ` Manivannan Sadhasivam
  0 siblings, 2 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-07 20:39 UTC (permalink / raw)
  To: Lee Jones
  Cc: Manivannan Sadhasivam, jacek.anaszewski, pavel, robh+dt,
	krzysztof.kozlowski+dt, devicetree, linux-kernel, linux-leds,
	thunder.leizhen, festevam

On 07/02/2023 19:46, Lee Jones wrote:
> On Tue, 07 Feb 2023, Krzysztof Kozlowski wrote:
> 
>> On 29/11/2022 18:49, Manivannan Sadhasivam wrote:
>>> Document the commonly used LED triggers by the SoCs. Not all triggers
>>> are documented as some of them are very application specific. Most of the
>>> triggers documented here are currently used in devicetrees of many SoCs.
>>>
>>> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>>> ---
>>>
>>> Changes in v4:
>>>
>>> * Removed the sorting of triggers
>>> * Removed the "items" as they were not needed
>>> * Reworded the description
>>> * Dropped Zhen Lei's tested-by tag as the patch has changed
>>> * Added kbd-capslock trigger
>>
>> Any plans for this patch?
> 
> Who are you asking?
> 
> This patch is not in my inbox.

Mani and Pavel. I Cc-ed you just for completeness.

I would expect Mani to rebase and resend it.

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
  2023-02-07 20:39     ` Krzysztof Kozlowski
@ 2023-02-07 21:39       ` Lee Jones
  2023-02-13  7:09       ` Manivannan Sadhasivam
  1 sibling, 0 replies; 7+ messages in thread
From: Lee Jones @ 2023-02-07 21:39 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Manivannan Sadhasivam, jacek.anaszewski, pavel, robh+dt,
	krzysztof.kozlowski+dt, devicetree, linux-kernel, linux-leds,
	thunder.leizhen, festevam

On Tue, 07 Feb 2023, Krzysztof Kozlowski wrote:

> On 07/02/2023 19:46, Lee Jones wrote:
> > On Tue, 07 Feb 2023, Krzysztof Kozlowski wrote:
> > 
> >> On 29/11/2022 18:49, Manivannan Sadhasivam wrote:
> >>> Document the commonly used LED triggers by the SoCs. Not all triggers
> >>> are documented as some of them are very application specific. Most of the
> >>> triggers documented here are currently used in devicetrees of many SoCs.
> >>>
> >>> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> >>> ---
> >>>
> >>> Changes in v4:
> >>>
> >>> * Removed the sorting of triggers
> >>> * Removed the "items" as they were not needed
> >>> * Reworded the description
> >>> * Dropped Zhen Lei's tested-by tag as the patch has changed
> >>> * Added kbd-capslock trigger
> >>
> >> Any plans for this patch?
> > 
> > Who are you asking?
> > 
> > This patch is not in my inbox.
> 
> Mani and Pavel. I Cc-ed you just for completeness.
> 
> I would expect Mani to rebase and resend it.

Yes, please do that.

-- 
Lee Jones [李琼斯]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4] dt-bindings: leds: Document commonly used LED triggers
  2023-02-07 20:39     ` Krzysztof Kozlowski
  2023-02-07 21:39       ` Lee Jones
@ 2023-02-13  7:09       ` Manivannan Sadhasivam
  1 sibling, 0 replies; 7+ messages in thread
From: Manivannan Sadhasivam @ 2023-02-13  7:09 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Lee Jones, jacek.anaszewski, pavel, robh+dt,
	krzysztof.kozlowski+dt, devicetree, linux-kernel, linux-leds,
	thunder.leizhen, festevam

On Tue, Feb 07, 2023 at 09:39:15PM +0100, Krzysztof Kozlowski wrote:
> On 07/02/2023 19:46, Lee Jones wrote:
> > On Tue, 07 Feb 2023, Krzysztof Kozlowski wrote:
> > 
> >> On 29/11/2022 18:49, Manivannan Sadhasivam wrote:
> >>> Document the commonly used LED triggers by the SoCs. Not all triggers
> >>> are documented as some of them are very application specific. Most of the
> >>> triggers documented here are currently used in devicetrees of many SoCs.
> >>>
> >>> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> >>> ---
> >>>
> >>> Changes in v4:
> >>>
> >>> * Removed the sorting of triggers
> >>> * Removed the "items" as they were not needed
> >>> * Reworded the description
> >>> * Dropped Zhen Lei's tested-by tag as the patch has changed
> >>> * Added kbd-capslock trigger
> >>
> >> Any plans for this patch?
> > 
> > Who are you asking?
> > 
> > This patch is not in my inbox.
> 
> Mani and Pavel. I Cc-ed you just for completeness.
> 
> I would expect Mani to rebase and resend it.
> 

Sorry for the delay, sent now!

Thanks,
Mani

> Best regards,
> Krzysztof
> 

-- 
மணிவண்ணன் சதாசிவம்

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-13  7:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-29 17:49 [PATCH v4] dt-bindings: leds: Document commonly used LED triggers Manivannan Sadhasivam
2022-11-30  0:35 ` Rob Herring
2023-02-07 11:33 ` Krzysztof Kozlowski
2023-02-07 18:46   ` Lee Jones
2023-02-07 20:39     ` Krzysztof Kozlowski
2023-02-07 21:39       ` Lee Jones
2023-02-13  7:09       ` Manivannan Sadhasivam

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).