[PATCH RFC 05/19] dt-bindings: interrupt-controller: Add Espressif ESP32-P4 interrupt matrix

Vítor Hugo Silva vitorhg20080 at gmail.com
Wed Nov 25 15:30:06 PST 2026


Describe the interrupt matrix that routes peripheral interrupt sources
to the CLIC. Define the interrupt parent and the two-cell specifier
for the peripheral source number and trigger type.

Tested on a Waveshare ESP32-P4-Module-DEV-KIT.

AI assisted with drafting and validating the binding.

Signed-off-by: Vítor Hugo Silva <vitorhg20080 at gmail.com>
---
 .../esp,esp32p4-intmtx.yaml                   | 67 +++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-intmtx.yaml

diff --git a/Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-intmtx.yaml b/Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-intmtx.yaml
new file mode 100644
index 000000000000..20f36c4f45da
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-intmtx.yaml
@@ -0,0 +1,67 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/esp,esp32p4-intmtx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Espressif ESP32-P4 High-Performance Interrupt Matrix
+
+maintainers:
+  - Vítor Hugo Silva <vitorhg20080 at gmail.com>
+
+description:
+  The high-performance interrupt matrix routes peripheral interrupt sources
+  to the external inputs of a high-performance core's CLIC. The matrix can
+  independently select the destination input for each peripheral source.
+  ESP32-P4 revision 3.x adds three interrupt routing registers.
+
+properties:
+  compatible:
+    enum:
+      - esp,esp32p4-intmtx
+      - esp,esp32p4-v3-intmtx
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+  '#interrupt-cells':
+    const: 2
+    description:
+      The first cell is the peripheral interrupt source number in the matrix.
+      The second cell is the trigger type as defined in
+      dt-bindings/interrupt-controller/irq.h.
+
+  '#address-cells':
+    const: 0
+
+  interrupt-parent:
+    description: Phandle to the CLIC that receives interrupts from this matrix.
+
+required:
+  - compatible
+  - reg
+  - interrupt-controller
+  - '#interrupt-cells'
+  - interrupt-parent
+
+additionalProperties: false
+
+examples:
+  - |
+    clic: interrupt-controller at 20800000 {
+        compatible = "esp,esp32p4-clic";
+        reg = <0x20800000 0x10000>;
+        interrupt-controller;
+        #interrupt-cells = <2>;
+    };
+
+    interrupt-controller at 500d6000 {
+        compatible = "esp,esp32p4-intmtx";
+        reg = <0x500d6000 0x400>;
+        interrupt-controller;
+        #interrupt-cells = <2>;
+        #address-cells = <0>;
+        interrupt-parent = <&clic>;
+    };
-- 
2.56.1




More information about the linux-riscv mailing list