From patchwork Wed Jan 22 16:07:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3524111 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3E891C02DC for ; Wed, 22 Jan 2014 16:08:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3D5F42016C for ; Wed, 22 Jan 2014 16:08:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 19F5620154 for ; Wed, 22 Jan 2014 16:08:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756018AbaAVQIb (ORCPT ); Wed, 22 Jan 2014 11:08:31 -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 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZT000YM8TGQD80@mailout3.w1.samsung.com>; Wed, 22 Jan 2014 16:08:04 +0000 (GMT) X-AuditID: cbfec7f5-b7fc96d000004885-cd-52dfece3d0d7 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 70.AF.18565.3ECEFD25; Wed, 22 Jan 2014 16:08:03 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MZT00FN88T8I990@eusync2.samsung.com>; Wed, 22 Jan 2014 16:08:03 +0000 (GMT) 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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; + }; }; };