archive mirror
 help / color / mirror / Atom feed
* [PATCH V4 1/5] bindings: regulator: added support for suspend states
@ 2018-01-23 11:59 Chunyan Zhang
  2018-01-23 11:59 ` [PATCH V4 2/5] regulator: make regulator voltage be an array to support more states Chunyan Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Chunyan Zhang @ 2018-01-23 11:59 UTC (permalink / raw)
  To: Mark Brown, Rob Herring
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Chunyan Zhang

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 <>
Reviewed-by: Rob Herring <>
 Documentation/devicetree/bindings/regulator/regulator.txt | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
index 378f6dc..e459226 100644
--- a/Documentation/devicetree/bindings/regulator/regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/regulator.txt
@@ -42,8 +42,16 @@ Optional properties:
 - regulator-state-[mem/disk] node has following common properties:
 	- regulator-on-in-suspend: regulator should be on in suspend state.
 	- regulator-off-in-suspend: regulator should be off in suspend state.
-	- regulator-suspend-microvolt: regulator should be set to this voltage
-	  in suspend.
+	- regulator-suspend-min-microvolt: minimum voltage may be set in
+	  suspend state.
+	- regulator-suspend-max-microvolt: maximum voltage may be set in
+	  suspend state.
+	- regulator-suspend-microvolt: the default voltage which regulator
+	  would be set in suspend. This property is now deprecated, instead
+	  setting voltage for suspend mode via the API which regulator
+	  driver provides is recommended.
+	- regulator-changeable-in-suspend: whether the default voltage and
+	  the regulator on/off in suspend can be changed in runtime.
 	- regulator-mode: operating mode in the given suspend state.
 	  The set of possible operating modes depends on the capabilities of
 	  every hardware so the valid modes are documented on each regulator

To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to
More majordomo info at

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-25 20:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 11:59 [PATCH V4 1/5] bindings: regulator: added support for suspend states Chunyan Zhang
2018-01-23 11:59 ` [PATCH V4 2/5] regulator: make regulator voltage be an array to support more states Chunyan Zhang
     [not found]   ` <>
2018-01-23 16:04     ` Mark Brown
2018-01-23 11:59 ` [PATCH V4 3/5] drivers: regulator: leave one item to record whether regulator is enabled Chunyan Zhang
     [not found] ` <>
2018-01-23 11:59   ` [PATCH V4 4/5] drivers: regulator: empty the old suspend functions Chunyan Zhang
2018-01-23 11:59 ` [PATCH V4 5/5] regulator: add PM suspend and resume hooks Chunyan Zhang
     [not found]   ` <>
2018-01-25 20:04     ` kbuild test robot
2018-01-25 20:21   ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).