* [PATCH] Add function define for PoE
@ 2025-02-13 0:58 Tony O'Brien
2025-02-13 0:58 ` [PATCH] dt-bindings:leds: Add function define for POE Tony O'Brien
0 siblings, 1 reply; 8+ messages in thread
From: Tony O'Brien @ 2025-02-13 0:58 UTC (permalink / raw)
To: lee, pavel, robh, krzk+dt, conor+dt; +Cc: linux-leds, devicetree, linux-kernel
A network device with Power over Ethernet (PoE) that is a Power Sourcing
Equipment (PSE) can have an LED per port showing the PoE status of the
port.
Tony O'Brien (1):
dt-bindings:leds: Add function define for POE
include/dt-bindings/leds/common.h | 1 +
1 file changed, 1 insertion(+)
--
2.48.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] dt-bindings:leds: Add function define for POE
2025-02-13 0:58 [PATCH] Add function define for PoE Tony O'Brien
@ 2025-02-13 0:58 ` Tony O'Brien
2025-02-13 9:31 ` Krzysztof Kozlowski
0 siblings, 1 reply; 8+ messages in thread
From: Tony O'Brien @ 2025-02-13 0:58 UTC (permalink / raw)
To: lee, pavel, robh, krzk+dt, conor+dt
Cc: linux-leds, devicetree, linux-kernel, Ben Hoelker, Chris Packham
Add a define so network devices with a PoE PSE feature can provide
status indications of connected PoE PDs.
Reviewed-by: Ben Hoelker <ben.hoelker@alliedtelesis.co.nz>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Tony O'Brien <tony.obrien@alliedtelesis.co.nz>
---
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 4f017bea0123..3a8958b81c87 100644
--- a/include/dt-bindings/leds/common.h
+++ b/include/dt-bindings/leds/common.h
@@ -94,6 +94,7 @@
#define LED_FUNCTION_MOBILE "mobile"
#define LED_FUNCTION_MTD "mtd"
#define LED_FUNCTION_PANIC "panic"
+#define LED_FUNCTION_POE "poe"
#define LED_FUNCTION_PROGRAMMING "programming"
#define LED_FUNCTION_RX "rx"
#define LED_FUNCTION_SD "sd"
--
2.48.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings:leds: Add function define for POE
2025-02-13 0:58 ` [PATCH] dt-bindings:leds: Add function define for POE Tony O'Brien
@ 2025-02-13 9:31 ` Krzysztof Kozlowski
2025-02-16 21:37 ` Tony O'Brien
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-13 9:31 UTC (permalink / raw)
To: Tony O'Brien
Cc: lee, pavel, robh, krzk+dt, conor+dt, linux-leds, devicetree,
linux-kernel, Ben Hoelker, Chris Packham
On Thu, Feb 13, 2025 at 01:58:41PM +1300, Tony O'Brien wrote:
> Add a define so network devices with a PoE PSE feature can provide
> status indications of connected PoE PDs.
>
> Reviewed-by: Ben Hoelker <ben.hoelker@alliedtelesis.co.nz>
> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Where did these two reviews happen?
> Signed-off-by: Tony O'Brien <tony.obrien@alliedtelesis.co.nz>
> ---
> 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 4f017bea0123..3a8958b81c87 100644
> --- a/include/dt-bindings/leds/common.h
> +++ b/include/dt-bindings/leds/common.h
> @@ -94,6 +94,7 @@
> #define LED_FUNCTION_MOBILE "mobile"
> #define LED_FUNCTION_MTD "mtd"
> #define LED_FUNCTION_PANIC "panic"
> +#define LED_FUNCTION_POE "poe"
Where is any user of this?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings:leds: Add function define for POE
2025-02-13 9:31 ` Krzysztof Kozlowski
@ 2025-02-16 21:37 ` Tony O'Brien
2025-02-17 9:13 ` Krzysztof Kozlowski
0 siblings, 1 reply; 8+ messages in thread
From: Tony O'Brien @ 2025-02-16 21:37 UTC (permalink / raw)
To: krzk@kernel.org
Cc: pavel@kernel.org, lee@kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org,
linux-leds@vger.kernel.org, Ben Hoelker, conor+dt@kernel.org,
Chris Packham
Hi Krzysztof -
> Where did these two reviews happen?
They were in-house reviews. Please feel free to remove them from the
patch.
> Where is any user of this?
We are adding Kernel control of PoE LEDs and thought this might be
useful to others, maybe those working on netdev, or anyone implementing
PoE on their devices. Also, the Kernel >> Docs >> LEDs page states:
"If required color or function is missing, please submit a patch to
linux-leds@vger.kernel.org", which is included here.
Cheers,
Tony O'Brien
On Thu, 2025-02-13 at 10:31 +0100, Krzysztof Kozlowski wrote:
> On Thu, Feb 13, 2025 at 01:58:41PM +1300, Tony O'Brien wrote:
> > Add a define so network devices with a PoE PSE feature can provide
> > status indications of connected PoE PDs.
> >
> > Reviewed-by: Ben Hoelker <ben.hoelker@alliedtelesis.co.nz>
> > Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
>
> Where did these two reviews happen?
>
> > Signed-off-by: Tony O'Brien <tony.obrien@alliedtelesis.co.nz>
> > ---
> > 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 4f017bea0123..3a8958b81c87 100644
> > --- a/include/dt-bindings/leds/common.h
> > +++ b/include/dt-bindings/leds/common.h
> > @@ -94,6 +94,7 @@
> > #define LED_FUNCTION_MOBILE "mobile"
> > #define LED_FUNCTION_MTD "mtd"
> > #define LED_FUNCTION_PANIC "panic"
> > +#define LED_FUNCTION_POE "poe"
>
> Where is any user of this?
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings:leds: Add function define for POE
2025-02-16 21:37 ` Tony O'Brien
@ 2025-02-17 9:13 ` Krzysztof Kozlowski
2025-02-23 20:54 ` Chris Packham
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-17 9:13 UTC (permalink / raw)
To: Tony O'Brien
Cc: pavel@kernel.org, lee@kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org,
linux-leds@vger.kernel.org, Ben Hoelker, conor+dt@kernel.org,
Chris Packham
On 16/02/2025 22:37, Tony O'Brien wrote:
> Hi Krzysztof -
>
>> Where did these two reviews happen?
> They were in-house reviews. Please feel free to remove them from the
> patch.
>
>> Where is any user of this?
> We are adding Kernel control of PoE LEDs and thought this might be
> useful to others, maybe those working on netdev, or anyone implementing
> PoE on their devices. Also, the Kernel >> Docs >> LEDs page states:
> "If required color or function is missing, please submit a patch to
> linux-leds@vger.kernel.org", which is included here.
You did not answer: where is the user? By "we are adding" you mean
downstream?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings:leds: Add function define for POE
2025-02-17 9:13 ` Krzysztof Kozlowski
@ 2025-02-23 20:54 ` Chris Packham
2025-02-24 8:11 ` Krzysztof Kozlowski
0 siblings, 1 reply; 8+ messages in thread
From: Chris Packham @ 2025-02-23 20:54 UTC (permalink / raw)
To: Krzysztof Kozlowski, Tony O'Brien
Cc: pavel@kernel.org, lee@kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org,
linux-leds@vger.kernel.org, Ben Hoelker, conor+dt@kernel.org
Hi Krzysztof,
On 17/02/2025 22:13, Krzysztof Kozlowski wrote:
> On 16/02/2025 22:37, Tony O'Brien wrote:
>> Hi Krzysztof -
>>
>>> Where did these two reviews happen?
>> They were in-house reviews. Please feel free to remove them from the
>> patch.
>>
>>> Where is any user of this?
>> We are adding Kernel control of PoE LEDs and thought this might be
>> useful to others, maybe those working on netdev, or anyone implementing
>> PoE on their devices. Also, the Kernel >> Docs >> LEDs page states:
>> "If required color or function is missing, please submit a patch to
>> linux-leds@vger.kernel.org", which is included here.
> You did not answer: where is the user? By "we are adding" you mean
> downstream?
It's downstream. One of our PoE switches in development which uses a
pca9552 LED controller. I suggested to Tony that we get this upstream as
I know there is some work going on to support PoE PSEs in netdev. I did
wonder if we wanted to make this more specific i.e. have "pse" and "pd"
as different functions but something like "poe" seemed fine as you're
not going to have something that is both a PSE and a PD on the same port.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings:leds: Add function define for POE
2025-02-23 20:54 ` Chris Packham
@ 2025-02-24 8:11 ` Krzysztof Kozlowski
2025-02-24 19:59 ` Chris Packham
0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-24 8:11 UTC (permalink / raw)
To: Chris Packham, Tony O'Brien
Cc: pavel@kernel.org, lee@kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org,
linux-leds@vger.kernel.org, Ben Hoelker, conor+dt@kernel.org
On 23/02/2025 21:54, Chris Packham wrote:
> Hi Krzysztof,
>
> On 17/02/2025 22:13, Krzysztof Kozlowski wrote:
>> On 16/02/2025 22:37, Tony O'Brien wrote:
>>> Hi Krzysztof -
>>>
>>>> Where did these two reviews happen?
>>> They were in-house reviews. Please feel free to remove them from the
>>> patch.
>>>
>>>> Where is any user of this?
>>> We are adding Kernel control of PoE LEDs and thought this might be
>>> useful to others, maybe those working on netdev, or anyone implementing
>>> PoE on their devices. Also, the Kernel >> Docs >> LEDs page states:
>>> "If required color or function is missing, please submit a patch to
>>> linux-leds@vger.kernel.org", which is included here.
>> You did not answer: where is the user? By "we are adding" you mean
>> downstream?
>
> It's downstream. One of our PoE switches in development which uses a
So for me that's a no. We don't care about downstream. Otherwise we
would need to accept whatever else people invented and never bothered
with upstreaming.
> pca9552 LED controller. I suggested to Tony that we get this upstream as
> I know there is some work going on to support PoE PSEs in netdev. I did
> wonder if we wanted to make this more specific i.e. have "pse" and "pd"
> as different functions but something like "poe" seemed fine as you're
> not going to have something that is both a PSE and a PD on the same port.
To me, this is not a catalog of all possible LED functions. Come with
any sort of user - either driver or DTS (and I still remember discussion
with Hans de Goede about taking such patches without DTS user, but that
was under condition there is driver user).
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] dt-bindings:leds: Add function define for POE
2025-02-24 8:11 ` Krzysztof Kozlowski
@ 2025-02-24 19:59 ` Chris Packham
0 siblings, 0 replies; 8+ messages in thread
From: Chris Packham @ 2025-02-24 19:59 UTC (permalink / raw)
To: Krzysztof Kozlowski, Tony O'Brien
Cc: pavel@kernel.org, lee@kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, linux-kernel@vger.kernel.org, krzk+dt@kernel.org,
linux-leds@vger.kernel.org, Ben Hoelker, conor+dt@kernel.org
Hi Krzysztof,
On 24/02/2025 21:11, Krzysztof Kozlowski wrote:
> On 23/02/2025 21:54, Chris Packham wrote:
>> Hi Krzysztof,
>>
>> On 17/02/2025 22:13, Krzysztof Kozlowski wrote:
>>> On 16/02/2025 22:37, Tony O'Brien wrote:
>>>> Hi Krzysztof -
>>>>
>>>>> Where did these two reviews happen?
>>>> They were in-house reviews. Please feel free to remove them from the
>>>> patch.
>>>>
>>>>> Where is any user of this?
>>>> We are adding Kernel control of PoE LEDs and thought this might be
>>>> useful to others, maybe those working on netdev, or anyone implementing
>>>> PoE on their devices. Also, the Kernel >> Docs >> LEDs page states:
>>>> "If required color or function is missing, please submit a patch to
>>>> linux-leds@vger.kernel.org", which is included here.
>>> You did not answer: where is the user? By "we are adding" you mean
>>> downstream?
>> It's downstream. One of our PoE switches in development which uses a
>
> So for me that's a no. We don't care about downstream. Otherwise we
> would need to accept whatever else people invented and never bothered
> with upstreaming.
>
>> pca9552 LED controller. I suggested to Tony that we get this upstream as
>> I know there is some work going on to support PoE PSEs in netdev. I did
>> wonder if we wanted to make this more specific i.e. have "pse" and "pd"
>> as different functions but something like "poe" seemed fine as you're
>> not going to have something that is both a PSE and a PD on the same port.
> To me, this is not a catalog of all possible LED functions. Come with
> any sort of user - either driver or DTS (and I still remember discussion
> with Hans de Goede about taking such patches without DTS user, but that
> was under condition there is driver user).
OK fair enough.
I do plan on getting more of our boards landed upstream. There's a few
CN9130 based ones that should be trivial to do (one of which is the user
of this LED function). Until then we can carry a local definition of
that function.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-02-24 19:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 0:58 [PATCH] Add function define for PoE Tony O'Brien
2025-02-13 0:58 ` [PATCH] dt-bindings:leds: Add function define for POE Tony O'Brien
2025-02-13 9:31 ` Krzysztof Kozlowski
2025-02-16 21:37 ` Tony O'Brien
2025-02-17 9:13 ` Krzysztof Kozlowski
2025-02-23 20:54 ` Chris Packham
2025-02-24 8:11 ` Krzysztof Kozlowski
2025-02-24 19:59 ` Chris Packham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox