Merge tag 'tegra-for-4.8-i2c' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[cascardo/linux.git] / Documentation / devicetree / bindings / power / reset / syscon-reboot-mode.txt
1 SYSCON reboot mode driver
2
3 This driver gets reboot mode magic value form reboot-mode driver
4 and stores it in a SYSCON mapped register. Then the bootloader
5 can read it and take different action according to the magic
6 value stored.
7
8 This DT node should be represented as a sub-node of a "syscon", "simple-mfd"
9 node.
10
11 Required properties:
12 - compatible: should be "syscon-reboot-mode"
13 - offset: offset in the register map for the storage register (in bytes)
14
15 Optional 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
19 The rest of the properties should follow the generic reboot-mode description
20 found in reboot-mode.txt
21
22 Example:
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         };