Skip to contentSkip to conversation

dt-bindings: interrupt-controller: Convert cdns,xtensa-{mx,pic} to DT schema

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

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: interrupt-controller: Convert cdns,xtensa-{mx,pic} to DT schema

Convert the Xtensa interrupt controller bindings to DT schema. Both only vary by the compatible string, so combine them into 1 schema doc.

---
 .../interrupt-controller/cdns,xtensa-mx.txt   | 18 -------
 .../interrupt-controller/cdns,xtensa-pic.txt  | 25 ----------
 .../interrupt-controller/cdns,xtensa-pic.yaml | 50 +++++++++++++++++++
 3 files changed, 50 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.yaml
Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt deleted +0 -18
deleted file mode 100644
index d4de980e55fa..000000000000
@@ -1,18 +0,0 @@
-* Xtensa Interrupt Distributor and Programmable Interrupt Controller (MX)
-
-Required properties:
-- compatible: Should be "cdns,xtensa-mx".
-
-Remaining properties have exact same meaning as in Xtensa PIC
-(see cdns,xtensa-pic.txt).
-
-Examples:
-	pic: pic {
-		compatible = "cdns,xtensa-mx";
-		/* one cell: internal irq number,
-		 * two cells: second cell == 0: internal irq number
-		 *            second cell == 1: external irq number
-		 */
-		#interrupt-cells = <2>;
-		interrupt-controller;
-	};
Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt deleted +0 -25
deleted file mode 100644
index 026ef4cfc1d5..000000000000
@@ -1,25 +0,0 @@
-* Xtensa built-in Programmable Interrupt Controller (PIC)
-
-Required properties:
-- compatible: Should be "cdns,xtensa-pic".
-- interrupt-controller: Identifies the node as an interrupt controller.
-- #interrupt-cells: The number of cells to define the interrupts.
-  It may be either 1 or 2.
-  When it's 1, the first cell is the internal IRQ number.
-  When it's 2, the first cell is the IRQ number, and the second cell
-  specifies whether it's internal (0) or external (1).
-  Periferals are usually connected to a fixed external IRQ, but for different
-  core variants it may be mapped to different internal IRQ.
-  IRQ sensitivity and priority are fixed for each core variant and may not be
-  changed at runtime.
-
-Examples:
-	pic: pic {
-		compatible = "cdns,xtensa-pic";
-		/* one cell: internal irq number,
-		 * two cells: second cell == 0: internal irq number
-		 *            second cell == 1: external irq number
-		 */
-		#interrupt-cells = <2>;
-		interrupt-controller;
-	};
Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.yaml new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.47.2
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rob Herring (Arm)

Convert the Xtensa interrupt controller bindings to DT schema. Both only vary by the compatible string, so combine them into 1 schema doc.

Quoted 8 lines
---
 .../interrupt-controller/cdns,xtensa-mx.txt   | 18 -------
 .../interrupt-controller/cdns,xtensa-pic.txt  | 25 ----------
 .../interrupt-controller/cdns,xtensa-pic.yaml | 50 +++++++++++++++++++
 3 files changed, 50 insertions(+), 43 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-mx.txt
 delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.txt
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cdns,xtensa-pic.yaml
Signature · 2 lines
Thanks.
-- Max