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

dt-bindings: arm: psci: Relax and simplify compatible constraints

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>
Link: https://lore.kernel.org/r/20220803201639.2552581-1-robh@kernel.org

+3 -8
+3 -8
Documentation/devicetree/bindings/arm/psci.yaml
··· 43 43 44 44 - description: 45 45 For implementations complying to PSCI 0.2. 46 - const: arm,psci-0.2 47 - 48 - - description: 49 - For implementations complying to PSCI 0.2. 50 46 Function IDs are not required and should be ignored by an OS with 51 47 PSCI 0.2 support, but are permitted to be present for compatibility 52 48 with existing software when "arm,psci" is later in the compatible 53 49 list. 50 + minItems: 1 54 51 items: 55 52 - const: arm,psci-0.2 56 53 - const: arm,psci 57 54 58 55 - description: 59 56 For implementations complying to PSCI 1.0. 60 - const: arm,psci-1.0 61 - 62 - - description: 63 - For implementations complying to PSCI 1.0. 64 57 PSCI 1.0 is backward compatible with PSCI 0.2 with minor 65 58 specification updates, as defined in the PSCI specification[2]. 59 + minItems: 1 66 60 items: 67 61 - const: arm,psci-1.0 68 62 - const: arm,psci-0.2 63 + - const: arm,psci 69 64 70 65 method: 71 66 description: The method of calling the PSCI firmware.