devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger
@ 2023-03-16 13:55 Rafał Miłecki
  2023-03-16 15:33 ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Rafał Miłecki @ 2023-03-16 13:55 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Pavel Machek, Lee Jones, Jacek Anaszewski, Florian Fainelli,
	devicetree, linux-leds, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

Linux's "usbport" trigger is a bit specific one. It allows LED to follow
state of multiple USB ports which have to be selected additionally
(there isn't a single trigger for each port).

Default list of USB ports to monitor can be specified using
"trigger-sources" DT property. Theoretically it should be possible for
Linux to deduce applicable trigger based on the references nodes in the
"trigger-sources". It hasn't been implemented however (probably due to
laziness).

Milk spilled - we already have DT files specifying "usbport" manually -
allow that value in the binding. This fixes validation of in-kernel and
external DT files.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 Documentation/devicetree/bindings/leds/common.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
index 61e63ed81ced..11aedf1650a1 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -125,6 +125,8 @@ properties:
           - usb-gadget
             # LED indicates USB host activity
           - usb-host
+            # LED indicates USB port state
+          - usbport
         # LED is triggered by CPU activity
       - pattern: "^cpu[0-9]*$"
         # LED is triggered by Bluetooth activity
-- 
2.34.1


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

* Re: [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger
  2023-03-16 13:55 [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger Rafał Miłecki
@ 2023-03-16 15:33 ` Lee Jones
  2023-12-28  7:33   ` Rafał Miłecki
  0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2023-03-16 15:33 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Rob Herring, Krzysztof Kozlowski, Pavel Machek, Jacek Anaszewski,
	Florian Fainelli, devicetree, linux-leds, Rafał Miłecki

On Thu, 16 Mar 2023, Rafał Miłecki wrote:

> From: Rafał Miłecki <rafal@milecki.pl>
>
> Linux's "usbport" trigger is a bit specific one. It allows LED to follow
> state of multiple USB ports which have to be selected additionally
> (there isn't a single trigger for each port).
>
> Default list of USB ports to monitor can be specified using
> "trigger-sources" DT property. Theoretically it should be possible for
> Linux to deduce applicable trigger based on the references nodes in the
> "trigger-sources". It hasn't been implemented however (probably due to
> laziness).
>
> Milk spilled - we already have DT files specifying "usbport" manually -
> allow that value in the binding. This fixes validation of in-kernel and
> external DT files.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> ---
>  Documentation/devicetree/bindings/leds/common.yaml | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

--
Lee Jones [李琼斯]

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

* Re: [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger
  2023-03-16 15:33 ` Lee Jones
@ 2023-12-28  7:33   ` Rafał Miłecki
  2024-01-09  8:42     ` Lee Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Rafał Miłecki @ 2023-12-28  7:33 UTC (permalink / raw)
  To: Lee Jones
  Cc: Rob Herring, Krzysztof Kozlowski, Pavel Machek, Jacek Anaszewski,
	Florian Fainelli, devicetree, linux-leds, Rafał Miłecki

Hi Lee,

On 16.03.2023 16:33, Lee Jones wrote:
> On Thu, 16 Mar 2023, Rafał Miłecki wrote:
> 
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
>> Linux's "usbport" trigger is a bit specific one. It allows LED to follow
>> state of multiple USB ports which have to be selected additionally
>> (there isn't a single trigger for each port).
>>
>> Default list of USB ports to monitor can be specified using
>> "trigger-sources" DT property. Theoretically it should be possible for
>> Linux to deduce applicable trigger based on the references nodes in the
>> "trigger-sources". It hasn't been implemented however (probably due to
>> laziness).
>>
>> Milk spilled - we already have DT files specifying "usbport" manually -
>> allow that value in the binding. This fixes validation of in-kernel and
>> external DT files.
>>
>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>> ---
>>   Documentation/devicetree/bindings/leds/common.yaml | 2 ++
>>   1 file changed, 2 insertions(+)
> 
> Applied, thanks

it seems this PATCH got lost somewhere. Can you check it, please?

-- 
Rafał Miłecki

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

* Re: [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger
  2023-12-28  7:33   ` Rafał Miłecki
@ 2024-01-09  8:42     ` Lee Jones
  2024-01-09 10:05       ` Rafał Miłecki
  0 siblings, 1 reply; 5+ messages in thread
From: Lee Jones @ 2024-01-09  8:42 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: Rob Herring, Krzysztof Kozlowski, Pavel Machek, Jacek Anaszewski,
	Florian Fainelli, devicetree, linux-leds, Rafał Miłecki

On Thu, 28 Dec 2023, Rafał Miłecki wrote:

> Hi Lee,
> 
> On 16.03.2023 16:33, Lee Jones wrote:
> > On Thu, 16 Mar 2023, Rafał Miłecki wrote:
> > 
> > > From: Rafał Miłecki <rafal@milecki.pl>
> > > 
> > > Linux's "usbport" trigger is a bit specific one. It allows LED to follow
> > > state of multiple USB ports which have to be selected additionally
> > > (there isn't a single trigger for each port).
> > > 
> > > Default list of USB ports to monitor can be specified using
> > > "trigger-sources" DT property. Theoretically it should be possible for
> > > Linux to deduce applicable trigger based on the references nodes in the
> > > "trigger-sources". It hasn't been implemented however (probably due to
> > > laziness).
> > > 
> > > Milk spilled - we already have DT files specifying "usbport" manually -
> > > allow that value in the binding. This fixes validation of in-kernel and
> > > external DT files.
> > > 
> > > Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> > > ---
> > >   Documentation/devicetree/bindings/leds/common.yaml | 2 ++
> > >   1 file changed, 2 insertions(+)
> > 
> > Applied, thanks
> 
> it seems this PATCH got lost somewhere. Can you check it, please?

What makes you think that?

https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/leds/common.yaml#L126

-- 
Lee Jones [李琼斯]

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

* Re: [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger
  2024-01-09  8:42     ` Lee Jones
@ 2024-01-09 10:05       ` Rafał Miłecki
  0 siblings, 0 replies; 5+ messages in thread
From: Rafał Miłecki @ 2024-01-09 10:05 UTC (permalink / raw)
  To: Lee Jones
  Cc: Rob Herring, Krzysztof Kozlowski, Pavel Machek, Jacek Anaszewski,
	Florian Fainelli, devicetree, linux-leds, Rafał Miłecki

On 9.01.2024 09:42, Lee Jones wrote:
> On Thu, 28 Dec 2023, Rafał Miłecki wrote:
>> On 16.03.2023 16:33, Lee Jones wrote:
>>> On Thu, 16 Mar 2023, Rafał Miłecki wrote:
>>>
>>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>>
>>>> Linux's "usbport" trigger is a bit specific one. It allows LED to follow
>>>> state of multiple USB ports which have to be selected additionally
>>>> (there isn't a single trigger for each port).
>>>>
>>>> Default list of USB ports to monitor can be specified using
>>>> "trigger-sources" DT property. Theoretically it should be possible for
>>>> Linux to deduce applicable trigger based on the references nodes in the
>>>> "trigger-sources". It hasn't been implemented however (probably due to
>>>> laziness).
>>>>
>>>> Milk spilled - we already have DT files specifying "usbport" manually -
>>>> allow that value in the binding. This fixes validation of in-kernel and
>>>> external DT files.
>>>>
>>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>>> ---
>>>>    Documentation/devicetree/bindings/leds/common.yaml | 2 ++
>>>>    1 file changed, 2 insertions(+)
>>>
>>> Applied, thanks
>>
>> it seems this PATCH got lost somewhere. Can you check it, please?
> 
> What makes you think that?
> 
> https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/leds/common.yaml#L126

I have no idea. It seems all good. Sorry for the noise, brain fart.

-- 
Rafał Miłecki

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

end of thread, other threads:[~2024-01-09 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16 13:55 [PATCH V2 REBASED] dt-bindings: leds: add "usbport" trigger Rafał Miłecki
2023-03-16 15:33 ` Lee Jones
2023-12-28  7:33   ` Rafał Miłecki
2024-01-09  8:42     ` Lee Jones
2024-01-09 10:05       ` Rafał Miłecki

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