Skip to contentSkip to conversation

dt-bindings: interrupt-controller: Add fsl,icoll.yaml

PATCH Superseded Frank Li 2 participants 2 messages May 23, 2025 – May 27, 2025

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: interrupt-controller: Add fsl,icoll.yaml

Add fsl,icoll.yaml for i.MX23 and i.MX28.

---
 .../interrupt-controller/fsl,icoll.yaml       | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml
Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml new file +45 -0
new file mode 100644
index 0000000000000..7b09fd7d588f2
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/fsl,icoll.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale MXS icoll Interrupt controller
+
+maintainers:
+  - Frank Li <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - enum:
+              - fsl,imx23-icoll
+              - fsl,imx28-icoll
+          - const: fsl,icoll
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupt-controller
+  - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller@80000000 {
+        compatible = "fsl,imx28-icoll", "fsl,icoll";
+        reg = <0x80000000 0x2000>;
+        interrupt-controller;
+        #interrupt-cells = <1>;
+    };
+
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 23 lines · Frank Li

Add fsl,icoll.yaml for i.MX23 and i.MX28.

---
 .../interrupt-controller/fsl,icoll.yaml       | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml
Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml new file +9 -0
new file mode 100644
index 0000000000000..7b09fd7d588f2
@@ -0,0 +1,45 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/fsl,icoll.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale MXS icoll Interrupt controller
+
+maintainers:

Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml line 19

Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml new file +10 -0
+  - Frank Li <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - enum:
+              - fsl,imx23-icoll
+              - fsl,imx28-icoll
+          - const: fsl,icoll

Given this generic fallback, that would likely not be approved if this were actually what it is presented as (a binding for some new device), is only acceptable because it is already in use and this is some 15 year old device, you should state pretty clearly in your commit message. With it pointed out,

Quoted 29 lines
Documentation/devicetree/bindings/interrupt-controller/fsl,icoll.yaml new file +26 -0
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 1
+
+required:
+  - compatible
+  - reg
+  - interrupt-controller
+  - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    interrupt-controller@80000000 {
+        compatible = "fsl,imx28-icoll", "fsl,icoll";
+        reg = <0x80000000 0x2000>;
+        interrupt-controller;
+        #interrupt-cells = <1>;
+    };
+
Signature · 1 line
2.34.1