xref: /freebsd/sys/contrib/device-tree/Bindings/power/reset/nvmem-reboot-mode.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotNVMEM reboot mode driver
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis driver gets reboot mode magic value from reboot-mode driver
4*c66ec88fSEmmanuel Vadotand stores it in a NVMEM cell named "reboot-mode". Then the bootloader
5*c66ec88fSEmmanuel Vadotcan read it and take different action according to the magic
6*c66ec88fSEmmanuel Vadotvalue stored.
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotRequired properties:
9*c66ec88fSEmmanuel Vadot- compatible: should be "nvmem-reboot-mode".
10*c66ec88fSEmmanuel Vadot- nvmem-cells: A phandle to the reboot mode provided by a nvmem device.
11*c66ec88fSEmmanuel Vadot- nvmem-cell-names: Should be "reboot-mode".
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotThe rest of the properties should follow the generic reboot-mode description
14*c66ec88fSEmmanuel Vadotfound in reboot-mode.txt
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot	reboot-mode {
18*c66ec88fSEmmanuel Vadot		compatible = "nvmem-reboot-mode";
19*c66ec88fSEmmanuel Vadot		nvmem-cells = <&reboot_mode>;
20*c66ec88fSEmmanuel Vadot		nvmem-cell-names = "reboot-mode";
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadot		mode-normal     = <0xAAAA5501>;
23*c66ec88fSEmmanuel Vadot		mode-bootloader = <0xBBBB5500>;
24*c66ec88fSEmmanuel Vadot		mode-recovery   = <0xCCCC5502>;
25*c66ec88fSEmmanuel Vadot		mode-test       = <0xDDDD5503>;
26*c66ec88fSEmmanuel Vadot	};
27