Nandor Han | 6521e5d | 2021-06-10 16:56:44 +0300 | [diff] [blame] | 1 | GPIO Reboot Mode Configuration |
| 2 | |
| 3 | Required 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 | |
| 10 | Optional Properties: |
| 11 | - u-boot,env-variable: used to save the reboot mode (default: reboot-mode). |
| 12 | |
| 13 | Example: |
| 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 | }; |