public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: timer: Add QEMU compatible strings
@ 2022-09-16 13:30 Jean-Philippe Brucker
  2022-09-17 16:51 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Philippe Brucker @ 2022-09-16 13:30 UTC (permalink / raw)
  To: maz, mark.rutland
  Cc: robh+dt, krzysztof.kozlowski+dt, linux-kernel, devicetree,
	Jean-Philippe Brucker

QEMU uses both "arm,armv8-timer" and "arm,armv7-timer" as compatible
string. Although it is unlikely that any guest relies on this, we can't
be certain of that. Therefore, add these to the schema. Clean up the
compatible list a little while at it.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
---
 .../devicetree/bindings/timer/arm,arch_timer.yaml   | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml
index df8ce87fd54b..fa03fc0fe320 100644
--- a/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml
+++ b/Documentation/devicetree/bindings/timer/arm,arch_timer.yaml
@@ -22,16 +22,17 @@ properties:
   compatible:
     oneOf:
       - items:
-          - enum:
-              - arm,cortex-a15-timer
-          - enum:
-              - arm,armv7-timer
+          - const: arm,cortex-a15-timer
+          - const: arm,armv7-timer
       - items:
           - enum:
               - arm,armv7-timer
-      - items:
-          - enum:
               - arm,armv8-timer
+      - description: QEMU uses both compatible strings.
+          This format is deprecated.
+        items:
+          - const: arm,armv8-timer
+          - const: arm,armv7-timer
 
   interrupts:
     minItems: 1
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-22 15:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-16 13:30 [PATCH] dt-bindings: timer: Add QEMU compatible strings Jean-Philippe Brucker
2022-09-17 16:51 ` Krzysztof Kozlowski
2022-09-17 18:47   ` Marc Zyngier
2022-09-18  8:50     ` Krzysztof Kozlowski
2022-09-18  9:09       ` Marc Zyngier
2022-09-22 15:43       ` Jean-Philippe Brucker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox