devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: leds: Document "netdev" trigger
@ 2024-07-08 11:46 Marek Vasut
  2024-07-09  9:06 ` Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Marek Vasut @ 2024-07-08 11:46 UTC (permalink / raw)
  To: devicetree
  Cc: Marek Vasut, Conor Dooley, Jacek Anaszewski, Krzysztof Kozlowski,
	Lee Jones, Pavel Machek, Rob Herring, linux-leds

Document the "netdev" trigger which is used to control LEDs by
network device activity. This is an existing trigger used in
existing DTs, document it so validation of those DTs would pass.

Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Lee Jones <lee@kernel.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: linux-leds@vger.kernel.org
---
V2: Expand the commit message slightly
---
 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 8a3c2398b10ce..bf9a101e4d420 100644
--- a/Documentation/devicetree/bindings/leds/common.yaml
+++ b/Documentation/devicetree/bindings/leds/common.yaml
@@ -113,6 +113,8 @@ properties:
             # LED indicates NAND memory activity (deprecated),
             # in new implementations use "mtd"
           - nand-disk
+            # LED indicates network activity
+          - netdev
             # No trigger assigned to the LED. This is the default mode
             # if trigger is absent
           - none
-- 
2.43.0


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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-07-08 11:46 [PATCH v2] dt-bindings: leds: Document "netdev" trigger Marek Vasut
@ 2024-07-09  9:06 ` Krzysztof Kozlowski
  2024-07-25  8:50 ` Lee Jones
  2024-08-16 15:53 ` (subset) " Lee Jones
  2 siblings, 0 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2024-07-09  9:06 UTC (permalink / raw)
  To: Marek Vasut, devicetree
  Cc: Conor Dooley, Jacek Anaszewski, Krzysztof Kozlowski, Lee Jones,
	Pavel Machek, Rob Herring, linux-leds

On 08/07/2024 13:46, Marek Vasut wrote:
> Document the "netdev" trigger which is used to control LEDs by
> network device activity. This is an existing trigger used in
> existing DTs, document it so validation of those DTs would pass.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-07-08 11:46 [PATCH v2] dt-bindings: leds: Document "netdev" trigger Marek Vasut
  2024-07-09  9:06 ` Krzysztof Kozlowski
@ 2024-07-25  8:50 ` Lee Jones
  2024-07-25 12:37   ` Andrew Lunn
  2024-08-16 15:53 ` (subset) " Lee Jones
  2 siblings, 1 reply; 10+ messages in thread
From: Lee Jones @ 2024-07-25  8:50 UTC (permalink / raw)
  To: Marek Vasut
  Cc: devicetree, Conor Dooley, Jacek Anaszewski, Krzysztof Kozlowski,
	Pavel Machek, Rob Herring, linux-leds, Andrew Lunn, netdev

Cc: Andrew and netdev

On Mon, 08 Jul 2024, Marek Vasut wrote:

> Document the "netdev" trigger which is used to control LEDs by
> network device activity. This is an existing trigger used in
> existing DTs, document it so validation of those DTs would pass.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
> Cc: Conor Dooley <conor+dt@kernel.org>
> Cc: Jacek Anaszewski <jacek.anaszewski@gmail.com>
> Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
> Cc: Lee Jones <lee@kernel.org>
> Cc: Pavel Machek <pavel@ucw.cz>
> Cc: Rob Herring <robh@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: linux-leds@vger.kernel.org
> ---
> V2: Expand the commit message slightly
> ---
>  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 8a3c2398b10ce..bf9a101e4d420 100644
> --- a/Documentation/devicetree/bindings/leds/common.yaml
> +++ b/Documentation/devicetree/bindings/leds/common.yaml
> @@ -113,6 +113,8 @@ properties:
>              # LED indicates NAND memory activity (deprecated),
>              # in new implementations use "mtd"
>            - nand-disk
> +            # LED indicates network activity
> +          - netdev

