xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunTPS65132 regulators
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "ti,tps65132"
5*4882a593Smuzhiyun- reg: I2C slave address
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOptional Subnode:
8*4882a593SmuzhiyunDevice supports two regulators OUTP and OUTN. A sub node within the
9*4882a593Smuzhiyun   device node describe the properties of these regulators. The sub-node
10*4882a593Smuzhiyun   names must be as follows:
11*4882a593Smuzhiyun	-For regulator outp, the sub node name should be "outp".
12*4882a593Smuzhiyun	-For regulator outn, the sub node name should be "outn".
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun-enable-gpios:(active high, output) Regulators are controlled by the input pins.
15*4882a593Smuzhiyun   If it is connected to GPIO through host system then provide the
16*4882a593Smuzhiyun   gpio number as per gpio.txt.
17*4882a593Smuzhiyun-active-discharge-gpios: (active high, output) Some configurations use delay mechanisms
18*4882a593Smuzhiyun  on the enable pin, to keep the regulator enabled for some time after
19*4882a593Smuzhiyun  the enable signal goes low. This GPIO is used to actively discharge
20*4882a593Smuzhiyun  the delay mechanism. Requires specification of ti,active-discharge-time-us
21*4882a593Smuzhiyun-ti,active-discharge-time-us: how long the active discharge gpio should be
22*4882a593Smuzhiyun  asserted for during active discharge, in microseconds.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunEach regulator is defined using the standard binding for regulators.
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunExample:
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	tps65132@3e {
29*4882a593Smuzhiyun		compatible = "ti,tps65132";
30*4882a593Smuzhiyun		reg = <0x3e>;
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun		outp {
33*4882a593Smuzhiyun			regulator-name = "outp";
34*4882a593Smuzhiyun			regulator-boot-on;
35*4882a593Smuzhiyun			regulator-always-on;
36*4882a593Smuzhiyun			enable-gpios = <&gpio 23 0>;
37*4882a593Smuzhiyun		};
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun		outn {
40*4882a593Smuzhiyun			regulator-name = "outn";
41*4882a593Smuzhiyun			regulator-boot-on;
42*4882a593Smuzhiyun			regulator-always-on;
43*4882a593Smuzhiyun			regulator-active-discharge = <0>;
44*4882a593Smuzhiyun			enable-gpios = <&gpio 40 0>;
45*4882a593Smuzhiyun		};
46*4882a593Smuzhiyun	};
47