xref: /linux/Documentation/devicetree/bindings/timer/sifive,clint.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/timer/sifive,clint.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: SiFive Core Local Interruptor
8
9maintainers:
10  - Palmer Dabbelt <palmer@dabbelt.com>
11  - Anup Patel <anup.patel@wdc.com>
12
13description:
14  SiFive (and other RISC-V) SOCs include an implementation of the SiFive
15  Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor
16  interrupts. It directly connects to the timer and inter-processor interrupt
17  lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local
18  interrupt controller is the parent interrupt controller for CLINT device.
19  The clock frequency of CLINT is specified via "timebase-frequency" DT
20  property of "/cpus" DT node. The "timebase-frequency" DT property is
21  described in Documentation/devicetree/bindings/riscv/cpus.yaml
22
23  T-Head C906/C910 CPU cores include an implementation of CLINT too, however
24  their implementation lacks a memory-mapped MTIME register, thus not
25  compatible with SiFive ones.
26
27properties:
28  compatible:
29    oneOf:
30      - items:
31          - enum:
32              - canaan,k210-clint       # Canaan Kendryte K210
33              - eswin,eic7700-clint     # ESWIN EIC7700
34              - microchip,pic64gx-clint # Microchip PIC64GX
35              - sifive,fu540-c000-clint # SiFive FU540
36              - spacemit,k1-clint       # SpacemiT K1
37              - spacemit,k3-clint       # SpacemiT K3
38              - starfive,jh7100-clint   # StarFive JH7100
39              - starfive,jh7110-clint   # StarFive JH7110
40              - starfive,jh8100-clint   # StarFive JH8100
41              - starfive,jhb100-clint   # StarFive JHB100
42              - tenstorrent,blackhole-clint # Tenstorrent Blackhole
43          - const: sifive,clint0        # SiFive CLINT v0 IP block
44      - items:
45          - {}
46          - const: sifive,clint2        # SiFive CLINT v2 IP block
47        description:
48          SiFive CLINT v2 is the HRT that supports the Zicntr. The control of sifive,clint2
49          differs from that of sifive,clint0, making them incompatible.
50      - items:
51          - enum:
52              - allwinner,sun20i-d1-clint
53              - canaan,k230-clint
54              - sophgo,cv1800b-clint
55              - sophgo,cv1812h-clint
56              - sophgo,sg2000-clint
57              - sophgo,sg2002-clint
58              - thead,th1520-clint
59          - const: thead,c900-clint
60      - items:
61          - const: sifive,clint0
62          - const: riscv,clint0
63        deprecated: true
64        description: For the QEMU virt machine only
65
66    description:
67      Should be "<vendor>,<chip>-clint", followed by "sifive,clint<version>"
68      when compatible with a SiFive CLINT.  Please refer to
69      sifive-blocks-ip-versioning.txt for details regarding the latter.
70
71  reg:
72    maxItems: 1
73
74  interrupts-extended:
75    minItems: 1
76    maxItems: 4095
77
78additionalProperties: false
79
80required:
81  - compatible
82  - reg
83  - interrupts-extended
84
85examples:
86  - |
87    timer@2000000 {
88      compatible = "sifive,fu540-c000-clint", "sifive,clint0";
89      interrupts-extended = <&cpu1intc 3>, <&cpu1intc 7>,
90                            <&cpu2intc 3>, <&cpu2intc 7>,
91                            <&cpu3intc 3>, <&cpu3intc 7>,
92                            <&cpu4intc 3>, <&cpu4intc 7>;
93      reg = <0x2000000 0x10000>;
94    };
95...
96