netdev is the description of the network development ML/repo, right?

Seems like an odd name for an OS agnostic property?

>              # No trigger assigned to the LED. This is the default mode
>              # if trigger is absent
>            - none
> -- 
> 2.43.0
> 

-- 
Lee Jones [李琼斯]

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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-07-25  8:50 ` Lee Jones
@ 2024-07-25 12:37   ` Andrew Lunn
  2024-08-01 12:53     ` Lee Jones
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Lunn @ 2024-07-25 12:37 UTC (permalink / raw)
  To: Lee Jones
  Cc: Marek Vasut, devicetree, Conor Dooley, Jacek Anaszewski,
	Krzysztof Kozlowski, Pavel Machek, Rob Herring, linux-leds,
	netdev

> > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
> > index 8a3c2398b10ce..bf9a101e4d420 100644
> > --- a/Documentation/devicetree/bindings/leds/common.yaml
> > +++ b/Documentation/devicetree/bindings/leds/common.yaml
> > @@ -113,6 +113,8 @@ properties:
> >              # LED indicates NAND memory activity (deprecated),
> >              # in new implementations use "mtd"
> >            - nand-disk
> > +            # LED indicates network activity
> > +          - netdev
> 
> netdev is the description of the network development ML/repo, right?
> 
> Seems like an odd name for an OS agnostic property?

I agree that one meaning is the network development community within
Linux.

But it also means a network device, which is OS agnostic. I don't
really see it be any different to a memory technology device, mtd.

	Andrew

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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-07-25 12:37   ` Andrew Lunn
@ 2024-08-01 12:53     ` Lee Jones
  2024-08-01 13:03       ` Andrew Lunn
  0 siblings, 1 reply; 10+ messages in thread
From: Lee Jones @ 2024-08-01 12:53 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Marek Vasut, devicetree, Conor Dooley, Jacek Anaszewski,
	Krzysztof Kozlowski, Pavel Machek, Rob Herring, linux-leds,
	netdev

On Thu, 25 Jul 2024, Andrew Lunn wrote:

> > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
> > > index 8a3c2398b10ce..bf9a101e4d420 100644
> > > --- a/Documentation/devicetree/bindings/leds/common.yaml
> > > +++ b/Documentation/devicetree/bindings/leds/common.yaml
> > > @@ -113,6 +113,8 @@ properties:
> > >              # LED indicates NAND memory activity (deprecated),
> > >              # in new implementations use "mtd"
> > >            - nand-disk
> > > +            # LED indicates network activity
> > > +          - netdev
> > 
> > netdev is the description of the network development ML/repo, right?
> > 
> > Seems like an odd name for an OS agnostic property?
> 
> I agree that one meaning is the network development community within
> Linux.
> 
> But it also means a network device, which is OS agnostic. I don't
> really see it be any different to a memory technology device, mtd.

MTD is an acronym.

The only dodgy one I see in there is 'kbd-capslock'.

How about, now go with me here: 'network'?

I'd even suffer 'network-device' or 'net-device' if we really have to shorten.

Although, I'm not really sure the 'device' part needs to come into play'?

