From: Chanwoo Choi <cw00.choi@samsung.com>
To: broonie@kernel.org
Cc: lgirdwood@gmail.com, grant.likely@linaro.org, robh+dt@kernel.org,
kyungmin.park@samsung.com, k.kozlowski@samsung.com,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Chanwoo Choi <cw00.choi@samsung.com>
Subject: [PATCHv3 2/2] dt-bindings: regulator: Add regulator suspend state for PM state
Date: Thu, 14 Aug 2014 09:40:14 +0900 [thread overview]
Message-ID: <1407976814-21882-3-git-send-email-cw00.choi@samsung.com> (raw)
In-Reply-To: <1407976814-21882-1-git-send-email-cw00.choi@samsung.com>
This patch add regulator suspend state to constraint in dt file. The regulation_
constraints structure already has regulator suspend state field as following.
The regulator suspend state control the state of regulator according to
PM (Power Management) state.
- struct regulator_state state_disk
- struct regulator_state state_mem
- struct regulator_state state_standby
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
---
.../devicetree/bindings/regulator/regulator.txt | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt
index 8607433..c4f566a 100644
--- a/Documentation/devicetree/bindings/regulator/regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/regulator.txt
@@ -19,6 +19,33 @@ Optional properties:
design requires. This property describes the total system ramp time
required due to the combination of internal ramping of the regulator itself,
and board design issues such as trace capacitance and load on the supply.
+- regulator-initial-state: initial state for suspend state, cnd set initial
+ state among following defined suspend states:
+ <2>: PM_SUSPEND_STANDBY - Setup regulator according to regulator-state-standby
+ <3>: PM_SUSPEND_MEM - Setup regulator according to regulator-state-mem
+ <4>: PM_SUSPEND_MAX - Setup regulator according to regulator-state-disk
+- regulator-state-standby sub-root node for Standby mode
+ : the device is in a power-saving state, but can also receive certain events,
+ specific behavior depends on the specific device.
+- regulator-state-mem sub-root node for Suspend-to-RAM mode
+ : suspend to memory, the device goes to sleep, but all data stored in memory,
+ only some external interrupt can wake the device.
+- regulator-state-disk sub-root node for Suspend-to-disk mode
+ : suspend to disk, this state operates similarly to Suspend-to-RAM,
+ but includes a final step of writing memory contents to disk.
+- regulator-state-[standby/mem/disk] node has following common properties:
+ - regulator-volt: voltage consumers may set in suspend state.
+ - regulator-mode: voltage mode in suspend state, can set mode among
+ following defined regulator modes:
+ 0x1: REGULATOR_MODE_FAST, Regulator can handle fast changes.
+ 0x2: REGULATOR_MODE_NORMAL, Normal regulator power supply mode.
+ 0x4: REGULATOR_MODE_IDLE, Regulator runs in a more efficient mode.
+ 0x8: REGULATOR_MODE_STANDBY, Regulator runs in the most efficient mode.
+ - regulator-on-in-suspend: regulator should be on in suspend state.
+ - regulator-off-in-suspend: regulator should be off in suspend state.
+ If node don't include regulator-[on/off]-in-suspend, can't change
+ regulator state in suspend mode and only should sustain the regulator
+ state of normal state.
Deprecated properties:
- regulator-compatible: If a regulator chip contains multiple
@@ -34,6 +61,11 @@ Example:
regulator-max-microvolt = <2500000>;
regulator-always-on;
vin-supply = <&vin>;
+
+ regulator-state-mem {
+ regulator-volt = <1000000>;
+ regulator-off-in-suspend;
+ };
};
Regulator Consumers:
--
1.8.0
next prev parent reply other threads:[~2014-08-14 0:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 0:40 [PATCHv3 0/2] regulator: of: Add support for pasing regulator suspend state Chanwoo Choi
2014-08-14 0:40 ` [PATCHv3 1/2] regulator: of: Add support for parsing regulator_state for " Chanwoo Choi
2014-08-14 0:40 ` Chanwoo Choi [this message]
2014-08-15 10:56 ` [PATCHv3 2/2] dt-bindings: regulator: Add regulator suspend state for PM state Mark Brown
2014-08-15 12:15 ` Chanwoo Choi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407976814-21882-3-git-send-email-cw00.choi@samsung.com \
--to=cw00.choi@samsung.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=k.kozlowski@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®