]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: net: aspeed: add AST2700 MDIO compatible
authorJacky Chou <jacky_chou@aspeedtech.com>
Thu, 20 Nov 2025 03:52:03 +0000 (11:52 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Nov 2025 11:11:47 +0000 (12:11 +0100)
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.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Link: https://patch.msgid.link/20251120-aspeed_mdio_ast2700-v2-1-0d722bfb2c54@aspeedtech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/devicetree/bindings/net/aspeed,ast2600-mdio.yaml

index d6ef468495c5eeb8aade2604e3eddd2cfa82e7b2..a105dc07ed125d729d8cb7f2ec3cdbb8c81c2ba6 100644 (file)
@@ -19,7 +19,12 @@ allOf:
 
 properties:
   compatible:
-    const: aspeed,ast2600-mdio
+    oneOf:
+      - const: aspeed,ast2600-mdio
+      - items:
+          - enum:
+              - aspeed,ast2700-mdio
+          - const: aspeed,ast2600-mdio
 
   reg:
     maxItems: 1