[PATCH 1/4] dt-bindings: mfd: aspeed: support for AST2700

From: Ryan Chen
Date: Thu Aug 08 2024 - 04:00:17 EST


Add compatible support for AST2700 clk, reset, pinctrl, silicon-id
and example for AST2700 scu.

Signed-off-by: Ryan Chen <ryan_chen@xxxxxxxxxxxxxx>
---
.../bindings/mfd/aspeed,ast2x00-scu.yaml | 31 +++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
index 86ee69c0f45b..c0965f08ae8c 100644
--- a/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
+++ b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml
@@ -21,6 +21,8 @@ properties:
- aspeed,ast2400-scu
- aspeed,ast2500-scu
- aspeed,ast2600-scu
+ - aspeed,ast2700-scu0
+ - aspeed,ast2700-scu1
- const: syscon
- const: simple-mfd

@@ -30,10 +32,12 @@ properties:
ranges: true

'#address-cells':
- const: 1
+ minimum: 1
+ maximum: 2

'#size-cells':
- const: 1
+ minimum: 1
+ maximum: 2

'#clock-cells':
const: 1
@@ -56,6 +60,8 @@ patternProperties:
- aspeed,ast2400-pinctrl
- aspeed,ast2500-pinctrl
- aspeed,ast2600-pinctrl
+ - aspeed,ast2700-soc0-pinctrl
+ - aspeed,ast2700-soc1-pinctrl

required:
- compatible
@@ -76,6 +82,7 @@ patternProperties:
- aspeed,ast2400-silicon-id
- aspeed,ast2500-silicon-id
- aspeed,ast2600-silicon-id
+ - aspeed,ast2700-silicon-id
- const: aspeed,silicon-id

reg:
@@ -115,4 +122,24 @@ examples:
reg = <0x7c 0x4>, <0x150 0x8>;
};
};
+ - |
+ soc0 {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ syscon@12c02000 {
+ compatible = "aspeed,ast2700-scu0", "syscon", "simple-mfd";
+ reg = <0x0 0x12c02000 0x0 0x1000>;
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x0 0x0 0 0x12c02000 0 0x1000>;
+
+ silicon-id@0 {
+ compatible = "aspeed,ast2700-silicon-id", "aspeed,silicon-id";
+ reg = <0x0 0x0 0x0 0x4>;
+ };
+ };
+ };
...
--
2.34.1