Skip to contentSkip to conversation

dt-bindings: interrupt-controller: Convert aspeed,ast2xxx-scu-ic to DT schema

PATCH In review Rob Herring (Arm) 2 participants 3 messages May 5, 2025 – May 14, 2025

Subsystems (6)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: interrupt-controller: Convert aspeed,ast2xxx-scu-ic to DT schema

Convert the Aspeed SCU interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller.

---
 .../aspeed,ast2500-scu-ic.yaml                | 48 +++++++++++++++++++
 .../aspeed,ast2xxx-scu-ic.txt                 | 23 ---------
 .../bindings/mfd/aspeed,ast2x00-scu.yaml      |  9 +++-
 MAINTAINERS                                   |  2 +-
 4 files changed, 57 insertions(+), 25 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2500-scu-ic.yaml
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2500-scu-ic.yaml new file +48 -0
new file mode 100644
index 000000000000..d5287a2bf866
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright 2025 Eddie James
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/aspeed,ast2500-scu-ic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Aspeed AST25XX and AST26XX SCU Interrupt Controller
+
+maintainers:
+  - Eddie James <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - aspeed,ast2500-scu-ic
+      - aspeed,ast2600-scu-ic0
+      - aspeed,ast2600-scu-ic1
+
+  reg:
+    maxItems: 1
+
+  '#interrupt-cells':
+    const: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller: true
+
+required:
+  - compatible
+  - reg
+  - '#interrupt-cells'
+  - interrupts
+  - interrupt-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller@18 {
+        compatible = "aspeed,ast2500-scu-ic";
+        reg = <0x18 0x4>;
+        #interrupt-cells = <1>;
+        interrupts = <21>;
+        interrupt-controller;
+    };
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt deleted +0 -23
deleted file mode 100644
index 251ed44171db..000000000000
@@ -1,23 +0,0 @@
-Aspeed AST25XX and AST26XX SCU Interrupt Controller
-
-Required Properties:
- - #interrupt-cells		: must be 1
- - compatible			: must be "aspeed,ast2500-scu-ic",
-				  "aspeed,ast2600-scu-ic0" or
-				  "aspeed,ast2600-scu-ic1"
- - interrupts			: interrupt from the parent controller
- - interrupt-controller		: indicates that the controller receives and
-				  fires new interrupts for child busses
-
-Example:
-
-    syscon@1e6e2000 {
-        ranges = <0 0x1e6e2000 0x1a8>;
-
-        scu_ic: interrupt-controller@18 {
-            #interrupt-cells = <1>;
-            compatible = "aspeed,ast2500-scu-ic";
-            interrupts = <21>;
-            interrupt-controller;
-        };
-    };
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +8 -1
index c800d5e53b65..12986ebe7ec7 100644
@@ -48,8 +48,15 @@ properties:
 
 patternProperties:
   '^p2a-control@[0-9a-f]+$':
-    description: See Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt
     type: object
+    additionalProperties: true
+    properties:
+      compatible:
+        contains:
+          enum:
+            - aspeed,ast2500-scu-ic
+            - aspeed,ast2600-scu-ic0
+            - aspeed,ast2600-scu-ic1
 
   '^pinctrl(@[0-9a-f]+)?$':
     type: object
MAINTAINERS +1 -1
index 9e37f0c14496..a792c5495d15 100644
@@ -3577,7 +3577,7 @@ ASPEED SCU INTERRUPT CONTROLLER DRIVER
 M:	Eddie James <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
 S:	Maintained
-F:	Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt
+F:	Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2500-scu-ic.yaml
 F:	drivers/irqchip/irq-aspeed-scu-ic.c
 F:	include/dt-bindings/interrupt-controller/aspeed-scu-ic.h
 
Signature · 1 line
2.47.2
maintainer
#1 lore raw

Hi Rob,

Thanks for the conversion. One comment below:

Quoted 125 lines · Rob Herring (Arm)

Convert the Aspeed SCU interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller.

---
 .../aspeed,ast2500-scu-ic.yaml                | 48
