Skip to contentSkip to conversation

dt-bindings: interrupt-controller: migrate MIPS CPU interrupt controller text bindings to YAML

PATCH Applied Sergio Paracuellos 3 participants 3 messages Sep 21, 2022 – Sep 26, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dt-bindings: interrupt-controller: migrate MIPS CPU interrupt controller text bindings to YAML

MIPS CPU interrupt controller bindings used text format, so migrate them to YAML.

---
Changes in v3:
- Remmove 'bindings' keyword from title.
- Put 'compatible' the first also in node sample.

Changes in v2:
- Address review comment from Krzysztof:
- Rebase onto last kernel version.
- Add Thomas Bogendoerfer as maintainer since this is arch stuff.
- Change compatible to go first as property and required.
- Change sample node name to be generic. Use 'interrupt-controller'.

 .../mti,cpu-interrupt-controller.yaml         | 46 ++++++++++++++++++
 .../devicetree/bindings/mips/cpu_irq.txt      | 47 -------------------
 2 files changed, 46 insertions(+), 47 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mti,cpu-interrupt-controller.yaml
 delete mode 100644 Documentation/devicetree/bindings/mips/cpu_irq.txt
Documentation/devicetree/bindings/interrupt-controller/mti,cpu-interrupt-controller.yaml new file +46 -0
new file mode 100644
index 000000000000..46a1f5f54b74
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/mti,cpu-interrupt-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MIPS CPU Interrupt Controller
+
+description: >
+   On MIPS the mips_cpu_irq_of_init() helper can be used to initialize the 8 CPU
+   IRQs from a devicetree file and create a irq_domain for IRQ controller.
+
+   With the irq_domain in place we can describe how the 8 IRQs are wired to the
+   platforms internal interrupt controller cascade.
+
+maintainers:
+  - Thomas Bogendoerfer <[email protected]>
+
+properties:
+  compatible:
+    const: mti,cpu-interrupt-controller
+
+  '#interrupt-cells':
+    const: 1
+
+  '#address-cells':
+    const: 0
+
+  interrupt-controller: true
+
+additionalProperties: false
+
+required:
+  - compatible
+  - '#interrupt-cells'
+  - '#address-cells'
+  - interrupt-controller
+
+examples:
+  - |
+    interrupt-controller {
+      compatible = "mti,cpu-interrupt-controller";
+      #address-cells = <0>;
+      #interrupt-cells = <1>;
+      interrupt-controller;
+    };
Documentation/devicetree/bindings/mips/cpu_irq.txt deleted +0 -47

47 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer Applied
#2 lore raw
In reply to Sergio Paracuellos
Quoted 16 lines · Sergio Paracuellos

MIPS CPU interrupt controller bindings used text format, so migrate them to YAML.

---
Changes in v3:
- Remmove 'bindings' keyword from title.
- Put 'compatible' the first also in node sample.

Changes in v2:
- Address review comment from Krzysztof:
- Rebase onto last kernel version.
- Add Thomas Bogendoerfer as maintainer since this is arch stuff.
- Change compatible to go first as property and required.
- Change sample node name to be generic. Use 'interrupt-controller'.

Quoted 6 lines
 .../mti,cpu-interrupt-controller.yaml         | 46 ++++++++++++++++++
 .../devicetree/bindings/mips/cpu_irq.txt      | 47 -------------------
 2 files changed, 46 insertions(+), 47 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mti,cpu-interrupt-controller.yaml
 delete mode 100644 Documentation/devicetree/bindings/mips/cpu_irq.txt

Applied, thanks!