blob: e5cac1e0ca8a734d43549ad125a837beef457e13 [file] [log] [blame]
Lee Jones006694d2012-10-15 14:16:59 +01001GPIO controlled regulators
2
3Required properties:
4- compatible : Must be "regulator-gpio".
Lee Jones216f2b92012-11-14 11:51:36 +00005- states : Selection of available voltages and GPIO configs.
6 if there are no states, then use a fixed regulator
Lee Jones006694d2012-10-15 14:16:59 +01007
8Optional properties:
Frank Lidea05fe2012-11-12 17:58:28 +08009- enable-gpio : GPIO to use to enable/disable the regulator.
Lee Jones006694d2012-10-15 14:16:59 +010010- gpios : GPIO group used to control voltage.
Kuninori Morimoto90733982014-02-11 17:27:27 -080011- gpios-states : gpios pin's initial states array. 0: LOW, 1: HIGH.
12 defualt is LOW if nothing is specified.
Lee Jones006694d2012-10-15 14:16:59 +010013- startup-delay-us : Startup time in microseconds.
14- enable-active-high : Polarity of GPIO is active high (default is low).
Mark Brown7f196ec2013-12-05 19:08:55 +000015- regulator-type : Specifies what is being regulated, must be either
16 "voltage" or "current", defaults to current.
Lee Jones006694d2012-10-15 14:16:59 +010017
18Any property defined as part of the core regulator binding defined in
19regulator.txt can also be used.
20
21Example:
22
23 mmciv: gpio-regulator {
24 compatible = "regulator-gpio";
25
26 regulator-name = "mmci-gpio-supply";
27 regulator-min-microvolt = <1800000>;
28 regulator-max-microvolt = <2600000>;
29 regulator-boot-on;
30
Frank Lidea05fe2012-11-12 17:58:28 +080031 enable-gpio = <&gpio0 23 0x4>;
Lee Jones006694d2012-10-15 14:16:59 +010032 gpios = <&gpio0 24 0x4
33 &gpio0 25 0x4>;
34 states = <1800000 0x3
35 2200000 0x2
36 2600000 0x1
37 2900000 0x0>;
38
39 startup-delay-us = <100000>;
40 enable-active-high;
41 };