Commit 05d90441 authored by Elliot Berman's avatar Elliot Berman Committed by Sebastian Reichel
Browse files

dt-bindings: power: reset: Convert mode-.* properties to array



PSCI reboot mode will map a mode name to multiple magic values instead
of just one. Convert the mode-.* property to an array. Users of the
reboot-mode schema will need to specify the maxItems of the mode-.*
properties. Existing users will all be 1.

Reviewed-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
Link: https://lore.kernel.org/r/20241107-arm-psci-system_reset2-vendor-reboots-v8-1-e8715fa65cb5@quicinc.com


Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent f29cc6d9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,6 +31,10 @@ properties:
allOf:
  - $ref: reboot-mode.yaml#

patternProperties:
  "^mode-.*$":
    maxItems: 1

required:
  - compatible
  - nvmem-cells
+7 −0
Original line number Diff line number Diff line
@@ -54,6 +54,10 @@ required:
  - compatible
  - reg

patternProperties:
  "^mode-.*$":
    maxItems: 1

unevaluatedProperties: false

allOf:
@@ -75,6 +79,9 @@ allOf:
        reg-names:
          items:
            - const: pon
    else:
      patternProperties:
        "^mode-.*$": false

    # Special case for pm8941, which doesn't store reset mode
  - if:
+2 −2
Original line number Diff line number Diff line
@@ -28,13 +28,13 @@ description: |

properties:
  mode-normal:
    $ref: /schemas/types.yaml#/definitions/uint32
    $ref: /schemas/types.yaml#/definitions/uint32-array
    description:
      Default value to set on a reboot if no command was provided.

patternProperties:
  "^mode-.*$":
    $ref: /schemas/types.yaml#/definitions/uint32
    $ref: /schemas/types.yaml#/definitions/uint32-array

additionalProperties: true

+4 −0
Original line number Diff line number Diff line
@@ -32,6 +32,10 @@ properties:
allOf:
  - $ref: reboot-mode.yaml#

patternProperties:
  "^mode-.*$":
    maxItems: 1

unevaluatedProperties: false

required: