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

dt-bindings: timer: arm,arch_timer: Allow dual compatible string

Since the Armv7 and Armv8 architected timers are compatible, it is valid
to expose a devicetree node with compatible string "arm,armv8-timer"
followed by "arm,armv7-timer". For example a 32-bit guest running on a
64-bit machine may look for the v7 string even though the hardware is v8.
VMMs such as QEMU and kvmtool have been using this compatible string for
some time. Clean up the compatible list a little and add the dual
option.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220922161149.371565-1-jean-philippe@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Jean-Philippe Brucker and committed by
Rob Herring
90c46d12 2bd1228a

+5 -6
+5 -6
Documentation/devicetree/bindings/timer/arm,arch_timer.yaml
··· 22 22 compatible: 23 23 oneOf: 24 24 - items: 25 - - enum: 26 - - arm,cortex-a15-timer 27 - - enum: 28 - - arm,armv7-timer 25 + - const: arm,cortex-a15-timer 26 + - const: arm,armv7-timer 29 27 - items: 30 28 - enum: 31 29 - arm,armv7-timer 32 - - items: 33 - - enum: 34 30 - arm,armv8-timer 31 + - items: 32 + - const: arm,armv8-timer 33 + - const: arm,armv7-timer 35 34 36 35 interrupts: 37 36 minItems: 1