SiFive Core Local Interruptor
Schema identifier ($id): "http://devicetree.org/schemas/timer/sifive,clint.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Palmer Dabbelt <palmer@dabbelt.com>", "Anup Patel <anup.patel@wdc.com>"
SiFive (and other RISC-V) SOCs include an implementation of the SiFive Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor interrupts. It directly connects to the timer and inter-processor interrupt lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local interrupt controller is the parent interrupt controller for CLINT device. The clock frequency of CLINT is specified via "timebase-frequency" DT property of "/cpus" DT node. The "timebase-frequency" DT property is described in Documentation/devicetree/bindings/riscv/cpus.yaml T-Head C906/C910 CPU cores include an implementation of CLINT too, however their implementation lacks a memory-mapped MTIME register, thus not compatible with SiFive ones.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"canaan,k210-clint","eswin,eic7700-clint","sifive,fu540-c000-clint","spacemit,k1-clint","spacemit,k3-clint","starfive,jh7100-clint","starfive,jh7110-clint","starfive,jh8100-clint","tenstorrent,blackhole-clint"Item 2
Exact value (
const):"sifive,clint0"
Rule 2
Array item rules (
items)Item 1
This rule adds no constraints.
Item 2
Exact value (
const):"sifive,clint2"SiFive CLINT v2 is the HRT that supports the Zicntr. The control of sifive,clint2 differs from that of sifive,clint0, making them incompatible.
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun20i-d1-clint","sophgo,cv1800b-clint","sophgo,cv1812h-clint","sophgo,sg2002-clint","thead,th1520-clint"Item 2
Exact value (
const):"thead,c900-clint"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"sifive,clint0"Item 2
Exact value (
const):"riscv,clint0"Deprecated (
deprecated):trueFor the QEMU virt machine only
Should be "<vendor>,<chip>-clint", followed by "sifive,clint<version>" when compatible with a SiFive CLINT. Please refer to sifive-blocks-ip-versioning.txt for details regarding the latter.
reg — required here #
Maximum number of items (maxItems): 1
interrupts-extended — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4095
sifive,fine-ctr-bits — not listed as required here #
Maximum value (maximum): 15
The width in bits of the fine counter.
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"sifive,clint2"
When the condition matches (then) #
When the condition does not match (else) #
Properties and child nodes (
properties) #
sifive,fine-ctr-bits— not listed as required here #
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts-extended"
Examples (examples) #
timer@2000000 {
compatible = "sifive,fu540-c000-clint", "sifive,clint0";
interrupts-extended = <&cpu1intc 3>, <&cpu1intc 7>,
<&cpu2intc 3>, <&cpu2intc 7>,
<&cpu3intc 3>, <&cpu3intc 7>,
<&cpu4intc 3>, <&cpu4intc 7>;
reg = <0x2000000 0x10000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 32: Canaan Kendryte K210
Line 33: ESWIN EIC7700
Line 34: SiFive FU540
Line 35: SpacemiT K1
Line 36: SpacemiT K3
Line 37: StarFive JH7100
Line 38: StarFive JH7110
Line 39: StarFive JH8100
Line 40: Tenstorrent Blackhole
Line 41: SiFive CLINT v0 IP block
Line 44: SiFive CLINT v2 IP block