From patchwork Mon Apr 14 08:09:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3977841 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 26261BFF02 for ; Mon, 14 Apr 2014 08:13:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47F4B201BC for ; Mon, 14 Apr 2014 08:13:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E3CA20103 for ; Mon, 14 Apr 2014 08:13:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753085AbaDNIMD (ORCPT ); Mon, 14 Apr 2014 04:12:03 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:47753 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752460AbaDNIJ2 (ORCPT ); Mon, 14 Apr 2014 04:09:28 -0400 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 <0N4000AJ0HBQWQ80@mailout3.w1.samsung.com>; Mon, 14 Apr 2014 09:09:26 +0100 (BST) X-AuditID: cbfec7f5-b7fc96d000004885-b7-534b97b500d2 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id D1.27.18565.5B79B435; Mon, 14 Apr 2014 09:09:26 +0100 (BST) 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 <0N40001VMHBJ5Q70@eusync2.samsung.com>; Mon, 14 Apr 2014 09:09:25 +0100 (BST) From: Krzysztof Kozlowski To: Sangbeom Kim , Liam Girdwood , Mark Brown , Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Tomasz Figa , Krzysztof Kozlowski Subject: [PATCH 3/4] Documentation: regulator: s2mps11: Document external GPIO control Date: Mon, 14 Apr 2014 10:09:08 +0200 Message-id: <1397462949-22379-4-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1397462949-22379-1-git-send-email-k.kozlowski@samsung.com> References: <1397462949-22379-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDLMWRmVeSWpSXmKPExsVy+t/xK7rbpnsHG1xStdg4Yz2rxdSHT9gs 5h85x2rR/2Yhq8W5VysZLV6/MLQ42/SG3eL+16OMFt+udDBZXN41h81ixvl9TBZrj9xlt1h6 /SKTxYTpa1ksWvceYbc43c1qcXHFFyaL9TNeszgIeayZt4bR43JfL5PHzll32T1WLv/C5rFp VSebx51re9g85p0M9OjbsorR4/MmuQDOKC6blNSczLLUIn27BK6M80/uMxX856nouP2JtYGx g7uLkZNDQsBEYmL/KRYIW0ziwr31bF2MXBxCAksZJZ5d38kK4fQxSSw9/5YZpIpNwFhi8/Il YFUiAjeYJSYu28UEkmAWeM4o8fR7OIgtLBAhMXHTdlYQm0VAVeL39H2MXYwcHLwC7hJ/NsdC bFOQWPZlLTNImFPAQ+LNTTaQsBBQxdffs5gmMPIuYGRYxSiaWppcUJyUnmukV5yYW1yal66X nJ+7iRES4l93MC49ZnWIUYCDUYmHl2OrZ7AQa2JZcWXuIUYJDmYlEd5tGV7BQrwpiZVVqUX5 8UWlOanFhxiZODilGhj7Mn5p71qvLJ4m/OX3XCV/ee/7LwwKjB4I3VgScfn++pxcy62CMyWO XPhnsKxu2iGuHW8kf/JvvTLt9YxVE39n7ZKbdLJpwpRUNc47MkKNnCsN7gjl1OxeubX34J7W mTu9ldI/XzAt85kbb/fiwauEtHU7r064EZoRFBR18WIES6L+4rfa4QYJSizFGYmGWsxFxYkA kvcIeU8CAAA= 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.9 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 property for controlling (enable/disable) some of the S2MPS14 regulators by GPIO. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala --- Documentation/devicetree/bindings/mfd/s2mps11.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt index 802e839b0829..d81ba30c0d8b 100644 --- a/Documentation/devicetree/bindings/mfd/s2mps11.txt +++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt @@ -56,6 +56,20 @@ for a particular group of BUCKs. So provide same regulator-ramp-delay. Grouping of BUCKs sharing ramp rate setting is as follow : BUCK[1, 6], BUCK[3, 4], and BUCK[7, 8, 10] +On S2MPS14 the LDO10, LDO11 and LDO12 can be configured to external control +over GPIO. To turn this feature on this property must be added to the regulator +sub-node: + - samsung,ext-control-gpios: GPIO specifier for one GPIO + controlling this regulator (enable/disable); +Example: + LDO12 { + regulator-name = "V_EMMC_2.8V"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + samsung,ext-control-gpios = <&gpk0 2 0>; + }; + + The regulator constraints inside the regulator nodes use the standard regulator bindings which are documented elsewhere.