mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-07 14:19:35 +00:00

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: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Elliot 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: Sebastian Reichel <sebastian.reichel@collabora.com>
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Generic reboot mode core map
|
|
|
|
maintainers:
|
|
- Andy Yan <andy.yan@rock-chips.com>
|
|
|
|
description: |
|
|
This driver get reboot mode arguments and call the write
|
|
interface to store the magic value in special register
|
|
or ram. Then the bootloader can read it and take different
|
|
action according to the argument stored.
|
|
|
|
All mode properties are vendor specific, it is a indication to tell
|
|
the bootloader what to do when the system reboots, and should be named
|
|
as mode-xxx = <magic> (xxx is mode name, magic should be a non-zero value).
|
|
|
|
For example, modes common Android platform are:
|
|
- normal: Normal reboot mode, system reboot with command "reboot".
|
|
- recovery: Android Recovery mode, it is a mode to format the device or update a new image.
|
|
- bootloader: Android fastboot mode, it's a mode to re-flash partitions on the Android based device.
|
|
- loader: A bootloader mode, it's a mode used to download image on Rockchip platform,
|
|
usually used in development.
|
|
|
|
properties:
|
|
mode-normal:
|
|
$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-array
|
|
|
|
additionalProperties: true
|
|
|
|
examples:
|
|
- |
|
|
reboot-mode {
|
|
mode-normal = <0>;
|
|
mode-recovery = <1>;
|
|
mode-bootloader = <2>;
|
|
mode-loader = <3>;
|
|
};
|
|
...
|