Merge "dt-bindings: add "qcom,no-nvmem-cell-support" for reboot reason"

This commit is contained in:
QCTECMDR Service
2025-06-18 02:00:11 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -1,7 +1,7 @@
# 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#"
$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
@@ -15,26 +15,35 @@ description: |
restarting into a ramdump collection mode (CrashDump), or restarting
into "emergency download mode".
allOf:
- $ref: /schemas/nvmem/nvmem-consumer.yaml#
properties:
compatible:
items:
- const: qcom,reboot-mode
allOf:
- $ref: /schemas/nvmem/nvmem-consumer.yaml#/properties
- items:
nvmem-cell-names:
items:
- const: restart_reason
nvmem-cells:
$ref: /schemas/types.yaml#/definitions/phandle-array
description: Phandle to the nvmem cell providing the reboot reason.
nvmem-cell-names:
items:
- const: restart_reason
qcom,no-nvmem-cell-support:
type: boolean
description: "bool property for device not having nvmem cell support."
required:
- compatible
- nvmem-cells-names
dependencies:
allOf:
- $ref: /schemas/nvmem/nvmem-consumer.yaml#/dependencies
oneOf:
- required: [nvmem-cell-names]
- required: [qcom,no-nvmem-cell-support]
additionalProperties: false
examples:
- |
@@ -43,3 +52,9 @@ examples:
nvmem-cells = <&restart_reason>;
nvmem-cell-names = "restart_reason";
};
- |
reboot-reason {
compatible = "qcom,reboot-reason";
qcom,no-nvmem-cell-support;
};