regulator: Document binding for initial and suspend modes
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 10 Nov 2014 13:43:51 +0000 (14:43 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 26 Nov 2014 18:58:14 +0000 (18:58 +0000)
Some regulators can run on different operating modes (opmodes). This
allows systems to choose the most efficient opmode for each regulator.

This patch builds on top of (291d761 regulator: Document binding for
regulator suspend state for PM state) adding a regulator-initial-mode
DT property to configure at startup the operating mode for regulators
that support changing its mode during normal operation and a property
regulator-mode to be used in the regulator-state-[mem/disk] nodes for
regulators that supports changing its operating mode when the system
enters in a suspend state.

The set of possible modes that a regulator can operate depends on the
hardware capabilities so a list of generic operating modes can't be
provided. Instead, each hardware binding should define the list of
valid operating modes for the regulators found on that device.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/regulator.txt

index 4e7ed762b3bbf35c4d64af64d0ab6aaa9b6ad95b..abb26b58c83eea4eb60170f56700f9fa20aa8f88 100644 (file)
@@ -30,6 +30,13 @@ Optional properties:
        - regulator-off-in-suspend: regulator should be off in suspend state.
        - regulator-suspend-microvolt: regulator should be set to this voltage
          in suspend.
+       - 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
+         device tree binding document.
+- regulator-initial-mode: initial operating mode. The set of possible operating
+  modes depends on the capabilities of every hardware so each device binding
+  documentation explains which values the regulator supports.
 
 Deprecated properties:
 - regulator-compatible: If a regulator chip contains multiple
This page took 0.026017 seconds and 5 git commands to generate.