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 "phy-mode" to be present in the device tree when the AST2700 compatible is used, matching the driver's probe-time requirement. 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. Signed-off-by: Jacky Chou --- .../devicetree/bindings/net/faraday,ftgmac100.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml b/Documentation/devicetree/bindings/net/faraday,ftgmac100.yaml index 9d352e3686aa..613d4f1caa4f 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,21 @@ 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: + required: + - phy-mode - if: properties: compatible: @@ -105,6 +115,7 @@ allOf: enum: - aspeed,ast2500-mac - aspeed,ast2600-mac + - aspeed,ast2700-mac then: properties: clocks: @@ -124,6 +135,7 @@ allOf: - aspeed,ast2400-mac - aspeed,ast2500-mac - aspeed,ast2600-mac + - aspeed,ast2700-mac then: properties: clocks: false -- 2.34.1