* [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
@ 2024-06-23 19:41 Marek Vasut
2024-06-23 20:00 ` Andrew Lunn
0 siblings, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2024-06-23 19:41 UTC (permalink / raw)
To: netdev
Cc: Marek Vasut, Andrew Lunn, Conor Dooley, David S . Miller,
Eric Dumazet, Florian Fainelli, Heiner Kallweit, Jakub Kicinski,
Joakim Zhang, Krzysztof Kozlowski, Paolo Abeni, Rob Herring,
devicetree, kernel
Extract known PHY IDs from Linux kernel realtek PHY driver
and convert them into supported compatible string list for
this DT binding document.
Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Joakim Zhang <qiangqing.zhang@nxp.com>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org
Cc: kernel@dh-electronics.com
Cc: netdev@vger.kernel.org
---
.../bindings/net/realtek,rtl82xx.yaml | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml b/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
index bb94a2388520b..8db4d66f1a961 100644
--- a/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
+++ b/Documentation/devicetree/bindings/net/realtek,rtl82xx.yaml
@@ -18,6 +18,30 @@ allOf:
- $ref: ethernet-phy.yaml#
properties:
+ compatible:
+ enum:
+ - ethernet-phy-id0000.8201
+ - ethernet-phy-id001c.c800
+ - ethernet-phy-id001c.c816
+ - ethernet-phy-id001c.c838
+ - ethernet-phy-id001c.c840
+ - ethernet-phy-id001c.c848
+ - ethernet-phy-id001c.c849
+ - ethernet-phy-id001c.c84a
+ - ethernet-phy-id001c.c862
+ - ethernet-phy-id001c.c878
+ - ethernet-phy-id001c.c880
+ - ethernet-phy-id001c.c910
+ - ethernet-phy-id001c.c912
+ - ethernet-phy-id001c.c913
+ - ethernet-phy-id001c.c914
+ - ethernet-phy-id001c.c915
+ - ethernet-phy-id001c.c916
+ - ethernet-phy-id001c.c942
+ - ethernet-phy-id001c.c961
+ - ethernet-phy-id001c.cad0
+ - ethernet-phy-id001c.cb00
+
realtek,clkout-disable:
type: boolean
description:
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
2024-06-23 19:41 [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings Marek Vasut
@ 2024-06-23 20:00 ` Andrew Lunn
2024-06-23 23:52 ` Marek Vasut
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2024-06-23 20:00 UTC (permalink / raw)
To: Marek Vasut
Cc: netdev, Conor Dooley, David S . Miller, Eric Dumazet,
Florian Fainelli, Heiner Kallweit, Jakub Kicinski, Joakim Zhang,
Krzysztof Kozlowski, Paolo Abeni, Rob Herring, devicetree, kernel
> - $ref: ethernet-phy.yaml#
>
> properties:
> + compatible:
> + enum:
> + - ethernet-phy-id0000.8201
I'm not sure that one should be listed. It is not an official ID,
since it does not have an OUI. In fact, this is one of the rare cases
where actually listing a compatible in DT makes sense, because you can
override the broken hardware and give a correct ID in realtek address
space.
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
2024-06-23 20:00 ` Andrew Lunn
@ 2024-06-23 23:52 ` Marek Vasut
2024-06-24 13:52 ` Andrew Lunn
0 siblings, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2024-06-23 23:52 UTC (permalink / raw)
To: Andrew Lunn
Cc: netdev, Conor Dooley, David S . Miller, Eric Dumazet,
Florian Fainelli, Heiner Kallweit, Jakub Kicinski, Joakim Zhang,
Krzysztof Kozlowski, Paolo Abeni, Rob Herring, devicetree, kernel
On 6/23/24 10:00 PM, Andrew Lunn wrote:
>> - $ref: ethernet-phy.yaml#
>>
>> properties:
>> + compatible:
>> + enum:
>> + - ethernet-phy-id0000.8201
>
> I'm not sure that one should be listed. It is not an official ID,
> since it does not have an OUI. In fact, this is one of the rare cases
> where actually listing a compatible in DT makes sense, because you can
> override the broken hardware and give a correct ID in realtek address
> space.
Hmmm, so, shall I drop this ID or keep it ?
I generally put the PHY IDs into DT so the PHY drivers can correctly
handle clock and reset sequencing for those PHYs, before the PHY ID
registers can be read out of the PHY.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
2024-06-23 23:52 ` Marek Vasut
@ 2024-06-24 13:52 ` Andrew Lunn
2024-06-25 0:32 ` Marek Vasut
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2024-06-24 13:52 UTC (permalink / raw)
To: Marek Vasut
Cc: netdev, Conor Dooley, David S . Miller, Eric Dumazet,
Florian Fainelli, Heiner Kallweit, Jakub Kicinski, Joakim Zhang,
Krzysztof Kozlowski, Paolo Abeni, Rob Herring, devicetree, kernel
On Mon, Jun 24, 2024 at 01:52:49AM +0200, Marek Vasut wrote:
> On 6/23/24 10:00 PM, Andrew Lunn wrote:
> > > - $ref: ethernet-phy.yaml#
> > > properties:
> > > + compatible:
> > > + enum:
> > > + - ethernet-phy-id0000.8201
> >
> > I'm not sure that one should be listed. It is not an official ID,
> > since it does not have an OUI. In fact, this is one of the rare cases
> > where actually listing a compatible in DT makes sense, because you can
> > override the broken hardware and give a correct ID in realtek address
> > space.
>
> Hmmm, so, shall I drop this ID or keep it ?
>
> I generally put the PHY IDs into DT so the PHY drivers can correctly handle
> clock and reset sequencing for those PHYs, before the PHY ID registers can
> be read out of the PHY.
Are there any in kernel .dts files using it? We could add it, if it is
needed to keep the DT validation tools are happy. But we should also
be deprecating this compatible, replacing it with one allocated from
realteks range.
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
2024-06-24 13:52 ` Andrew Lunn
@ 2024-06-25 0:32 ` Marek Vasut
2024-06-25 13:17 ` Andrew Lunn
0 siblings, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2024-06-25 0:32 UTC (permalink / raw)
To: Andrew Lunn
Cc: netdev, Conor Dooley, David S . Miller, Eric Dumazet,
Florian Fainelli, Heiner Kallweit, Jakub Kicinski, Joakim Zhang,
Krzysztof Kozlowski, Paolo Abeni, Rob Herring, devicetree, kernel
On 6/24/24 3:52 PM, Andrew Lunn wrote:
> On Mon, Jun 24, 2024 at 01:52:49AM +0200, Marek Vasut wrote:
>> On 6/23/24 10:00 PM, Andrew Lunn wrote:
>>>> - $ref: ethernet-phy.yaml#
>>>> properties:
>>>> + compatible:
>>>> + enum:
>>>> + - ethernet-phy-id0000.8201
>>>
>>> I'm not sure that one should be listed. It is not an official ID,
>>> since it does not have an OUI. In fact, this is one of the rare cases
>>> where actually listing a compatible in DT makes sense, because you can
>>> override the broken hardware and give a correct ID in realtek address
>>> space.
>>
>> Hmmm, so, shall I drop this ID or keep it ?
>>
>> I generally put the PHY IDs into DT so the PHY drivers can correctly handle
>> clock and reset sequencing for those PHYs, before the PHY ID registers can
>> be read out of the PHY.
>
> Are there any in kernel .dts files using it?
git grep ethernet-phy-id0000.8201 on current next-20240624 says no.
> We could add it, if it is
> needed to keep the DT validation tools are happy. But we should also
> be deprecating this compatible, replacing it with one allocated from
> realteks range.
I think we should drop from the bindings after all, I will prepare a V2
like that, OK ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
2024-06-25 0:32 ` Marek Vasut
@ 2024-06-25 13:17 ` Andrew Lunn
2024-06-25 18:44 ` Marek Vasut
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2024-06-25 13:17 UTC (permalink / raw)
To: Marek Vasut
Cc: netdev, Conor Dooley, David S . Miller, Eric Dumazet,
Florian Fainelli, Heiner Kallweit, Jakub Kicinski, Joakim Zhang,
Krzysztof Kozlowski, Paolo Abeni, Rob Herring, devicetree, kernel
> git grep ethernet-phy-id0000.8201 on current next-20240624 says no.
>
> > We could add it, if it is
> > needed to keep the DT validation tools are happy. But we should also
> > be deprecating this compatible, replacing it with one allocated from
> > realteks range.
>
> I think we should drop from the bindings after all, I will prepare a V2 like
> that, OK ?
Yes, please drop it.
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings
2024-06-25 13:17 ` Andrew Lunn
@ 2024-06-25 18:44 ` Marek Vasut
0 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2024-06-25 18:44 UTC (permalink / raw)
To: Andrew Lunn
Cc: netdev, Conor Dooley, David S . Miller, Eric Dumazet,
Florian Fainelli, Heiner Kallweit, Jakub Kicinski, Joakim Zhang,
Krzysztof Kozlowski, Paolo Abeni, Rob Herring, devicetree, kernel
On 6/25/24 3:17 PM, Andrew Lunn wrote:
>> git grep ethernet-phy-id0000.8201 on current next-20240624 says no.
>>
>>> We could add it, if it is
>>> needed to keep the DT validation tools are happy. But we should also
>>> be deprecating this compatible, replacing it with one allocated from
>>> realteks range.
>>
>> I think we should drop from the bindings after all, I will prepare a V2 like
>> that, OK ?
>
> Yes, please drop it.
Done in V2, thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-06-25 19:06 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-23 19:41 [net-next,PATCH] dt-bindings: net: realtek,rtl82xx: Document known PHY IDs as compatible strings Marek Vasut
2024-06-23 20:00 ` Andrew Lunn
2024-06-23 23:52 ` Marek Vasut
2024-06-24 13:52 ` Andrew Lunn
2024-06-25 0:32 ` Marek Vasut
2024-06-25 13:17 ` Andrew Lunn
2024-06-25 18:44 ` Marek Vasut
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).