-- 
Lee Jones [李琼斯]

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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-08-01 12:53     ` Lee Jones
@ 2024-08-01 13:03       ` Andrew Lunn
  2024-08-05 13:56         ` Lee Jones
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Lunn @ 2024-08-01 13:03 UTC (permalink / raw)
  To: Lee Jones
  Cc: Marek Vasut, devicetree, Conor Dooley, Jacek Anaszewski,
	Krzysztof Kozlowski, Pavel Machek, Rob Herring, linux-leds,
	netdev

On Thu, Aug 01, 2024 at 01:53:09PM +0100, Lee Jones wrote:
> On Thu, 25 Jul 2024, Andrew Lunn wrote:
> 
> > > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
> > > > index 8a3c2398b10ce..bf9a101e4d420 100644
> > > > --- a/Documentation/devicetree/bindings/leds/common.yaml
> > > > +++ b/Documentation/devicetree/bindings/leds/common.yaml
> > > > @@ -113,6 +113,8 @@ properties:
> > > >              # LED indicates NAND memory activity (deprecated),
> > > >              # in new implementations use "mtd"
> > > >            - nand-disk
> > > > +            # LED indicates network activity
> > > > +          - netdev
> > > 
> > > netdev is the description of the network development ML/repo, right?
> > > 
> > > Seems like an odd name for an OS agnostic property?
> > 
> > I agree that one meaning is the network development community within
> > Linux.
> > 
> > But it also means a network device, which is OS agnostic. I don't
> > really see it be any different to a memory technology device, mtd.
> 
> MTD is an acronym.
> 
> The only dodgy one I see in there is 'kbd-capslock'.
> 
> How about, now go with me here: 'network'?

We could do, but we have to keep netdev around for backwards
compatibility. There are DT blobs using it which we cannot break.

	Andrew

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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-08-01 13:03       ` Andrew Lunn
@ 2024-08-05 13:56         ` Lee Jones
  2024-08-05 22:56           ` Andrew Lunn
  0 siblings, 1 reply; 10+ messages in thread
From: Lee Jones @ 2024-08-05 13:56 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Marek Vasut, devicetree, Conor Dooley, Jacek Anaszewski,
	Krzysztof Kozlowski, Pavel Machek, Rob Herring, linux-leds,
	netdev

On Thu, 01 Aug 2024, Andrew Lunn wrote:

> On Thu, Aug 01, 2024 at 01:53:09PM +0100, Lee Jones wrote:
> > On Thu, 25 Jul 2024, Andrew Lunn wrote:
> > 
> > > > > diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml
> > > > > index 8a3c2398b10ce..bf9a101e4d420 100644
> > > > > --- a/Documentation/devicetree/bindings/leds/common.yaml
> > > > > +++ b/Documentation/devicetree/bindings/leds/common.yaml
> > > > > @@ -113,6 +113,8 @@ properties:
> > > > >              # LED indicates NAND memory activity (deprecated),
> > > > >              # in new implementations use "mtd"
> > > > >            - nand-disk
> > > > > +            # LED indicates network activity
> > > > > +          - netdev
> > > > 
> > > > netdev is the description of the network development ML/repo, right?
> > > > 
> > > > Seems like an odd name for an OS agnostic property?
> > > 
> > > I agree that one meaning is the network development community within
> > > Linux.
> > > 
> > > But it also means a network device, which is OS agnostic. I don't
> > > really see it be any different to a memory technology device, mtd.
> > 
> > MTD is an acronym.
> > 
> > The only dodgy one I see in there is 'kbd-capslock'.
> > 
> > How about, now go with me here: 'network'?
> 
> We could do, but we have to keep netdev around for backwards
> compatibility. There are DT blobs using it which we cannot break.

Oh, this 'just' a documentation patch?  'netdev' is already in use?

