Skip to content

Commit 0f92069

Browse files
nick650823dlezcano
authored andcommitted
dt-bindings: timer: Add SiFive CLINT2
Add compatible string and property for the SiFive CLINT v2. The SiFive CLINT v2 is incompatible with the SiFive CLINT v0 due to differences in their control methods. Signed-off-by: Nick Hu <[email protected]> Reviewed-by: Samuel Holland <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 96bf4b8 commit 0f92069

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Documentation/devicetree/bindings/timer/sifive,clint.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ properties:
3636
- starfive,jh7110-clint # StarFive JH7110
3737
- starfive,jh8100-clint # StarFive JH8100
3838
- const: sifive,clint0 # SiFive CLINT v0 IP block
39+
- items:
40+
- {}
41+
- const: sifive,clint2 # SiFive CLINT v2 IP block
42+
description:
43+
SiFive CLINT v2 is the HRT that supports the Zicntr. The control of sifive,clint2
44+
differs from that of sifive,clint0, making them incompatible.
3945
- items:
4046
- enum:
4147
- allwinner,sun20i-d1-clint
@@ -62,6 +68,22 @@ properties:
6268
minItems: 1
6369
maxItems: 4095
6470

71+
sifive,fine-ctr-bits:
72+
maximum: 15
73+
description: The width in bits of the fine counter.
74+
75+
if:
76+
properties:
77+
compatible:
78+
contains:
79+
const: sifive,clint2
80+
then:
81+
required:
82+
- sifive,fine-ctr-bits
83+
else:
84+
properties:
85+
sifive,fine-ctr-bits: false
86+
6587
additionalProperties: false
6688

6789
required:

0 commit comments

Comments
 (0)