-
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: anatop: patching to device-tree property "reg".
Change "reg" to "anatop-reg-offset" due to there is a warning of handling no size field in reg. This patch also adds the missing device-tree binding documentation. Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
- Loading branch information
Ying-Chun Liu (PaulLiu)
authored and
Mark Brown
committed
Mar 28, 2012
1 parent
9300928
commit 2f2cc27
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Documentation/devicetree/bindings/regulator/anatop-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 @@ | ||
Anatop Voltage regulators | ||
|
||
Required properties: | ||
- compatible: Must be "fsl,anatop-regulator" | ||
- anatop-reg-offset: Anatop MFD register offset | ||
- anatop-vol-bit-shift: Bit shift for the register | ||
- anatop-vol-bit-width: Number of bits used in the register | ||
- anatop-min-bit-val: Minimum value of this register | ||
- anatop-min-voltage: Minimum voltage of this regulator | ||
- anatop-max-voltage: Maximum voltage of this regulator | ||
|
||
Any property defined as part of the core regulator | ||
binding, defined in regulator.txt, can also be used. | ||
|
||
Example: | ||
|
||
regulator-vddpu { | ||
compatible = "fsl,anatop-regulator"; | ||
regulator-name = "vddpu"; | ||
regulator-min-microvolt = <725000>; | ||
regulator-max-microvolt = <1300000>; | ||
regulator-always-on; | ||
anatop-reg-offset = <0x140>; | ||
anatop-vol-bit-shift = <9>; | ||
anatop-vol-bit-width = <5>; | ||
anatop-min-bit-val = <1>; | ||
anatop-min-voltage = <725000>; | ||
anatop-max-voltage = <1300000>; | ||
}; |
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