blob: bb209d2742d03c5947f1c7c5dc2ef67b244b7e9a [file] [log] [blame]
Nandor Hanf9db2f12021-06-10 16:56:44 +03001GPIO Reboot Mode Configuration
2
3Required Properties:
4- compatible: must be "reboot-mode-gpio".
5- gpios: list of gpios that are used to calculate the reboot-mode magic value.
6 Every gpio represents a bit in the magic value in the same order
7 as defined in device tree.
8- modes: list of properties that define the modes and associated unique ids.
9
10Optional Properties:
11- u-boot,env-variable: used to save the reboot mode (default: reboot-mode).
12
13Example:
14 reboot-mode {
15 compatible = "reboot-mode-gpio";
16 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>, <&gpio2 6 GPIO_ACTIVE_HIGH>;
17 u-boot,env-variable = "bootstatus";
18 mode-test = <0x00000001>;
19 mode-download = <0x00000002>;
20 };