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

From: Vítor Hugo Silva

Date: Wed Nov 25 2026 - 18:30:52 EST


Describe the memory-mapped core-local interrupt controller on the ESP32-P4.
Define its two-cell interrupt specifier as the CLIC interrupt number and
trigger type.

AI assisted with drafting the schema.

Signed-off-by: Vítor Hugo Silva <vitorhg20080@xxxxxxxxx>
---
.../esp,esp32p4-clic.yaml | 53 +++++++++++++++++++
1 file changed, 53 insertions(+)
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-clic.yaml

diff --git a/Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-clic.yaml b/Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-clic.yaml
new file mode 100644
index 000000000000..2ef36e4e4019
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/esp,esp32p4-clic.yaml
@@ -0,0 +1,53 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/esp,esp32p4-clic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Espressif ESP32-P4 Core-Local Interrupt Controller
+
+maintainers:
+ - Vítor Hugo Silva <vitorhg20080@xxxxxxxxx>
+
+description:
+ Each high-performance RISC-V core has a CLIC that receives the local
+ software and timer interrupts and interrupts from the interrupt matrix.
+
+properties:
+ compatible:
+ enum:
+ - esp,esp32p4-clic
+ - esp,esp32p4-v3-clic
+
+ reg:
+ maxItems: 1
+
+ interrupt-controller: true
+
+ '#interrupt-cells':
+ const: 2
+ description:
+ The first cell is the CLIC interrupt number. Interrupts 3 and 7 are
+ the local machine-mode software and timer interrupts, respectively.
+ Interrupts 16 through 47 are inputs from the interrupt matrix.
+
+ The second cell is the trigger type defined in
+ dt-bindings/interrupt-controller/irq.h. Use IRQ_TYPE_LEVEL_HIGH for
+ the local CLINT interrupts and for signals from the interrupt matrix.
+
+required:
+ - compatible
+ - reg
+ - interrupt-controller
+ - '#interrupt-cells'
+
+additionalProperties: false
+
+examples:
+ - |
+ interrupt-controller@20800000 {
+ compatible = "esp,esp32p4-clic";
+ reg = <0x20800000 0x10000>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
--
2.56.1