From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756068AbaAVQIf (ORCPT ); Wed, 22 Jan 2014 11:08:35 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:24925 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755898AbaAVQIG (ORCPT ); Wed, 22 Jan 2014 11:08:06 -0500 X-AuditID: cbfec7f5-b7fc96d000004885-cd-52dfece3d0d7 From: Krzysztof Kozlowski To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Rob Landley , Sangbeom Kim , Liam Girdwood , Mark Brown , Samuel Ortiz , Lee Jones , Grant Likely , Sachin Kamat , Amit Daniel Kachhap , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Krzysztof Kozlowski , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 2/2] regulator: s5m8767: Document new bindings for Buck9 GPIO control Date: Wed, 22 Jan 2014 17:07:28 +0100 Message-id: <1390406848-20964-3-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1390406848-20964-1-git-send-email-k.kozlowski@samsung.com> References: <1390406848-20964-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsVy+t/xK7qP39wPMri+1cSi4WqIxcYZ61kt pj58wmYx/8g5Vov+NwtZLQ782cFoce7VSkaL1y8MLc42vWG3uP/1KKPFtysdTBYL25awWFze NYfNYsb5fUwWa4/cZbdYev0ik8WE6WtZLNa9nM5i0br3CLvFyT+9jBanu1ktLq74wuQg5rFm 3hpGj8t9vUweO2fdZfdYufwLm8emVZ1sHq9Wz2T1uHNtD5vHvJOBHn1bVjF6fN4kF8AVxWWT kpqTWZZapG+XwJXRdaeVpeCMQMWF6WvYGxiv8HYxcnJICJhIzFt/lxXCFpO4cG89WxcjF4eQ wFJGidebZkM5fUwSW670sINUsQkYS2xevgQsISIwnVWi7882dhCHWeAoo8T21hcsIFXCAlES l7e9BEpwcLAIqEqs6LEGCfMKuEv0HHoEFpYQUJCYM8kGJMwp4CGx5eltsE4hoJKnc++yTGDk XcDIsIpRNLU0uaA4KT3XSK84Mbe4NC9dLzk/dxMjJC6+7mBceszqEKMAB6MSD2/ArntBQqyJ ZcWVuYcYJTiYlUR4WZ7fDxLiTUmsrEotyo8vKs1JLT7EyMTBKdXAmN7CdKDU+LFhnoh8l8Pn LaKHPl60SnZsdF27S8JBW2ljpQlf2pKLOpK/F8UJrsp0kf7of3d+W2VXsD9/3t+/x2O+LUw8 Hrjm7qc3y96tzr1nNbntBcNjT/9198zFS18cvx4ZeEzuteJexckqO7U/T1wvlKbsKyhyiptp yyU798N6c84sfshrqsRSnJFoqMVcVJwIAEZS7xxpAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add documentation for new bindings for controlling (enable/disable) the Buck9 Converter by GPIO (BUCK9EN). Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Marek Szyprowski Cc: Bartlomiej Zolnierkiewicz --- .../bindings/regulator/s5m8767-regulator.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt b/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt index fc6b38f035bd..b52ee77dc4c0 100644 --- a/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt @@ -69,13 +69,18 @@ sub-node should be of the format as listed below. }; }; The above regulator entries are defined in regulator bindings documentation -except op_mode description. +except these properties: - op_mode: describes the different operating modes of the LDO's with power mode change in SOC. The different possible values are, 0 - always off mode 1 - on in normal mode 2 - low power mode 3 - suspend mode + - s5m8767,pmic-ext-control-enable: regulator can be enabled/disabled + by GPIO (valid only for buck9). + - s5m8767,pmic-ext-control-gpio: GPIO specifier for one GPIO + controlling this regulator (valid only for buck9). + This property is required when 's5m8767,pmic-ext-control-enable' is specified. The following are the names of the regulators that the s5m8767 pmic block supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number @@ -148,5 +153,14 @@ Example: regulator-always-on; regulator-boot-on; }; + + vemmc_reg: BUCK9 { + regulator-name = "VMEM_VDD_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + op_mode = <3>; /* Standby Mode */ + s5m8767,pmic-ext-control-enable; + s5m8767,pmic-ext-control-gpio = <&gpk0 2 0>; + }; }; }; -- 1.7.9.5