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

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 <nick.hu@sifive.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20250321083507.25298-1-nick.hu@sifive.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Nick Hu and committed by
Daniel Lezcano
0f920690 96bf4b89

+22
+22
Documentation/devicetree/bindings/timer/sifive,clint.yaml
··· 37 37 - starfive,jh8100-clint # StarFive JH8100 38 38 - const: sifive,clint0 # SiFive CLINT v0 IP block 39 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. 45 + - items: 40 46 - enum: 41 47 - allwinner,sun20i-d1-clint 42 48 - sophgo,cv1800b-clint ··· 67 61 interrupts-extended: 68 62 minItems: 1 69 63 maxItems: 4095 64 + 65 + sifive,fine-ctr-bits: 66 + maximum: 15 67 + description: The width in bits of the fine counter. 68 + 69 + if: 70 + properties: 71 + compatible: 72 + contains: 73 + const: sifive,clint2 74 + then: 75 + required: 76 + - sifive,fine-ctr-bits 77 + else: 78 + properties: 79 + sifive,fine-ctr-bits: false 70 80 71 81 additionalProperties: false 72 82