dt-bindings: power: reset: Add documentation for reboot reason
Document the bindings for the reboot reason driver. Change-Id: I30dacc4f2c9ca59ed12dc94eb81b5ef39a27d187 Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
This commit is contained in:
45
bindings/power/reset/qcom,reboot-reason.yaml
Normal file
45
bindings/power/reset/qcom,reboot-reason.yaml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: "http://devicetree.org/schemas/power/reset/qcom-reboot-reason.yaml#"
|
||||||
|
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
|
||||||
|
|
||||||
|
title: Qualcomm Technologies, Inc. Reboot Reason
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Elliot Berman <quic_eberman@quicinc.com>
|
||||||
|
|
||||||
|
description: |
|
||||||
|
Qualcomm Technologies, Inc. SoCs support booting to special download
|
||||||
|
modes after a restart. These modes could be a :wnormal restart,
|
||||||
|
restarting into a ramdump collection mode (CrashDump), or restarting
|
||||||
|
into "emergency download mode".
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
items:
|
||||||
|
- const: qcom,reboot-mode
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: /schemas/nvmem/nvmem-consumer.yaml#/properties
|
||||||
|
- items:
|
||||||
|
nvmem-cell-names:
|
||||||
|
items:
|
||||||
|
- const: restart_reason
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- nvmem-cells-names
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
allOf:
|
||||||
|
- $ref: /schemas/nvmem/nvmem-consumer.yaml#/dependencies
|
||||||
|
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
reboot-reason {
|
||||||
|
compatible = "qcom,reboot-reason";
|
||||||
|
nvmem-cells = <&restart_reason>;
|
||||||
|
nvmem-cell-names = "restart_reason";
|
||||||
|
};
|
Reference in New Issue
Block a user