From patchwork Tue Feb 11 13:03:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3627011 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 9118B9F2F6 for ; Tue, 11 Feb 2014 13:05:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B4A06201F4 for ; Tue, 11 Feb 2014 13:05:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CFE12201F2 for ; Tue, 11 Feb 2014 13:05:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752095AbaBKNFd (ORCPT ); Tue, 11 Feb 2014 08:05:33 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:39619 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbaBKNET (ORCPT ); Tue, 11 Feb 2014 08:04:19 -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 <0N0U0044X1N7CP50@mailout1.w1.samsung.com>; Tue, 11 Feb 2014 13:04:19 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-b2-52fa1fd29325 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 9F.12.23059.2DF1AF25; Tue, 11 Feb 2014 13:04:18 +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 <0N0U006ES1MWRN80@eusync2.samsung.com>; Tue, 11 Feb 2014 13:04:18 +0000 (GMT) From: Krzysztof Kozlowski To: Sangbeom Kim , Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Chanwoo Choi , Mark Brown , Liam Girdwood , Tomasz Figa , devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Subject: [PATCH 12/14] Documentation: mfd/regulator: s2mps11: Document the "op_mode" bindings Date: Tue, 11 Feb 2014 14:03:55 +0100 Message-id: <1392123837-5517-13-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1392123837-5517-1-git-send-email-k.kozlowski@samsung.com> References: <1392123837-5517-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrALMWRmVeSWpSXmKPExsVy+t/xK7qX5H8FGbx7J2OxccZ6VoupD5+w WVz/8pzVYv6Rc6wW/W8Wslqce7WS0eL1C0OLs01v2C3ufz3KaPHtSgeTxeVdc9gsZpzfx2Sx 9shddoul1y8yWUyYvpbFonXvEXaL092sFhdXfGGyWD/jNYuDsMeaeWsYPS739TJ57Jx1l91j 5fIvbB6bVnWyedy5tofNY97JQI++LasYPT5vkgvgjOKySUnNySxLLdK3S+DK2HO7m6ngrVjF 7PNdjA2M+4W6GDk4JARMJBYd0exi5AQyxSQu3FvPBhIWEljKKLHXt4uRC8jsY5L403WNBaSG TcBYYvPyJWwgCRGBzYwSi79fZQVxmAU2sUjMXXWXDaRKWCBeYsbstewgNouAqsT9abPAbF4B d4lTa2+yQSxWkJgzyQYkzAkU7vv0H2qxm8Ty/tgJjLwLGBlWMYqmliYXFCel5xrqFSfmFpfm pesl5+duYoSE+pcdjIuPWR1iFOBgVOLh3aD4M0iINbGsuDL3EKMEB7OSCO8X4V9BQrwpiZVV qUX58UWlOanFhxiZODilGhj59sWX1dxuYOhwDjy1YLPUGYNfSXLPG521jwhuz399qPne5OPn jbUyWxgOuKp5bP9lZ1I3/ecP5yenq6OPLTiv6S0pvaPd+UbNNNVbV/Yk3bhvHPKVP2lG+6rO F0ELJmzraGHStlxd57UlqY/pskDeUuE3jLv3n7j+/b/GWoa9uvcOBbxK3uuqxFKckWioxVxU nAgANvDbcVMCAAA= 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=-4.5 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, 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 Document the "op_mode" properties parsed from DTS by s2mps11 driver. S2MPS11/S2MPS14 regulators support different modes of operation: - Always off; - On/Off controlled by pin/GPIO (PWREN/LDOEN/EMMCEN); - Always on; This is very similar to S5M8767 regulator driver which also supports opmodes (although S5M8767 have also low-power mode). Signed-off-by: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi Cc: Mark Brown Cc: Liam Girdwood 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 | 46 +++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/s2mps11.txt b/Documentation/devicetree/bindings/mfd/s2mps11.txt index f69bec294f02..ffad6bfe2ebf 100644 --- a/Documentation/devicetree/bindings/mfd/s2mps11.txt +++ b/Documentation/devicetree/bindings/mfd/s2mps11.txt @@ -54,6 +54,15 @@ BUCK[3, 4], and BUCK[7, 8, 10] The regulator constraints inside the regulator nodes use the standard regulator bindings which are documented elsewhere. +On S2MPS14 chipset the driver additionally supports "op_mode" properties for +each regulator. + - op_mode: describes the different operating modes of the regulators with + power mode change in SOC. The different possible values are, + 0 - always off mode + 1 - on in normal mode + 3 - suspend mode + (NOTE: value of 2 is reserved) + The following are the names of the regulators that the s2mps11 pmic block supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number as per the datasheet of s2mps11. @@ -112,3 +121,40 @@ Example: }; }; }; + + s2mps14_pmic@66 { + compatible = "samsung,s2mps14-pmic"; + reg = <0x66>; + + s2m_osc: clocks { + compatible = "samsung,s2mps14-clk"; + #clock-cells = 1; + clock-output-names = "xx", "", "zz"; + }; + + regulators { + ldo1_reg: LDO1 { + regulator-name = "VAP_ALIVE_1.0V"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + op_mode = <1>; /* Normal Mode */ + }; + + ldo2_reg: LDO2 { + regulator-name = "VAP_M1_1.2V"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + op_mode = <1>; /* Normal Mode */ + }; + + buck1_reg: BUCK1 { + regulator-name = "VAP_MIF_1.0V"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + op_mode = <3>; /* Standby Mode */ + }; + }; + };