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

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


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 at gmail.com>
---
 .../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 at 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 at 20800000 {
+        compatible = "esp,esp32p4-clic";
+        reg = <0x20800000 0x10000>;
+        interrupt-controller;
+        #interrupt-cells = <2>;
+    };
 ...
-- 
2.56.1




More information about the linux-riscv mailing list