summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/gpio/gpio-poweroff.txt
blob: 558cdf3c9abc8e10539c894a4387fc72c1b32ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
GPIO line that should be set high/low to power off a device

Required properties:
- compatible : should be "gpio-poweroff".
- gpios : The GPIO to set high/low, see "gpios property" in
  Documentation/devicetree/bindings/gpio/gpio.txt. If the pin should be
  low to power down the board set it to "Active Low", otherwise set
  gpio to "Active High".

Optional properties:
- input : Initially configure the GPIO line as an input. Only reconfigure
  it to an output when the pm_power_off function is called. If this optional
  property is not specified, the GPIO is initialized as an output in its
  inactive state.


Examples:

gpio-poweroff {
	compatible = "gpio-poweroff";
	gpios = <&gpio 4 0>; /* GPIO 4 Active Low */
};