diff options
author | Javier Martinez Canillas <javier.martinez@collabora.co.uk> | 2014-11-11 07:04:43 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-26 14:42:47 -0500 |
commit | bf66c48d026d0ea20a3e04fc32fb470e692707a9 (patch) | |
tree | d89a80e4ed3eab6593a8ea9ef0da1ef2212af93c /Documentation | |
parent | f9fbc21d03d719a10cbffe19870092592bf60d56 (diff) |
regulator: max77802: Document binding for regulator operating modes
Some regulators from the max77802 PMIC support to be configured in one
of two operating mode: Output ON (normal) and Output On Low Power Mode.
Not all regulators support these two modes and for some of them, the
mode can be changed while the system is running in normal operation
while others only support their mode to be changed on system suspend.
Extend the max77802 PMIC binding by documenting the possible operating
modes values so the regulators modes can be configured correctly.
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/regulator/max77802.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/regulator/max77802.txt b/Documentation/devicetree/bindings/regulator/max77802.txt index 5aeaffc0f1f0..79e5476444f7 100644 --- a/Documentation/devicetree/bindings/regulator/max77802.txt +++ b/Documentation/devicetree/bindings/regulator/max77802.txt | |||
@@ -25,6 +25,29 @@ with their hardware counterparts as follow. The valid names are: | |||
25 | example: LDO1, LDO2, LDO35. | 25 | example: LDO1, LDO2, LDO35. |
26 | -BUCKn : for BUCKs, where n can lie in range 1 to 10. | 26 | -BUCKn : for BUCKs, where n can lie in range 1 to 10. |
27 | example: BUCK1, BUCK5, BUCK10. | 27 | example: BUCK1, BUCK5, BUCK10. |
28 | |||
29 | The max77802 regulator supports two different operating modes: Normal and Low | ||
30 | Power Mode. Some regulators support the modes to be changed at startup or by | ||
31 | the consumers during normal operation while others only support to change the | ||
32 | mode during system suspend. The standard regulator suspend states binding can | ||
33 | be used to configure the regulator operating mode. | ||
34 | |||
35 | The regulators that support the standard "regulator-initial-mode" property, | ||
36 | changing their mode during normal operation are: LDOs 1, 3, 20 and 21. | ||
37 | |||
38 | The possible values for "regulator-initial-mode" and "regulator-mode" are: | ||
39 | 1: Normal regulator voltage output mode. | ||
40 | 3: Low Power which reduces the quiescent current down to only 1uA | ||
41 | |||
42 | The list of valid modes are defined in the dt-bindings/clock/maxim,max77802.h | ||
43 | header and can be included by device tree source files. | ||
44 | |||
45 | The standard "regulator-mode" property can only be used for regulators that | ||
46 | support changing their mode to Low Power Mode during suspend. These regulators | ||
47 | are: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has | ||
48 | been enabled for the given suspend state using "regulator-on-in-suspend" and | ||
49 | has not been disabled for that state using "regulator-off-in-suspend". | ||
50 | |||
28 | Example: | 51 | Example: |
29 | 52 | ||
30 | max77802@09 { | 53 | max77802@09 { |
@@ -36,11 +59,23 @@ Example: | |||
36 | #size-cells = <0>; | 59 | #size-cells = <0>; |
37 | 60 | ||
38 | regulators { | 61 | regulators { |
62 | ldo1_reg: LDO1 { | ||
63 | regulator-name = "vdd_1v0"; | ||
64 | regulator-min-microvolt = <1000000>; | ||
65 | regulator-max-microvolt = <1000000>; | ||
66 | regulator-always-on; | ||
67 | regulator-initial-mode = <MAX77802_OPMODE_LP>; | ||
68 | }; | ||
69 | |||
39 | ldo11_reg: LDO11 { | 70 | ldo11_reg: LDO11 { |
40 | regulator-name = "vdd_ldo11"; | 71 | regulator-name = "vdd_ldo11"; |
41 | regulator-min-microvolt = <1900000>; | 72 | regulator-min-microvolt = <1900000>; |
42 | regulator-max-microvolt = <1900000>; | 73 | regulator-max-microvolt = <1900000>; |
43 | regulator-always-on; | 74 | regulator-always-on; |
75 | regulator-state-mem { | ||
76 | regulator-on-in-suspend; | ||
77 | regulator-mode = <MAX77802_OPMODE_LP>; | ||
78 | }; | ||
44 | }; | 79 | }; |
45 | 80 | ||
46 | buck1_reg: BUCK1 { | 81 | buck1_reg: BUCK1 { |