From patchwork Fri Jan 24 13:37:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3534691 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2C6A99F2ED for ; Fri, 24 Jan 2014 13:39:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EACEE2012E for ; Fri, 24 Jan 2014 13:39:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E3E320123 for ; Fri, 24 Jan 2014 13:39:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752527AbaAXNiw (ORCPT ); Fri, 24 Jan 2014 08:38:52 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46309 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752497AbaAXNiV (ORCPT ); Fri, 24 Jan 2014 08:38:21 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZW00JCJR7V6780@mailout1.w1.samsung.com>; Fri, 24 Jan 2014 13:38:19 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-e9-52e26ccb0b91 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id A9.2E.23059.BCC62E25; Fri, 24 Jan 2014 13:38:19 +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 <0MZW002LPR7ODI00@eusync2.samsung.com>; Fri, 24 Jan 2014 13:38:19 +0000 (GMT) From: Krzysztof Kozlowski To: Sangbeom Kim , Liam Girdwood , Mark Brown , Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Sachin Kamat Cc: Krzysztof Kozlowski , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v3 2/2] regulator: s5m8767: Document new binding for Buck9 GPIO control Date: Fri, 24 Jan 2014 14:37:58 +0100 Message-id: <1390570678-30686-3-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1390570678-30686-1-git-send-email-k.kozlowski@samsung.com> References: <1390570678-30686-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGLMWRmVeSWpSXmKPExsVy+t/xK7qncx4FGcyZy2KxccZ6VoupD5+w Wcw/co7V4vULQ4uzTW/YLe5/Pcpo8e1KB5PF5V1z2CxmnN/HZLH2yF12i5N/ehktTnezWlxc 8YXJgddj56y77B6bVnWyedy5tofNY97JQI++LasYPT5vkgtgi+KySUnNySxLLdK3S+DK+LPv LWNBN3/FznmnGBsY1/F0MXJySAiYSDTdfcEOYYtJXLi3nq2LkYtDSGApo8Ti/3+gnD4mia57 zWBVbALGEpuXLwFLiAgcZJI4+r0HzGEWOMoosb31BQtIlbBApMSk+ZuYQWwWAVWJxVNWM4HY vALuEtuenweKcwDtU5CYM8kGxOQU8JC4cksGpEIIqGLa2+vMExh5FzAyrGIUTS1NLihOSs81 1CtOzC0uzUvXS87P3cQICcsvOxgXH7M6xCjAwajEwzsj8GGQEGtiWXFl7iFGCQ5mJRHerQGP goR4UxIrq1KL8uOLSnNSiw8xMnFwSjUwpk6aoLMxiu9kcQb3K5HTkmdc7sqd5laa3fQ3hKHn 2kPGEOUzBe+3rFRT1at8eXZzueqt048Tds/0XC2x+1vvwwmS/0LWaXleNN1/fypLUDHHsdqe lMseOdf3/ctreX7S88VLo+SoW6cj/WOYOerv+k33evrT68mB4un914JWKJqquV42W2V9XYml OCPRUIu5qDgRAH/quI4pAgAA 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 binding 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 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt b/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt index fc6b38f035bd..d290988ed975 100644 --- a/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/s5m8767-regulator.txt @@ -69,13 +69,16 @@ 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-gpios: (optional) GPIO specifier for one + GPIO controlling this regulator (enable/disable); This is + valid only for buck9. 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 +151,13 @@ 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-gpios = <&gpk0 2 0>; + }; }; };