Skip to content

Commit abd873a

Browse files
Icenowydlezcano
authored andcommitted
dt-bindings: timer: sifive,clint: add comaptibles for T-Head's C9xx
T-Head C906/C910 CLINT is not compliant to SiFive ones (and even not compliant to the newcoming ACLINT spec) because of lack of mtime register. Add a compatible string formatted like the C9xx-specific PLIC compatible, and do not allow a SiFive one as fallback because they're not really compliant. Signed-off-by: Icenowy Zheng <[email protected]> Acked-by: Krzysztof Kozlowski <[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 27788e0 commit abd873a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ description:
2020
property of "/cpus" DT node. The "timebase-frequency" DT property is
2121
described in Documentation/devicetree/bindings/riscv/cpus.yaml
2222

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+
2327
properties:
2428
compatible:
2529
oneOf:
@@ -29,6 +33,10 @@ properties:
2933
- starfive,jh7100-clint
3034
- canaan,k210-clint
3135
- const: sifive,clint0
36+
- items:
37+
- enum:
38+
- allwinner,sun20i-d1-clint
39+
- const: thead,c900-clint
3240
- items:
3341
- const: sifive,clint0
3442
- const: riscv,clint0

0 commit comments

Comments
 (0)