reboot-mode-gpio.txt 674 B

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