-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Laxman Dewangan
authored and
Mark Brown
committed
May 13, 2012
1 parent
8bdca00
commit 684ae39
Showing
2 changed files
with
117 additions
and
1 deletion.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
Documentation/devicetree/bindings/regulator/tps62360-regulator.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
TPS62360 Voltage regulators | ||
|
||
Required properties: | ||
- compatible: Must be one of the following. | ||
"ti,tps62360" | ||
"ti,tps62361", | ||
"ti,tps62362", | ||
"ti,tps62363", | ||
- reg: I2C slave address | ||
|
||
Optional properties: | ||
- ti,enable-force-pwm: Enable force PWM mode. This is boolean value. | ||
- ti,enable-vout-discharge: Enable output discharge. This is boolean value. | ||
- ti,enable-pull-down: Enable pull down. This is boolean value. | ||
- ti,vsel0-gpio: GPIO for controlling VSEL0 line. | ||
If this property is missing, then assume that there is no GPIO | ||
for vsel0 control. | ||
- ti,vsel1-gpio: Gpio for controlling VSEL1 line. | ||
If this property is missing, then assume that there is no GPIO | ||
for vsel1 control. | ||
- ti,vsel0-state-high: Inital state of vsel0 input is high. | ||
If this property is missing, then assume the state as low (0). | ||
- ti,vsel1-state-high: Inital state of vsel1 input is high. | ||
If this property is missing, then assume the state as low (0). | ||
|
||
Any property defined as part of the core regulator binding, defined in | ||
regulator.txt, can also be used. | ||
|
||
Example: | ||
|
||
abc: tps62360 { | ||
compatible = "ti,tps62361"; | ||
reg = <0x60>; | ||
regulator-name = "tps62361-vout"; | ||
regulator-min-microvolt = <500000>; | ||
regulator-max-microvolt = <1500000>; | ||
regulator-boot-on | ||
ti,vsel0-gpio = <&gpio1 16 0>; | ||
ti,vsel1-gpio = <&gpio1 17 0>; | ||
ti,vsel0-state-high; | ||
ti,vsel1-state-high; | ||
ti,enable-pull-down; | ||
ti,enable-force-pwm; | ||
ti,enable-vout-discharge; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters