gpio-poweroff.txt 722 B

12345678910111213141516171819202122
  1. GPIO line that should be set high/low to power off a device
  2. Required properties:
  3. - compatible : should be "gpio-poweroff".
  4. - gpios : The GPIO to set high/low, see "gpios property" in
  5. Documentation/devicetree/bindings/gpio/gpio.txt. If the pin should be
  6. low to power down the board set it to "Active Low", otherwise set
  7. gpio to "Active High".
  8. Optional properties:
  9. - input : Initially configure the GPIO line as an input. Only reconfigure
  10. it to an output when the pm_power_off function is called. If this optional
  11. property is not specified, the GPIO is initialized as an output in its
  12. inactive state.
  13. Examples:
  14. gpio-poweroff {
  15. compatible = "gpio-poweroff";
  16. gpios = <&gpio 4 0>; /* GPIO 4 Active Low */
  17. };