162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/power/reset/restart-handler.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: Restart and shutdown handler Common Properties
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Sebastian Reichel <sre@kernel.org>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cidescription:
1362306a36Sopenharmony_ci  Restart and shutdown handler device is responsible for powering off the
1462306a36Sopenharmony_ci  system, e.g. my cutting off the power.  System might have several restart
1562306a36Sopenharmony_ci  handlers, which usually are tried from most precise to last resort.
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciproperties:
1862306a36Sopenharmony_ci  priority:
1962306a36Sopenharmony_ci    $ref: /schemas/types.yaml#/definitions/uint32
2062306a36Sopenharmony_ci    description: |
2162306a36Sopenharmony_ci      A priority ranging from 0 to 255 according to the following guidelines::
2262306a36Sopenharmony_ci        0::   Restart handler of last resort, with limited restart capabilities.
2362306a36Sopenharmony_ci        128:: Typical, default restart handler; use if no other restart handler
2462306a36Sopenharmony_ci              is expected to be available, and/or if restart functionality is
2562306a36Sopenharmony_ci              sufficient to restart the entire system.
2662306a36Sopenharmony_ci        255:: Highest priority restart handler, will preempt all other restart handlers.
2762306a36Sopenharmony_ci    minimum: 0
2862306a36Sopenharmony_ci    maximum: 255
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ciadditionalProperties: true
31