diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-05-11 02:38:43 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-05-13 08:47:49 -0400 |
commit | 684ae39b91ee7fd2855c35be7f3bf226d42516a5 (patch) | |
tree | f55b98bbf4add5a374465b8f64686d64abfb6b33 /Documentation/devicetree/bindings | |
parent | 8bdca009e66bb18a990a4be1830c73acacfce331 (diff) |
regulator: tps62360: add dt support
Add dt support for the pmu device tps62360 and
Add binding documentation with example.
With this patch driver will support both device-tree and
non-device tree registration.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/regulator/tps62360-regulator.txt | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/tps62360-regulator.txt b/Documentation/devicetree/bindings/regulator/tps62360-regulator.txt new file mode 100644 index 000000000000..f411b57c7751 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/tps62360-regulator.txt | |||
@@ -0,0 +1,45 @@ | |||
1 | TPS62360 Voltage regulators | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Must be one of the following. | ||
5 | "ti,tps62360" | ||
6 | "ti,tps62361", | ||
7 | "ti,tps62362", | ||
8 | "ti,tps62363", | ||
9 | - reg: I2C slave address | ||
10 | |||
11 | Optional properties: | ||
12 | - ti,enable-force-pwm: Enable force PWM mode. This is boolean value. | ||
13 | - ti,enable-vout-discharge: Enable output discharge. This is boolean value. | ||
14 | - ti,enable-pull-down: Enable pull down. This is boolean value. | ||
15 | - ti,vsel0-gpio: GPIO for controlling VSEL0 line. | ||
16 | If this property is missing, then assume that there is no GPIO | ||
17 | for vsel0 control. | ||
18 | - ti,vsel1-gpio: Gpio for controlling VSEL1 line. | ||
19 | If this property is missing, then assume that there is no GPIO | ||
20 | for vsel1 control. | ||
21 | - ti,vsel0-state-high: Inital state of vsel0 input is high. | ||
22 | If this property is missing, then assume the state as low (0). | ||
23 | - ti,vsel1-state-high: Inital state of vsel1 input is high. | ||
24 | If this property is missing, then assume the state as low (0). | ||
25 | |||
26 | Any property defined as part of the core regulator binding, defined in | ||
27 | regulator.txt, can also be used. | ||
28 | |||
29 | Example: | ||
30 | |||
31 | abc: tps62360 { | ||
32 | compatible = "ti,tps62361"; | ||
33 | reg = <0x60>; | ||
34 | regulator-name = "tps62361-vout"; | ||
35 | regulator-min-microvolt = <500000>; | ||
36 | regulator-max-microvolt = <1500000>; | ||
37 | regulator-boot-on | ||
38 | ti,vsel0-gpio = <&gpio1 16 0>; | ||
39 | ti,vsel1-gpio = <&gpio1 17 0>; | ||
40 | ti,vsel0-state-high; | ||
41 | ti,vsel1-state-high; | ||
42 | ti,enable-pull-down; | ||
43 | ti,enable-force-pwm; | ||
44 | ti,enable-vout-discharge; | ||
45 | }; | ||