+++++++++++++++++++
 .../aspeed,ast2xxx-scu-ic.txt                 | 23 --------- .../bindings/mfd/aspeed,ast2x00-scu.yaml      |  9 +++- MAINTAINERS                                   |  2 +-

 4 files changed, 57 insertions(+), 25 deletions(-)

 create mode 100644 Documentation/devicetree/bindings/interrupt- controller/aspeed,ast2500-scu-ic.yaml
 delete mode 100644 Documentation/devicetree/bindings/interrupt- controller/aspeed,ast2xxx-scu-ic.txt

(quoted diff) +0 -0

controller/aspeed,ast2500-scu-ic.yaml
b/Documentation/devicetree/bindings/interrupt-
controller/aspeed,ast2500-scu-ic.yaml
new file mode 100644
index 000000000000..d5287a2bf866

Documentation/devicetree/bindings/interrupt- new file +0 -0

controller/aspeed,ast2500-scu-ic.yaml

Documentation/devicetree/bindings/interrupt- new file +5 -0
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright 2025 Eddie James
+%YAML 1.2
+---
+$id:

http://devicetree.org/schemas/interrupt-controller/aspeed,ast2500-scu-ic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

Documentation/devicetree/bindings/interrupt- new file +42 -0
+
+title: Aspeed AST25XX and AST26XX SCU Interrupt Controller
+
+maintainers:
+  - Eddie James <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - aspeed,ast2500-scu-ic
+      - aspeed,ast2600-scu-ic0
+      - aspeed,ast2600-scu-ic1
+
+  reg:
+    maxItems: 1
+
+  '#interrupt-cells':
+    const: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller: true
+
+required:
+  - compatible
+  - reg
+  - '#interrupt-cells'
+  - interrupts
+  - interrupt-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller@18 {
+        compatible = "aspeed,ast2500-scu-ic";
+        reg = <0x18 0x4>;
+        #interrupt-cells = <1>;
+        interrupts = <21>;
+        interrupt-controller;
+    };
(quoted diff) +0 -0

controller/aspeed,ast2xxx-scu-ic.txt b/Documentation/devicetree/bindings/interrupt- controller/aspeed,ast2xxx-scu-ic.txt deleted file mode 100644
index 251ed44171db..000000000000
--- a/Documentation/devicetree/bindings/interrupt- controller/aspeed,ast2xxx-scu-ic.txt
+++ /dev/null

Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt deleted +0 -8
@@ -1,23 +0,0 @@
-Aspeed AST25XX and AST26XX SCU Interrupt Controller
-
-Required Properties:
- - #interrupt-cells            : must be 1
- - compatible                  : must be "aspeed,ast2500-scu-ic",
-                                 "aspeed,ast2600-scu-ic0" or
-                                 "aspeed,ast2600-scu-ic1"
- - interrupts                  : interrupt from the parent

controller
- - interrupt-controller                : indicates that the controller receives and
-                                 fires new interrupts for child busses

Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt deleted +0 -13
-
-Example:
-
-    syscon@1e6e2000 {
-        ranges = <0 0x1e6e2000 0x1a8>;
-
-        scu_ic: interrupt-controller@18 {
-            #interrupt-cells = <1>;
-            compatible = "aspeed,ast2500-scu-ic";
-            interrupts = <21>;
-            interrupt-controller;
-        };
-    };
(quoted diff) +0 -0

scu.yaml b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00- scu.yaml
index c800d5e53b65..12986ebe7ec7 100644

Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +0 -0
@@ -48,8 +48,15 @@ properties:


 patternProperties:
   '^p2a-control@[0-9a-f]+$':
-    description: See Documentation/devicetree/bindings/misc/aspeed- p2a-ctrl.txt
     type: object

Quoted 8 lines

+    additionalProperties: true
+    properties:
+      compatible:
+        contains:
+          enum:
+            - aspeed,ast2500-scu-ic
+            - aspeed,ast2600-scu-ic0
+            - aspeed,ast2600-scu-ic1

This change should be done on the interrupt-controller pattern property node rather than the p2a-controller node.

Andrew

author maintainer
#2 lore raw
Quoted 126 lines · Andrew Jeffery

Hi Rob,

Thanks for the conversion. One comment below:

Quoted 120 lines · Rob Herring (Arm)

Convert the Aspeed SCU interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller.

---
 .../aspeed,ast2500-scu-ic.yaml                | 48
