xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunNVMEM reboot mode driver
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis driver gets reboot mode magic value from reboot-mode driver
4*4882a593Smuzhiyunand stores it in a NVMEM cell named "reboot-mode". Then the bootloader
5*4882a593Smuzhiyuncan read it and take different action according to the magic
6*4882a593Smuzhiyunvalue stored.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunRequired properties:
9*4882a593Smuzhiyun- compatible: should be "nvmem-reboot-mode".
10*4882a593Smuzhiyun- nvmem-cells: A phandle to the reboot mode provided by a nvmem device.
11*4882a593Smuzhiyun- nvmem-cell-names: Should be "reboot-mode".
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunThe rest of the properties should follow the generic reboot-mode description
14*4882a593Smuzhiyunfound in reboot-mode.txt
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunExample:
17*4882a593Smuzhiyun	reboot-mode {
18*4882a593Smuzhiyun		compatible = "nvmem-reboot-mode";
19*4882a593Smuzhiyun		nvmem-cells = <&reboot_mode>;
20*4882a593Smuzhiyun		nvmem-cell-names = "reboot-mode";
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun		mode-normal     = <0xAAAA5501>;
23*4882a593Smuzhiyun		mode-bootloader = <0xBBBB5500>;
24*4882a593Smuzhiyun		mode-recovery   = <0xCCCC5502>;
25*4882a593Smuzhiyun		mode-test       = <0xDDDD5503>;
26*4882a593Smuzhiyun	};
27