[PATCH net-next v7 2/7] dt-bindings: net: ftgmac100: Add AST2700 compatible
From: Jacky Chou
Date: Thu Nov 19 2026 - 04:33:11 EST
Add AST2700 to the FTGMAC100 compatible list and document that its
RMII RCLK gate matches the earlier Aspeed SoCs. Allow the reset line
for AST2700 as it follows the same reset requirements as AST2600.
Require exactly one of "phy-mode" or "use-ncsi" in the device tree
when the AST2700 compatible is used. The driver only enforces
"phy-mode" when NC-SI is not in use: ftgmac100_probe_dt() takes the
NC-SI path before ftgmac100_mii_probe(), where the AST2700 phy-mode
check lives, is ever reached. Requiring "phy-mode" unconditionally
would have rejected the valid use-ncsi configuration shown in this
file's own first example.
Add aspeed,ast2700-mac as a standalone compatible, consistent with
the other Aspeed compatibles.
Extend the per-compatible clocks/clock-names validation to also cover
AST2700, since it shares the same one-or-two-clock layout as
AST2500/2600.
Acked-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
Signed-off-by: Jacky Chou <jacky_chou@xxxxxxxxxxxxxx>
---
.../devicetree/bindings/net/faraday,ftgmac100.yaml | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
index 9d352e3686aa..95f4993939cf 100644
--- a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
+++ b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml
@@ -16,6 +16,7 @@ properties:
- aspeed,ast2400-mac
- aspeed,ast2500-mac
- aspeed,ast2600-mac
+ - aspeed,ast2700-mac
reg:
maxItems: 1
@@ -27,7 +28,7 @@ properties:
minItems: 1
items:
- description: MAC IP clock
- - description: RMII RCLK gate for AST2500/2600
+ - description: RMII RCLK gate for AST2500/2600/2700
resets:
maxItems: 1
@@ -79,12 +80,24 @@ allOf:
contains:
enum:
- aspeed,ast2600-mac
+ - aspeed,ast2700-mac
then:
properties:
resets: true
else:
properties:
resets: false
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: aspeed,ast2700-mac
+ then:
+ oneOf:
+ - required:
+ - phy-mode
+ - required:
+ - use-ncsi
- if:
properties:
compatible:
@@ -105,6 +118,7 @@ allOf:
enum:
- aspeed,ast2500-mac
- aspeed,ast2600-mac
+ - aspeed,ast2700-mac
then:
properties:
clocks:
@@ -124,6 +138,7 @@ allOf:
- aspeed,ast2400-mac
- aspeed,ast2500-mac
- aspeed,ast2600-mac
+ - aspeed,ast2700-mac
then:
properties:
clocks: false
--
2.34.1