devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: arm: psci: Relax and simplify compatible constraints
@ 2022-08-03 20:16 Rob Herring
  2022-08-16 16:29 ` Rob Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2022-08-03 20:16 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Lorenzo Pieralisi
  Cc: linux-arm-kernel, Sudeep Holla, Marc Zyngier, devicetree,
	linux-kernel

Even PSCI v1.0 compliant implementations may support v0.1 clients
(i.e. "arm,psci"). Relax the compatible schema such that an
implementation can claim 1.0, 0.2, and 0.1 compatibility.

In the process, the schema can be simplified a bit by using 'minItems'
instead of separate 'oneOf' entries.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/arm/psci.yaml | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml
index dd83ef278af0..3a2c908ff282 100644
--- a/Documentation/devicetree/bindings/arm/psci.yaml
+++ b/Documentation/devicetree/bindings/arm/psci.yaml
@@ -41,31 +41,26 @@ properties:
           For implementations complying to PSCI versions prior to 0.2.
         const: arm,psci
 
-      - description:
-          For implementations complying to PSCI 0.2.
-        const: arm,psci-0.2
-
       - description:
           For implementations complying to PSCI 0.2.
           Function IDs are not required and should be ignored by an OS with
           PSCI 0.2 support, but are permitted to be present for compatibility
           with existing software when "arm,psci" is later in the compatible
           list.
+        minItems: 1
         items:
           - const: arm,psci-0.2
           - const: arm,psci
 
-      - description:
-          For implementations complying to PSCI 1.0.
-        const: arm,psci-1.0
-
       - description:
           For implementations complying to PSCI 1.0.
           PSCI 1.0 is backward compatible with PSCI 0.2 with minor
           specification updates, as defined in the PSCI specification[2].
+        minItems: 1
         items:
           - const: arm,psci-1.0
           - const: arm,psci-0.2
+          - const: arm,psci
 
   method:
     description: The method of calling the PSCI firmware.
-- 
2.34.1


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

* Re: [PATCH] dt-bindings: arm: psci: Relax and simplify compatible constraints
  2022-08-03 20:16 [PATCH] dt-bindings: arm: psci: Relax and simplify compatible constraints Rob Herring
@ 2022-08-16 16:29 ` Rob Herring
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2022-08-16 16:29 UTC (permalink / raw)
  To: Rob Herring
  Cc: linux-arm-kernel, Krzysztof Kozlowski, devicetree,
	Lorenzo Pieralisi, linux-kernel, Sudeep Holla, Marc Zyngier

On Wed, 03 Aug 2022 14:16:38 -0600, Rob Herring wrote:
> Even PSCI v1.0 compliant implementations may support v0.1 clients
> (i.e. "arm,psci"). Relax the compatible schema such that an
> implementation can claim 1.0, 0.2, and 0.1 compatibility.
> 
> In the process, the schema can be simplified a bit by using 'minItems'
> instead of separate 'oneOf' entries.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/arm/psci.yaml | 11 +++--------
>  1 file changed, 3 insertions(+), 8 deletions(-)
> 

Applied, thanks!

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

end of thread, other threads:[~2022-08-16 16:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 20:16 [PATCH] dt-bindings: arm: psci: Relax and simplify compatible constraints Rob Herring
2022-08-16 16:29 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).