diff options
author | Venkat Reddy Talla <vreddytalla@nvidia.com> | 2017-04-12 06:15:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-04-12 11:47:50 -0400 |
commit | 682d33c65c28bca28238e84dc3f3b629008d1079 (patch) | |
tree | d70c4a3f24b3b035802d6bfb6418841f4bd7ab64 | |
parent | 77c129bfefc85bae4dbaa655a5d9b75c9c665da9 (diff) |
regulator: tps65132: add device-tree binding
Add tps65132 regulator device-tree binding documentation
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/regulator/tps65132-regulator.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt new file mode 100644 index 000000000000..3a3505520c69 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt | |||
@@ -0,0 +1,46 @@ | |||
1 | TPS65132 regulators | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,tps65132" | ||
5 | - reg: I2C slave address | ||
6 | |||
7 | Optional Subnode: | ||
8 | Device supports two regulators OUTP and OUTN. A sub node within the | ||
9 | device node describe the properties of these regulators. The sub-node | ||
10 | names must be as follows: | ||
11 | -For regulator outp, the sub node name should be "outp". | ||
12 | -For regulator outn, the sub node name should be "outn". | ||
13 | |||
14 | -enable-gpios:(active high, output) Regulators are controlled by the input pins. | ||
15 | If it is connected to GPIO through host system then provide the | ||
16 | gpio number as per gpio.txt. | ||
17 | -active-discharge-gpios: (active high, output) Some configurations use delay mechanisms | ||
18 | on the enable pin, to keep the regulator enabled for some time after | ||
19 | the enable signal goes low. This GPIO is used to actively discharge | ||
20 | the delay mechanism. Requires specification of ti,active-discharge-time-us | ||
21 | -ti,active-discharge-time-us: how long the active discharge gpio should be | ||
22 | asserted for during active discharge, in microseconds. | ||
23 | |||
24 | Each regulator is defined using the standard binding for regulators. | ||
25 | |||
26 | Example: | ||
27 | |||
28 | tps65132@3e { | ||
29 | compatible = "ti,tps65132"; | ||
30 | reg = <0x3e>; | ||
31 | |||
32 | outp { | ||
33 | regulator-name = "outp"; | ||
34 | regulator-boot-on; | ||
35 | regulator-always-on; | ||
36 | enable-gpios = <&gpio 23 0>; | ||
37 | }; | ||
38 | |||
39 | outn { | ||
40 | regulator-name = "outn"; | ||
41 | regulator-boot-on; | ||
42 | regulator-always-on; | ||
43 | regulator-active-discharge = <0>; | ||
44 | enable-gpios = <&gpio 40 0>; | ||
45 | }; | ||
46 | }; | ||