Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <uwu@icenowy.me>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230202072814.319903-1-uwu@icenowy.me
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Icenowy Zheng and committed by
Daniel Lezcano
abd873af 27788e01

+8
+8
Documentation/devicetree/bindings/timer/sifive,clint.yaml
··· 20 20 property of "/cpus" DT node. The "timebase-frequency" DT property is 21 21 described in Documentation/devicetree/bindings/riscv/cpus.yaml 22 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 + 23 27 properties: 24 28 compatible: 25 29 oneOf: ··· 33 29 - starfive,jh7100-clint 34 30 - canaan,k210-clint 35 31 - const: sifive,clint0 32 + - items: 33 + - enum: 34 + - allwinner,sun20i-d1-clint 35 + - const: thead,c900-clint 36 36 - items: 37 37 - const: sifive,clint0 38 38 - const: riscv,clint0