1SYSCON reboot mode driver 2 3This driver gets reboot mode magic value form reboot-mode driver 4and stores it in a SYSCON mapped register. Then the bootloader 5can read it and take different action according to the magic 6value stored. 7 8This DT node should be represented as a sub-node of a "syscon", "simple-mfd" 9node. 10 11Required properties: 12- compatible: should be "syscon-reboot-mode" 13- offset: offset in the register map for the storage register (in bytes) 14 15Optional property: 16- mask: bits mask of the bits in the register to store the reboot mode magic value, 17 default set to 0xffffffff if missing. 18 19The rest of the properties should follow the generic reboot-mode description 20found in reboot-mode.txt 21 22Example: 23 pmu: pmu@20004000 { 24 compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd"; 25 reg = <0x20004000 0x100>; 26 27 reboot-mode { 28 compatible = "syscon-reboot-mode"; 29 offset = <0x40>; 30 mode-normal = <BOOT_NORMAL>; 31 mode-recovery = <BOOT_RECOVERY>; 32 mode-bootloader = <BOOT_FASTBOOT>; 33 mode-loader = <BOOT_BL_DOWNLOAD>; 34 }; 35 }; 36