]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/regulator/gpio-regulator.txt
Merge remote-tracking branch 'signal/for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / regulator / gpio-regulator.txt
1 GPIO controlled regulators
2
3 Required properties:
4 - compatible            : Must be "regulator-gpio".
5
6 Optional properties:
7 - gpio-enable           : GPIO to use to enable/disable the regulator.
8 - gpios                 : GPIO group used to control voltage.
9 - states                : Selection of available voltages and GPIO configs.
10 - startup-delay-us      : Startup time in microseconds.
11 - enable-active-high    : Polarity of GPIO is active high (default is low).
12
13 Any property defined as part of the core regulator binding defined in
14 regulator.txt can also be used.
15
16 Example:
17
18         mmciv: gpio-regulator {
19                 compatible = "regulator-gpio";
20
21                 regulator-name = "mmci-gpio-supply";
22                 regulator-min-microvolt = <1800000>;
23                 regulator-max-microvolt = <2600000>;
24                 regulator-boot-on;
25
26                 gpio-enable = <&gpio0 23 0x4>;
27                 gpios = <&gpio0 24 0x4
28                          &gpio0 25 0x4>;
29                 states = <1800000 0x3
30                           2200000 0x2
31                           2600000 0x1
32                           2900000 0x0>;
33
34                 startup-delay-us = <100000>;
35                 enable-active-high;
36         };