[PATCH RFC 07/19] dt-bindings: timer: Add Espressif ESP32-P4 CLINT

From: Vítor Hugo Silva

Date: Wed Nov 25 2026 - 18:31:20 EST


Document the ESP32-P4 CLINT compatible and its machine-mode software
and timer interrupts routed to the CLIC. Add an example showing both
interrupt specifiers.

AI assisted with drafting the binding.

Signed-off-by: Vítor Hugo Silva <vitorhg20080@xxxxxxxxx>
---
.../bindings/timer/sifive,clint.yaml | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml
index d53f52e80d88..e6d08a4ff702 100644
--- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml
+++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml
@@ -27,6 +27,7 @@ description:
properties:
compatible:
oneOf:
+ - const: esp,esp32p4-clint
- items:
- enum:
- canaan,k210-clint # Canaan Kendryte K210
@@ -74,6 +75,17 @@ properties:
minItems: 1
maxItems: 4095

+if:
+ properties:
+ compatible:
+ const: esp,esp32p4-clint
+then:
+ properties:
+ interrupts-extended:
+ items:
+ - description: Machine-mode software interrupt
+ - description: Machine-mode timer interrupt
+
additionalProperties: false

required:
@@ -91,4 +103,20 @@ examples:
<&cpu4intc 3>, <&cpu4intc 7>;
reg = <0x2000000 0x10000>;
};
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ timer@20000000 {
+ compatible = "esp,esp32p4-clint";
+ reg = <0x20000000 0x10000>;
+ interrupts-extended = <&clic 3 IRQ_TYPE_LEVEL_HIGH>,
+ <&clic 7 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
+ clic: interrupt-controller@20800000 {
+ compatible = "esp,esp32p4-clic";
+ reg = <0x20800000 0x10000>;
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ };
...
--
2.56.1