* [PATCH net-next] dt-bindings: net: aspeed: add AST2700 MDIO compatible
@ 2025-11-17 7:30 Jacky Chou
2025-11-19 18:41 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Jacky Chou @ 2025-11-17 7:30 UTC (permalink / raw)
To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Joel Stanley, Andrew Jeffery
Cc: Andrew Jeffery, netdev, devicetree, linux-arm-kernel,
linux-aspeed, linux-kernel, Jacky Chou
Add "aspeed,ast2700-mdio" compatible to the binding schema with a fallback
to "aspeed,ast2600-mdio".
Although the MDIO controller on AST2700 is functionally the same as the
one on AST2600, it's good practice to add a SoC-specific compatible for
new silicon. This allows future driver updates to handle any 2700-specific
integration issues without requiring devicetree changes or complex
runtime detection logic.
For now, the driver continues to bind via the existing
"aspeed,ast2600-mdio" compatible, so no driver changes are needed.
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
---
Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
index d6ef468495c5..1c90e7c15a44 100644
--- a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
+++ b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
@@ -13,13 +13,19 @@ description: |+
The ASPEED AST2600 MDIO controller is the third iteration of ASPEED's MDIO
bus register interface, this time also separating out the controller from the
MAC.
+ The ASPEED AST2700 MDIO controller is similar to the AST2600's.
allOf:
- $ref: mdio.yaml#
properties:
compatible:
- const: aspeed,ast2600-mdio
+ oneOf:
+ - const: aspeed,ast2600-mdio
+ - items:
+ - enum:
+ - aspeed,ast2700-mdio
+ - const: aspeed,ast2600-mdio
reg:
maxItems: 1
---
base-commit: c9dfb92de0738eb7fe6a591ad1642333793e8b6e
change-id: 20251117-aspeed_mdio_ast2700-aa089c4f0474
Best regards,
--
Jacky Chou <jacky_chou@aspeedtech.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] dt-bindings: net: aspeed: add AST2700 MDIO compatible
2025-11-17 7:30 [PATCH net-next] dt-bindings: net: aspeed: add AST2700 MDIO compatible Jacky Chou
@ 2025-11-19 18:41 ` Conor Dooley
2025-11-20 3:20 ` Jacky Chou
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2025-11-19 18:41 UTC (permalink / raw)
To: Jacky Chou
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Joel Stanley, Andrew Jeffery, Andrew Jeffery, netdev, devicetree,
linux-arm-kernel, linux-aspeed, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2311 bytes --]
On Mon, Nov 17, 2025 at 03:30:18PM +0800, Jacky Chou wrote:
> Add "aspeed,ast2700-mdio" compatible to the binding schema with a fallback
> to "aspeed,ast2600-mdio".
>
> Although the MDIO controller on AST2700 is functionally the same as the
> one on AST2600, it's good practice to add a SoC-specific compatible for
> new silicon. This allows future driver updates to handle any 2700-specific
> integration issues without requiring devicetree changes or complex
> runtime detection logic.
>
> For now, the driver continues to bind via the existing
> "aspeed,ast2600-mdio" compatible, so no driver changes are needed.
>
> Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
> ---
> Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
> index d6ef468495c5..1c90e7c15a44 100644
> --- a/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
> +++ b/Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml
> @@ -13,13 +13,19 @@ description: |+
> The ASPEED AST2600 MDIO controller is the third iteration of ASPEED's MDIO
> bus register interface, this time also separating out the controller from the
> MAC.
> + The ASPEED AST2700 MDIO controller is similar to the AST2600's.
This statement disagrees with your commit message that claims
functionally identical, and implies that the 2700 supports some extra
features or whatever.
I think I'd drop this entirely from the patch, rather than try to reword
it. Remove it and then:
Acked-by: Conor Dooley <conor.dooley@microchip.com>
pw-bot: changes-requested
> allOf:
> - $ref: mdio.yaml#
>
> properties:
> compatible:
> - const: aspeed,ast2600-mdio
> + oneOf:
> + - const: aspeed,ast2600-mdio
> + - items:
> + - enum:
> + - aspeed,ast2700-mdio
> + - const: aspeed,ast2600-mdio
>
> reg:
> maxItems: 1
>
> ---
> base-commit: c9dfb92de0738eb7fe6a591ad1642333793e8b6e
> change-id: 20251117-aspeed_mdio_ast2700-aa089c4f0474
>
> Best regards,
> --
> Jacky Chou <jacky_chou@aspeedtech.com>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH net-next] dt-bindings: net: aspeed: add AST2700 MDIO compatible
2025-11-19 18:41 ` Conor Dooley
@ 2025-11-20 3:20 ` Jacky Chou
0 siblings, 0 replies; 3+ messages in thread
From: Jacky Chou @ 2025-11-20 3:20 UTC (permalink / raw)
To: Conor Dooley
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Joel Stanley, Andrew Jeffery, Andrew Jeffery,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Hi Conor Dooley,
Thank your for your reply.
> > The ASPEED AST2600 MDIO controller is the third iteration of ASPEED's
> MDIO
> > bus register interface, this time also separating out the controller from
> the
> > MAC.
> > + The ASPEED AST2700 MDIO controller is similar to the AST2600's.
>
> This statement disagrees with your commit message that claims functionally
> identical, and implies that the 2700 supports some extra features or whatever.
> I think I'd drop this entirely from the patch, rather than try to reword it.
> Remove it and then:
> Acked-by: Conor Dooley <conor.dooley@microchip.com>
> pw-bot: changes-requested
>
Agreed.
I will remove this description in next version.
Thanks,
Jacky
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-20 3:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 7:30 [PATCH net-next] dt-bindings: net: aspeed: add AST2700 MDIO compatible Jacky Chou
2025-11-19 18:41 ` Conor Dooley
2025-11-20 3:20 ` Jacky Chou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox