diff options
author | Han Nandor <nandor.han@vaisala.com> | 2019-05-15 10:47:15 +0000 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2019-06-25 23:49:57 +0200 |
commit | cba155e50a117465b64e197e197aedc18770c4cd (patch) | |
tree | 27e6f7ba0bb5da43d6fe54e6d8bb0f2c36b9529d /Documentation/devicetree/bindings/power | |
parent | fce5430f6a86911ba3b4c8343ab04a88d7ad7795 (diff) |
dt-bindings: power: reset: add document for NVMEM based reboot-mode
Add the device tree bindings document for the NVMEM based reboot-mode
driver.
Signed-off-by: Nandor Han <nandor.han@vaisala.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'Documentation/devicetree/bindings/power')
-rw-r--r-- | Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt new file mode 100644 index 000000000000..752d6126d5da --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt @@ -0,0 +1,26 @@ +NVMEM reboot mode driver + +This driver gets reboot mode magic value from reboot-mode driver +and stores it in a NVMEM cell named "reboot-mode". Then the bootloader +can read it and take different action according to the magic +value stored. + +Required properties: +- compatible: should be "nvmem-reboot-mode". +- nvmem-cells: A phandle to the reboot mode provided by a nvmem device. +- nvmem-cell-names: Should be "reboot-mode". + +The rest of the properties should follow the generic reboot-mode description +found in reboot-mode.txt + +Example: + reboot-mode { + compatible = "nvmem-reboot-mode"; + nvmem-cells = <&reboot_mode>; + nvmem-cell-names = "reboot-mode"; + + mode-normal = <0xAAAA5501>; + mode-bootloader = <0xBBBB5500>; + mode-recovery = <0xCCCC5502>; + mode-test = <0xDDDD5503>; + }; |