All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] regulator: of: Add support for pasing regulator suspend state
@ 2014-06-09 10:29 ` Chanwoo Choi
  0 siblings, 0 replies; 15+ messages in thread
From: Chanwoo Choi @ 2014-06-09 10:29 UTC (permalink / raw)
  To: broonie, lgirdwood, grant.likely, robh+dt
  Cc: myungjoo.ham, kyungmin.park, linux-kernel, devicetree, Chanwoo Choi

The regulators would set different state/mode according to the kind of suspend
state. So regulation_constraints structure has already regulator suspend state filed.
This patch parse regulator suspend state from devicetree file.

For example:

	ldoX_reg: LDOx {
		regulator-name = "VAP_XXX_1.2V";
		regulator-min-microvolt = <1200000>;
		regulator-max-microvolt = <1200000>;
		regulator-always-on;

		regulator-initial-state = <3>;	/* PM_SUSPEND_MEM */
		regulator-state-standby {
			regulator-volt = <1200000>;
			regulator-mode = <0x2>;	/* REGULATOR_MODE_NORMAL */
		};

		regulator-state-mem {
			regulator-volt = <1200000>;
			regulator-mode = <0x8>;	/* REGULATOR_MODE_STANDBY */
			regulator-off-in-suspend;
		};

		regulator-state-disk {
			regulator-volt = <1200000>;
			regulator-mode = <0x2>;	/* REGULATOR_MODE_NORMAL */
			regulator-on-in-suspend;
		};
	};

Chanwoo Choi (2):
  regulator: of: Add support for parsing regulator_state for suspend state
  dt-bindings: regulator: Add regulator suspend state for PM state

 .../devicetree/bindings/regulator/regulator.txt    | 12 +++++
 drivers/regulator/of_regulator.c                   | 61 +++++++++++++++++++++-
 2 files changed, 71 insertions(+), 2 deletions(-)

-- 
1.8.0


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

end of thread, other threads:[~2014-06-10 10:25 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 10:29 [PATCH 0/2] regulator: of: Add support for pasing regulator suspend state Chanwoo Choi
2014-06-09 10:29 ` Chanwoo Choi
2014-06-09 10:29 ` [PATCH 1/2] regulator: of: Add support for parsing regulator_state for " Chanwoo Choi
2014-06-09 19:21   ` Mark Brown
2014-06-09 19:21     ` Mark Brown
2014-06-09 23:59     ` Chanwoo Choi
2014-06-09 23:59       ` Chanwoo Choi
2014-06-10 10:02       ` Mark Brown
2014-06-10 10:02         ` Mark Brown
2014-06-10 10:25         ` Chanwoo Choi
2014-06-10 10:25           ` Chanwoo Choi
2014-06-09 10:29 ` [PATCH 2/2] dt-bindings: regulator: Add regulator suspend state for PM state Chanwoo Choi
2014-06-09 19:16   ` Mark Brown
2014-06-09 19:16     ` Mark Brown
2014-06-10  1:30     ` Chanwoo Choi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.