-
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.
regulator: adapt fixed regulator driver to dt
The fixed regulator driver uses of_get_fixed_voltage_config() to extract fixed_voltage_config structure contents from device tree. Also add documenation for additional bindings for fixed regulators that can be passed through dt. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
- Loading branch information
Rajendra Nayak
authored and
Mark Brown
committed
Nov 23, 2011
1 parent
8f446e6
commit cef4910
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/regulator/fixed-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,29 @@ | ||
Fixed Voltage regulators | ||
|
||
Required properties: | ||
- compatible: Must be "regulator-fixed"; | ||
|
||
Optional properties: | ||
- gpio: gpio to use for enable control | ||
- startup-delay-us: startup time in microseconds | ||
- enable-active-high: Polarity of GPIO is Active high | ||
If this property is missing, the default assumed is Active low. | ||
|
||
Any property defined as part of the core regulator | ||
binding, defined in regulator.txt, can also be used. | ||
However a fixed voltage regulator is expected to have the | ||
regulator-min-microvolt and regulator-max-microvolt | ||
to be the same. | ||
|
||
Example: | ||
|
||
abc: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-supply"; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
gpio = <&gpio1 16 0>; | ||
startup-delay-us = <70000>; | ||
enable-active-high; | ||
regulator-boot-on | ||
}; |
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