Skip to content

Commit 757e96f

Browse files
eberman-quicKomal-Bajaj
authored andcommitted
FROMLIST: dt-bindings: arm: Document reboot mode magic
Add bindings to describe vendor-specific reboot modes. Values here correspond to valid parameters to vendor-specific reset types in PSCI SYSTEM_RESET2 call. Link: https://lore.kernel.org/r/20250303-arm-psci-system_reset2-vendor-reboots-v9-1-b2cf4a20feda@oss.qualcomm.com Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Elliot Berman <elliot.berman@oss.qualcomm.com>
1 parent 19272b3 commit 757e96f

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

  • Documentation/devicetree/bindings/arm

Documentation/devicetree/bindings/arm/psci.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,27 @@ properties:
9898
[1] Kernel documentation - ARM idle states bindings
9999
Documentation/devicetree/bindings/cpu/idle-states.yaml
100100
101+
reset-types:
102+
type: object
103+
$ref: /schemas/power/reset/reboot-mode.yaml#
104+
unevaluatedProperties: false
105+
properties:
106+
# "mode-normal" is just SYSTEM_RESET
107+
mode-normal: false
108+
patternProperties:
109+
"^mode-.*$":
110+
minItems: 1
111+
maxItems: 2
112+
description: |
113+
Describes a vendor-specific reset type. The string after "mode-"
114+
maps a reboot mode to the parameters in the PSCI SYSTEM_RESET2 call.
115+
116+
Parameters are named mode-xxx = <type[, cookie]>, where xxx
117+
is the name of the magic reboot mode, type is the lower 31 bits
118+
of the reset_type, and, optionally, the cookie value. If the cookie
119+
is not provided, it is defaulted to zero.
120+
The 31st bit (vendor-resets) will be implicitly set by the driver.
121+
101122
patternProperties:
102123
"^power-domain-":
103124
$ref: /schemas/power/power-domain.yaml#
@@ -137,6 +158,15 @@ allOf:
137158
required:
138159
- cpu_off
139160
- cpu_on
161+
- if:
162+
not:
163+
properties:
164+
compatible:
165+
contains:
166+
const: arm,psci-1.0
167+
then:
168+
properties:
169+
reset-types: false
140170

141171
additionalProperties: false
142172

@@ -261,4 +291,17 @@ examples:
261291
domain-idle-states = <&cluster_ret>, <&cluster_pwrdn>;
262292
};
263293
};
294+
295+
- |+
296+
297+
// Case 5: SYSTEM_RESET2 vendor resets
298+
psci {
299+
compatible = "arm,psci-1.0";
300+
method = "smc";
301+
302+
reset-types {
303+
mode-edl = <0>;
304+
mode-bootloader = <1 2>;
305+
};
306+
};
264307
...

0 commit comments

Comments
 (0)