nvmem-reboot-mode.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Generic NVMEM reboot mode
  7. maintainers:
  8. - Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
  9. description:
  10. This driver gets the reboot mode magic value from the reboot-mode driver
  11. and stores it in the NVMEM cell named "reboot-mode". The bootloader can
  12. then read it and take different action according to the value.
  13. properties:
  14. compatible:
  15. const: nvmem-reboot-mode
  16. nvmem-cells:
  17. description:
  18. A phandle pointing to the nvmem-cells node where the vendor-specific
  19. magic value representing the reboot mode is stored.
  20. maxItems: 1
  21. nvmem-cell-names:
  22. items:
  23. - const: reboot-mode
  24. allOf:
  25. - $ref: reboot-mode.yaml#
  26. required:
  27. - compatible
  28. - nvmem-cells
  29. - nvmem-cell-names
  30. unevaluatedProperties: false
  31. examples:
  32. - |
  33. reboot-mode {
  34. compatible = "nvmem-reboot-mode";
  35. nvmem-cells = <&reboot_reason>;
  36. nvmem-cell-names = "reboot-mode";
  37. mode-recovery = <0x01>;
  38. mode-bootloader = <0x02>;
  39. };
  40. ...