aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunyan Zhang <zhang.chunyan@linaro.org>2018-01-26 08:08:43 -0500
committerMark Brown <broonie@kernel.org>2018-01-26 09:43:42 -0500
commit057c76440c791eb31eb68f3b003f67d00fcce51a (patch)
tree663013b07ebe85acddbdd01ee1bbbd2ed5d442b3
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
regulator: added support for suspend states
Some systems need to set regulators to specific states when they enter low power modes, especially around CPUs. There are many of these modes depending on the particular runtime state. Currently the regulator consumers are not granted permission to change suspend state of regulator devices, the constraints are configured at startup. In order to allow changes in a vlotage range, we need to add new properties for voltage range and a flag to give permission to change the suspend voltage and suspend on/off in suspend mode. Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/regulator/regulator.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
index 378f6dc8b8bd..e459226dfac9 100644
--- a/Documentation/devicetree/bindings/regulator/regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/regulator.txt
@@ -42,8 +42,16 @@ Optional properties:
42- regulator-state-[mem/disk] node has following common properties: 42- regulator-state-[mem/disk] node has following common properties:
43 - regulator-on-in-suspend: regulator should be on in suspend state. 43 - regulator-on-in-suspend: regulator should be on in suspend state.
44 - regulator-off-in-suspend: regulator should be off in suspend state. 44 - regulator-off-in-suspend: regulator should be off in suspend state.
45 - regulator-suspend-microvolt: regulator should be set to this voltage 45 - regulator-suspend-min-microvolt: minimum voltage may be set in
46 in suspend. 46 suspend state.
47 - regulator-suspend-max-microvolt: maximum voltage may be set in
48 suspend state.
49 - regulator-suspend-microvolt: the default voltage which regulator
50 would be set in suspend. This property is now deprecated, instead
51 setting voltage for suspend mode via the API which regulator
52 driver provides is recommended.
53 - regulator-changeable-in-suspend: whether the default voltage and
54 the regulator on/off in suspend can be changed in runtime.
47 - regulator-mode: operating mode in the given suspend state. 55 - regulator-mode: operating mode in the given suspend state.
48 The set of possible operating modes depends on the capabilities of 56 The set of possible operating modes depends on the capabilities of
49 every hardware so the valid modes are documented on each regulator 57 every hardware so the valid modes are documented on each regulator