From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932778AbaFIK36 (ORCPT ); Mon, 9 Jun 2014 06:29:58 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:56212 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932330AbaFIK3t (ORCPT ); Mon, 9 Jun 2014 06:29:49 -0400 X-AuditID: cbfee690-b7fb56d000003439-41-53958c9a3d69 From: Chanwoo Choi To: broonie@kernel.org, lgirdwood@gmail.com, grant.likely@linaro.org, robh+dt@kernel.org Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Chanwoo Choi Subject: [PATCH 2/2] dt-bindings: regulator: Add regulator suspend state for PM state Date: Mon, 09 Jun 2014 19:29:40 +0900 Message-id: <1402309780-8118-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1402309780-8118-1-git-send-email-cw00.choi@samsung.com> References: <1402309780-8118-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsWyRsSkQHdWz9Rgg/MrJSymPnzCZnH9y3NW i/lHzrFaHPizg9HibNMbdotvVzqYLC7vmsNmcbtxBZtF694j7A6cHjtn3WX32LSqk83jzrU9 bB59W1YxenzeJBfAGsVlk5Kak1mWWqRvl8CVsfXFG9aCu3wVt2f5NTBu5+li5OCQEDCRuHTM r4uRE8gUk7hwbz1bFyMXh5DAUkaJrpY+RoiEicTK+bOYIRLTGSUubp/DBOE0MUns2XiWFaSK TUBLYv+LG2wgU0UEoiTWdoDVMAvMZpRoOd/HDFIjLBAucerWdjYQm0VAVWL+jhtMIDavgIvE +cMP2CC2yUl82POIHcTmFHCVWH1yH1iNEFDNt8VLWEGGSgisY5doXTqBCWKQgMS3yYdYIN6R ldh0gBlijqTEwRU3W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Dz88ZeG /ALlW+7/FiwU+bbe7CXPXKdb+SvMDtV4Zv6ZxKvFWD9h7j1J2+ztAtnV7H+f3eP+dMQousBN 0Ndglea+Ve17qiymbJu8V37bD0uufVLvDnld7OPJucRd1/JgWlCuVajRN6fTdWZKLMUZiYZa zEXFiQDWwIuO8AIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Documentation/devicetree/bindings/regulator/regulator.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/regulator.txt b/Documentation/devicetree/bindings/regulator/regulator.txt index e2c7f1e..b2a4a72 100644 --- a/Documentation/devicetree/bindings/regulator/regulator.txt +++ b/Documentation/devicetree/bindings/regulator/regulator.txt @@ -19,6 +19,12 @@ 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 +- regulator-state-[standby/mem/disk] sub-root node for suspend state + regulator-volt: voltage consumers may set in suspend state + regulator-mode: voltage mode in suspend state + regulator-on-in-suspend: regulator should be on in suspend state + regulator-off-in-suspend: regulator should be off in suspend state Deprecated properties: - regulator-compatible: If a regulator chip contains multiple @@ -34,6 +40,12 @@ Example: regulator-max-microvolt = <2500000>; regulator-always-on; vin-supply = <&vin>; + + regulator-state-mem { + regulator-volt = <1000000>; + regulator-mode = <0x8>; + regulator-off-in-suspend; + }; }; Regulator Consumers: -- 1.8.0