* [PATCH] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
@ 2025-10-31 8:15 Buday Csaba
2025-10-31 13:01 ` Andrew Lunn
2025-11-03 8:13 ` [PATCH v2 1/1] " Buday Csaba
0 siblings, 2 replies; 7+ messages in thread
From: Buday Csaba @ 2025-10-31 8:15 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Florian Fainelli, netdev,
devicetree, linux-kernel
Cc: Buday Csaba
Change PHY ID description in ethernet-phy.yaml to clarify that a
PHY ID is required (may -> must) when the PHY requires special
initialization sequence.
Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
---
Documentation/devicetree/bindings/net/ethernet-phy.yaml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
index 2ec2d9fda..6f5599902 100644
--- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
@@ -35,9 +35,10 @@ properties:
description: PHYs that implement IEEE802.3 clause 45
- pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
description:
- If the PHY reports an incorrect ID (or none at all) then the
- compatible list may contain an entry with the correct PHY ID
- in the above form.
+ If the PHY reports an incorrect ID (or none at all), or the PHY
+ requires a specific initialization sequence (like a particular
+ order of clocks, resets, power supplies), then the compatible list
+ must contain an entry with the correct PHY ID in the above form.
The first group of digits is the 16 bit Phy Identifier 1
register, this is the chip vendor OUI bits 3:18. The
second group of digits is the Phy Identifier 2 register,
--
2.39.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
2025-10-31 8:15 [PATCH] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID Buday Csaba
@ 2025-10-31 13:01 ` Andrew Lunn
2025-10-31 15:08 ` Conor Dooley
2025-11-03 8:13 ` [PATCH v2 1/1] " Buday Csaba
1 sibling, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2025-10-31 13:01 UTC (permalink / raw)
To: Buday Csaba
Cc: Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Florian Fainelli, netdev, devicetree, linux-kernel
On Fri, Oct 31, 2025 at 09:15:06AM +0100, Buday Csaba wrote:
> Change PHY ID description in ethernet-phy.yaml to clarify that a
> PHY ID is required (may -> must) when the PHY requires special
> initialization sequence.
>
> Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
> Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
>
> Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
> ---
> Documentation/devicetree/bindings/net/ethernet-phy.yaml | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> index 2ec2d9fda..6f5599902 100644
> --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> @@ -35,9 +35,10 @@ properties:
> description: PHYs that implement IEEE802.3 clause 45
> - pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
> description:
> - If the PHY reports an incorrect ID (or none at all) then the
> - compatible list may contain an entry with the correct PHY ID
> - in the above form.
> + If the PHY reports an incorrect ID (or none at all), or the PHY
> + requires a specific initialization sequence (like a particular
> + order of clocks, resets, power supplies), then the compatible list
> + must contain an entry with the correct PHY ID in the above form.
That is good start, but how about:
PHYs contain identification registers. These will be read to
identify the PHY. If the PHY reports an incorrect ID, or the
PHY requires a specific initialization sequence (like a
particular order of clocks, resets, power supplies), in
order to be able to read the ID registers, then the
compatible list must contain an entry with the correct PHY
ID in the above form.
The first two sentences make it clear we ideally use the ID registers.
Then we say what happens if cannot work.
The "(or none at all)" is exactly the case you are trying to clarify,
it does not respond due to missing reset, clocks etc. We don't need to
say it twice, so i removed it.
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
2025-10-31 13:01 ` Andrew Lunn
@ 2025-10-31 15:08 ` Conor Dooley
0 siblings, 0 replies; 7+ messages in thread
From: Conor Dooley @ 2025-10-31 15:08 UTC (permalink / raw)
To: Andrew Lunn
Cc: Buday Csaba, Heiner Kallweit, Russell King, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Florian Fainelli, netdev,
devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2593 bytes --]
On Fri, Oct 31, 2025 at 02:01:26PM +0100, Andrew Lunn wrote:
> On Fri, Oct 31, 2025 at 09:15:06AM +0100, Buday Csaba wrote:
> > Change PHY ID description in ethernet-phy.yaml to clarify that a
> > PHY ID is required (may -> must) when the PHY requires special
> > initialization sequence.
> >
> > Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
> > Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
> >
> > Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
> > ---
> > Documentation/devicetree/bindings/net/ethernet-phy.yaml | 7 ++++---
> > 1 file changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> > index 2ec2d9fda..6f5599902 100644
> > --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> > +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> > @@ -35,9 +35,10 @@ properties:
> > description: PHYs that implement IEEE802.3 clause 45
> > - pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
> > description:
> > - If the PHY reports an incorrect ID (or none at all) then the
> > - compatible list may contain an entry with the correct PHY ID
> > - in the above form.
> > + If the PHY reports an incorrect ID (or none at all), or the PHY
> > + requires a specific initialization sequence (like a particular
> > + order of clocks, resets, power supplies), then the compatible list
> > + must contain an entry with the correct PHY ID in the above form.
>
> That is good start, but how about:
>
> PHYs contain identification registers. These will be read to
> identify the PHY. If the PHY reports an incorrect ID, or the
> PHY requires a specific initialization sequence (like a
> particular order of clocks, resets, power supplies), in
> order to be able to read the ID registers, then the
> compatible list must contain an entry with the correct PHY
> ID in the above form.
>
> The first two sentences make it clear we ideally use the ID registers.
> Then we say what happens if cannot work.
>
> The "(or none at all)" is exactly the case you are trying to clarify,
> it does not respond due to missing reset, clocks etc. We don't need to
> say it twice, so i removed it.
I like this wording,
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: changes-requested
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/1] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
2025-10-31 8:15 [PATCH] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID Buday Csaba
2025-10-31 13:01 ` Andrew Lunn
@ 2025-11-03 8:13 ` Buday Csaba
2025-11-03 13:19 ` Andrew Lunn
` (2 more replies)
1 sibling, 3 replies; 7+ messages in thread
From: Buday Csaba @ 2025-11-03 8:13 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit, Russell King, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Florian Fainelli, netdev,
devicetree, linux-kernel
Cc: Buday Csaba
Change PHY ID description in ethernet-phy.yaml to clarify that a
PHY ID is required (may -> must) when the PHY requires special
initialization sequence.
Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
---
V1 -> V2: Changed wording on maintainer request.
---
.../devicetree/bindings/net/ethernet-phy.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
index 2ec2d9fda..bb4c49fc5 100644
--- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
@@ -35,9 +35,13 @@ properties:
description: PHYs that implement IEEE802.3 clause 45
- pattern: "^ethernet-phy-id[a-f0-9]{4}\\.[a-f0-9]{4}$"
description:
- If the PHY reports an incorrect ID (or none at all) then the
- compatible list may contain an entry with the correct PHY ID
- in the above form.
+ PHYs contain identification registers. These will be read to
+ identify the PHY. If the PHY reports an incorrect ID, or the
+ PHY requires a specific initialization sequence (like a
+ particular order of clocks, resets, power supplies), in
+ order to be able to read the ID registers, then the
+ compatible list must contain an entry with the correct PHY
+ ID in the above form.
The first group of digits is the 16 bit Phy Identifier 1
register, this is the chip vendor OUI bits 3:18. The
second group of digits is the Phy Identifier 2 register,
base-commit: 0d0eb186421d0886ac466008235f6d9eedaf918e
--
2.39.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
2025-11-03 8:13 ` [PATCH v2 1/1] " Buday Csaba
@ 2025-11-03 13:19 ` Andrew Lunn
2025-11-03 16:49 ` Florian Fainelli
2025-11-05 1:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: Andrew Lunn @ 2025-11-03 13:19 UTC (permalink / raw)
To: Buday Csaba
Cc: Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Florian Fainelli, netdev, devicetree, linux-kernel
On Mon, Nov 03, 2025 at 09:13:42AM +0100, Buday Csaba wrote:
> Change PHY ID description in ethernet-phy.yaml to clarify that a
> PHY ID is required (may -> must) when the PHY requires special
> initialization sequence.
>
> Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
> Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
>
> Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
Please always start a new thread for each version of a patch. The CI
probably just sees this as a comment made to the previous version, and
so has probably not tested it.
Given that you have only changed some DT binding text, it is however
likely safe.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
2025-11-03 8:13 ` [PATCH v2 1/1] " Buday Csaba
2025-11-03 13:19 ` Andrew Lunn
@ 2025-11-03 16:49 ` Florian Fainelli
2025-11-05 1:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: Florian Fainelli @ 2025-11-03 16:49 UTC (permalink / raw)
To: Buday Csaba, Andrew Lunn, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, netdev,
devicetree, linux-kernel
On 11/3/25 00:13, Buday Csaba wrote:
> Change PHY ID description in ethernet-phy.yaml to clarify that a
> PHY ID is required (may -> must) when the PHY requires special
> initialization sequence.
>
> Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
> Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
>
> Signed-off-by: Buday Csaba <buday.csaba@prolan.hu>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
2025-11-03 8:13 ` [PATCH v2 1/1] " Buday Csaba
2025-11-03 13:19 ` Andrew Lunn
2025-11-03 16:49 ` Florian Fainelli
@ 2025-11-05 1:50 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-05 1:50 UTC (permalink / raw)
To: Buday Csaba
Cc: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni, robh,
krzk+dt, conor+dt, f.fainelli, netdev, devicetree, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 3 Nov 2025 09:13:42 +0100 you wrote:
> Change PHY ID description in ethernet-phy.yaml to clarify that a
> PHY ID is required (may -> must) when the PHY requires special
> initialization sequence.
>
> Link: https://lore.kernel.org/netdev/20251026212026.GA2959311-robh@kernel.org/
> Link: https://lore.kernel.org/netdev/aQIZvDt5gooZSTcp@debianbuilder/
>
> [...]
Here is the summary with links:
- [v2,1/1] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID
https://git.kernel.org/netdev/net-next/c/e0c78fcad2bb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-11-05 1:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-31 8:15 [PATCH] dt-bindings: net: ethernet-phy: clarify when compatible must specify PHY ID Buday Csaba
2025-10-31 13:01 ` Andrew Lunn
2025-10-31 15:08 ` Conor Dooley
2025-11-03 8:13 ` [PATCH v2 1/1] " Buday Csaba
2025-11-03 13:19 ` Andrew Lunn
2025-11-03 16:49 ` Florian Fainelli
2025-11-05 1:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox