| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml# |
| $schema: http://devicetree.org/meta-schemas/core.yaml# |
| title: Generic NVMEM reboot mode |
| - 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. |
| A phandle pointing to the nvmem-cells node where the vendor-specific |
| magic value representing the reboot mode is stored. |
| - $ref: reboot-mode.yaml# |
| unevaluatedProperties: false |
| compatible = "nvmem-reboot-mode"; |
| nvmem-cells = <&reboot_reason>; |
| nvmem-cell-names = "reboot-mode"; |
| mode-bootloader = <0x02>; |