+++++++++++++++++++
 .../aspeed,ast2xxx-scu-ic.txt                 | 23 ---------
 .../bindings/mfd/aspeed,ast2x00-scu.yaml      |  9 +++-
 MAINTAINERS                                   |  2 +-
 4 files changed, 57 insertions(+), 25 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-
controller/aspeed,ast2500-scu-ic.yaml
 delete mode 100644 Documentation/devicetree/bindings/interrupt-

controller/aspeed,ast2xxx-scu-ic.txt

(quoted diff) +0 -0

controller/aspeed,ast2500-scu-ic.yaml
b/Documentation/devicetree/bindings/interrupt-
controller/aspeed,ast2500-scu-ic.yaml
new file mode 100644
index 000000000000..d5287a2bf866

Documentation/devicetree/bindings/interrupt- new file +0 -0

controller/aspeed,ast2500-scu-ic.yaml

Documentation/devicetree/bindings/interrupt- new file +5 -0
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright 2025 Eddie James
+%YAML 1.2
+---
+$id:

http://devicetree.org/schemas/interrupt-controller/aspeed,ast2500-scu-ic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#

Documentation/devicetree/bindings/interrupt- new file +42 -0
+
+title: Aspeed AST25XX and AST26XX SCU Interrupt Controller
+
+maintainers:
+  - Eddie James <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - aspeed,ast2500-scu-ic
+      - aspeed,ast2600-scu-ic0
+      - aspeed,ast2600-scu-ic1
+
+  reg:
+    maxItems: 1
+
+  '#interrupt-cells':
+    const: 1
+
+  interrupts:
+    maxItems: 1
+
+  interrupt-controller: true
+
+required:
+  - compatible
+  - reg
+  - '#interrupt-cells'
+  - interrupts
+  - interrupt-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller@18 {
+        compatible = "aspeed,ast2500-scu-ic";
+        reg = <0x18 0x4>;
+        #interrupt-cells = <1>;
+        interrupts = <21>;
+        interrupt-controller;
+    };
(quoted diff) +0 -0

controller/aspeed,ast2xxx-scu-ic.txt b/Documentation/devicetree/bindings/interrupt- controller/aspeed,ast2xxx-scu-ic.txt deleted file mode 100644
index 251ed44171db..000000000000
--- a/Documentation/devicetree/bindings/interrupt- controller/aspeed,ast2xxx-scu-ic.txt
+++ /dev/null

Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt deleted +0 -8
@@ -1,23 +0,0 @@
-Aspeed AST25XX and AST26XX SCU Interrupt Controller
-
-Required Properties:
- - #interrupt-cells            : must be 1
- - compatible                  : must be "aspeed,ast2500-scu-ic",
-                                 "aspeed,ast2600-scu-ic0" or
-                                 "aspeed,ast2600-scu-ic1"
- - interrupts                  : interrupt from the parent

controller
- - interrupt-controller : indicates that the
controller receives and
- fires new interrupts for child
busses

Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2xxx-scu-ic.txt deleted +0 -13
-
-Example:
-
-    syscon@1e6e2000 {
-        ranges = <0 0x1e6e2000 0x1a8>;
-
-        scu_ic: interrupt-controller@18 {
-            #interrupt-cells = <1>;
-            compatible = "aspeed,ast2500-scu-ic";
-            interrupts = <21>;
-            interrupt-controller;
-        };
-    };
(quoted diff) +0 -0

scu.yaml b/Documentation/devicetree/bindings/mfd/aspeed,ast2x00- scu.yaml
index c800d5e53b65..12986ebe7ec7 100644

Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +0 -0
@@ -48,8 +48,15 @@ properties:
 
Quoted 16 lines

Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml properties: · line 59

Quoted 13 lines
Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +0 -1
 patternProperties:
   '^p2a-control@[0-9a-f]+$':
-    description: See Documentation/devicetree/bindings/misc/aspeed-

p2a-ctrl.txt
type: object

Documentation/devicetree/bindings/mfd/aspeed,ast2x00-scu.yaml +8 -0
+    additionalProperties: true
+    properties:
+      compatible:
+        contains:
+          enum:
+            - aspeed,ast2500-scu-ic
+            - aspeed,ast2600-scu-ic0
+            - aspeed,ast2600-scu-ic1

This change should be done on the interrupt-controller pattern property node rather than the p2a-controller node.

Indeed, I fixed it up when applying.

Rob