Generic NVMEM reboot mode

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bartosz Golaszewski <bartosz.golaszewski@linaro.org>"

This driver gets the reboot mode magic value from the reboot-mode driver and stores it in the NVMEM cell named "reboot-mode". The bootloader can then read it and take different action according to the value.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nvmem-reboot-mode"

nvmem-cells — required here #

A phandle pointing to the nvmem-cells node where the vendor-specific magic value representing the reboot mode is stored.

Maximum number of items (maxItems): 1

nvmem-cell-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "reboot-mode"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): reboot-mode.yaml#

Properties matching a name pattern (patternProperties) #

^mode-.*$ — name matches this regular expression #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "nvmem-cells", "nvmem-cell-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

reboot-mode {
    compatible = "nvmem-reboot-mode";
    nvmem-cells = <&reboot_reason>;
    nvmem-cell-names = "reboot-mode";
    mode-recovery = <0x01>;
    mode-bootloader = <0x02>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page