-- 
Lee Jones [李琼斯]

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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-08-05 13:56         ` Lee Jones
@ 2024-08-05 22:56           ` Andrew Lunn
  2024-08-16 15:47             ` Lee Jones
  0 siblings, 1 reply; 10+ messages in thread
From: Andrew Lunn @ 2024-08-05 22:56 UTC (permalink / raw)
  To: Lee Jones
  Cc: Marek Vasut, devicetree, Conor Dooley, Jacek Anaszewski,
	Krzysztof Kozlowski, Pavel Machek, Rob Herring, linux-leds,
	netdev

> > We could do, but we have to keep netdev around for backwards
> > compatibility. There are DT blobs using it which we cannot break.
> 
> Oh, this 'just' a documentation patch?  'netdev' is already in use?
> 

A few examples:

intel/ixp/intel-ixp42x-iomega-nas100d.dts:                      linux,default-trigger = "netdev";
intel/ixp/intel-ixp42x-dlink-dsm-g600.dts:                      linux,default-trigger = "netdev";
nxp/imx/imx53-m53menlo.dts:                     linux,default-trigger = "netdev";
rockchip/rk3128-xpi-3128.dts:                    * linux,default-trigger = "netdev";
ti/omap/am5729-beagleboneai.dts:                        linux,default-trigger = "netdev";
ti/omap/am335x-netcan-plus-1xx.dts:                     linux,default-trigger = "netdev";

	Andrew

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

* Re: [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-08-05 22:56           ` Andrew Lunn
@ 2024-08-16 15:47             ` Lee Jones
  0 siblings, 0 replies; 10+ messages in thread
From: Lee Jones @ 2024-08-16 15:47 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: Marek Vasut, devicetree, Conor Dooley, Jacek Anaszewski,
	Krzysztof Kozlowski, Pavel Machek, Rob Herring, linux-leds,
	netdev

On Tue, 06 Aug 2024, Andrew Lunn wrote:

> > > We could do, but we have to keep netdev around for backwards
> > > compatibility. There are DT blobs using it which we cannot break.
> > 
> > Oh, this 'just' a documentation patch?  'netdev' is already in use?
> > 
> 
> A few examples:
> 
> intel/ixp/intel-ixp42x-iomega-nas100d.dts:                      linux,default-trigger = "netdev";
> intel/ixp/intel-ixp42x-dlink-dsm-g600.dts:                      linux,default-trigger = "netdev";
> nxp/imx/imx53-m53menlo.dts:                     linux,default-trigger = "netdev";
> rockchip/rk3128-xpi-3128.dts:                    * linux,default-trigger = "netdev";
> ti/omap/am5729-beagleboneai.dts:                        linux,default-trigger = "netdev";
> ti/omap/am335x-netcan-plus-1xx.dts:                     linux,default-trigger = "netdev";

Gross!  Okay.

-- 
Lee Jones [李琼斯]

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

* Re: (subset) [PATCH v2] dt-bindings: leds: Document "netdev" trigger
  2024-07-08 11:46 [PATCH v2] dt-bindings: leds: Document "netdev" trigger Marek Vasut
  2024-07-09  9:06 ` Krzysztof Kozlowski
  2024-07-25  8:50 ` Lee Jones
@ 2024-08-16 15:53 ` Lee Jones
  2 siblings, 0 replies; 10+ messages in thread
From: Lee Jones @ 2024-08-16 15:53 UTC (permalink / raw)
  To: devicetree, Marek Vasut
  Cc: Conor Dooley, Jacek Anaszewski, Krzysztof Kozlowski, Lee Jones,
	Pavel Machek, Rob Herring, linux-leds

On Mon, 08 Jul 2024 13:46:27 +0200, Marek Vasut wrote:
> Document the "netdev" trigger which is used to control LEDs by
> network device activity. This is an existing trigger used in
> existing DTs, document it so validation of those DTs would pass.
> 
> 

Applied, thanks!

[1/1] dt-bindings: leds: Document "netdev" trigger
      commit: 616dbed65485c6e68325d00b6258a05369c14705

--
Lee Jones [李琼斯]


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

end of thread, other threads:[~2024-08-16 15:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-08 11:46 [PATCH v2] dt-bindings: leds: Document "netdev" trigger Marek Vasut
2024-07-09  9:06 ` Krzysztof Kozlowski
2024-07-25  8:50 ` Lee Jones
2024-07-25 12:37   ` Andrew Lunn
2024-08-01 12:53     ` Lee Jones
2024-08-01 13:03       ` Andrew Lunn
2024-08-05 13:56         ` Lee Jones
2024-08-05 22:56           ` Andrew Lunn
2024-08-16 15:47             ` Lee Jones
2024-08-16 15:53 ` (subset) " Lee Jones

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