18c2ecf20Sopenharmony_ciNVMEM reboot mode driver 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis driver gets reboot mode magic value from reboot-mode driver 48c2ecf20Sopenharmony_ciand stores it in a NVMEM cell named "reboot-mode". Then the bootloader 58c2ecf20Sopenharmony_cican read it and take different action according to the magic 68c2ecf20Sopenharmony_civalue stored. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciRequired properties: 98c2ecf20Sopenharmony_ci- compatible: should be "nvmem-reboot-mode". 108c2ecf20Sopenharmony_ci- nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 118c2ecf20Sopenharmony_ci- nvmem-cell-names: Should be "reboot-mode". 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciThe rest of the properties should follow the generic reboot-mode description 148c2ecf20Sopenharmony_cifound in reboot-mode.txt 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciExample: 178c2ecf20Sopenharmony_ci reboot-mode { 188c2ecf20Sopenharmony_ci compatible = "nvmem-reboot-mode"; 198c2ecf20Sopenharmony_ci nvmem-cells = <&reboot_mode>; 208c2ecf20Sopenharmony_ci nvmem-cell-names = "reboot-mode"; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci mode-normal = <0xAAAA5501>; 238c2ecf20Sopenharmony_ci mode-bootloader = <0xBBBB5500>; 248c2ecf20Sopenharmony_ci mode-recovery = <0xCCCC5502>; 258c2ecf20Sopenharmony_ci mode-test = <0xDDDD5503>; 268c2ecf20Sopenharmony_ci }; 27