Skip to content

Commit 1edeb50

Browse files
committed
dt-binding: RISC-V local timer docs.
This patch adds documentation for the RISC-V local timer node which defines per-hart based timer interrupts. This is specified by RISC-V supervisor manual. Signed-off-by: Atish Patra <[email protected]>
1 parent f37675f commit 1edeb50

File tree

1 file changed

+35
-0
lines changed
  • Documentation/devicetree/bindings/riscv

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
* RISC-V local timer
2+
3+
RISC-V supervisor manual specifies that timer interrupt is connected to
4+
individual harts directly to minimize the interrupt latency. These per
5+
hart timer is connected via Hart Level Interrupt Controller (HLIC). The
6+
HLIC will also act as the interrupt parent for timer interrupt.
7+
8+
Required properties:
9+
10+
- compatible : "riscv,local-timer"
11+
- interrupts : Should be Timer interrupt number. Current supervisor manual
12+
defines it be 5.
13+
- interrupt-parent : Should point to local interrupt-controller phandle.
14+
15+
Example:
16+
cpus {
17+
#address-cells = <0x00000001>;
18+
..
19+
..
20+
cpu@0 {
21+
..
22+
..
23+
timer {
24+
interrupts = <0x00000005>;
25+
interrupt-parent = <0x00000004>;
26+
compatible = "riscv,local-timer";
27+
}
28+
interrupt-controller {
29+
..
30+
..
31+
compatible = "riscv,cpu-intc";
32+
linux,phandle = <0x00000004>;
33+
phandle = <0x00000004>;
34+
}
35+
}

0 commit comments

Comments
 (0)