From patchwork Fri Nov 22 15:51:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3222971 Return-Path: X-Original-To: patchwork-linux-arm@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 431B09F26C for ; Fri, 22 Nov 2013 15:54:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1E353207A4 for ; Fri, 22 Nov 2013 15:54:53 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE7DA207A1 for ; Fri, 22 Nov 2013 15:54:51 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vjt2i-0005Xy-Us; Fri, 22 Nov 2013 15:53:17 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vjt2H-0001uR-76; Fri, 22 Nov 2013 15:52:49 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vjt1f-0001l9-JL for linux-arm-kernel@lists.infradead.org; Fri, 22 Nov 2013 15:52:14 +0000 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 <0MWO006YM9D29KA0@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 22 Nov 2013 15:51:23 +0000 (GMT) X-AuditID: cbfec7f4-b7fee6d000004b2d-21-528f7d7b7094 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 1E.A6.19245.B7D7F825; Fri, 22 Nov 2013 15:51:23 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MWO00LWT9DEUH20@eusync1.samsung.com>; Fri, 22 Nov 2013 15:51:23 +0000 (GMT) From: Krzysztof Kozlowski To: MyungJoo Ham , Chanwoo Choi , Samuel Ortiz , Lee Jones , Anton Vorontsov , David Woodhouse , Liam Girdwood , Mark Brown , Grant Likely , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Pawel Moll , Stephen Warren , Ian Campbell , Rob Landley , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 5/5] mfd: max14577: Add device tree bindings document Date: Fri, 22 Nov 2013 16:51:09 +0100 Message-id: <1385135469-27044-6-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1385135469-27044-1-git-send-email-k.kozlowski@samsung.com> References: <1385135469-27044-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsVy+t/xy7rVtf1BBue+s1kc3KppsXHGelaL qQ+fsFlc//Kc1WL+kXOsFhNXTma2OPBnB6PFuVcrGS1evzC0ONv0ht3i/tejjBbfrnQwWWx6 fI3VYmHbEhaLy7vmsFmsPXKX3eJ24wo2iwnT17JYHF5xgMli3cvpLBanu1ktXh1sY3EQ81gz bw2jx4LPV9g9JvR/YvTYOesuu8fK5V/YPDav0PLYtKqTzePV6pmsHneu7WHzmHcy0GPzknqP vi2rGD0+b5Lz2Dg3NIAvissmJTUnsyy1SN8ugSvjy5bSgscCFavmTmdrYHzA28XIySEhYCKx 7sdsNghbTOLCvfVgtpDAUkaJo2vdIew+JomH5+xBbDYBY4nNy5cA1XBxiAjMYZXYfeYZC4jD LHCUUeJt5y4mkCphAQ+JxavegE1iEVCVePH2HVCcg4NXwF2i5SYriCkhoCAxZ5INSAUnUPWj hoWMIGEhoIr+9Y4TGHkXMDKsYhRNLU0uKE5KzzXUK07MLS7NS9dLzs/dxAiJmC87GBcfszrE KMDBqMTDu8OyL0iINbGsuDL3EKMEB7OSCC8HMN6EeFMSK6tSi/Lji0pzUosPMTJxcEo1MCpc rnUpSo2VPfJqxx25ZX8vGd+UnG/xnXfu79yVE79FG9xsN+Z8dfST6ZvJB0KPbWSwFuEvrD3C Gx73hz9LfymP+4FN02QXzHjWuEODQ7grK3imjffaGeumzxHek3bS6cr8xWn9P/m8HSzEgp9+ nfbfz/L+xIynrpI324sjy3RvJZ/w+DV1/R0lluKMREMt5qLiRADZJEX2dgIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131122_105211_778239_62E9B18B X-CRM114-Status: UNSURE ( 7.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.4 (-------) Cc: Kyungmin Park , Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Kyungmin Park --- Documentation/devicetree/bindings/mfd/max14577.txt | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/max14577.txt diff --git a/Documentation/devicetree/bindings/mfd/max14577.txt b/Documentation/devicetree/bindings/mfd/max14577.txt new file mode 100644 index 0000000..f4fd163 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/max14577.txt @@ -0,0 +1,48 @@ +MAXIM MAX14577 multi-function device + +MAX14577 is a Multi-function device with Micro-USB Interface Circuit, Li+ +Battery Charger and SFOUT LDO output for powering USB devices. It is +interfaced to host controller using I2C. + +Required properties: +- compatible : Must be "maxim,max14577". +- reg : I2C slave address for the max14577 chip. +- interrupts : IRQ line for the max14577 chip. +- interrupt-parent : The parent interrupt controller. + +Optional nodes: +- regulators : + Required child node properties: + - compatible : "maxim,max14577-regulator" + + Optional child nodes: + Each child node representing a regulator, following standard regulator + bindings. Valid names for a regulator are: "CHARGER" and "SAFEOUT". + The SAFEOUT is a constant voltage regulator so there is no need to specify + voltages for it. + + [*] refer Documentation/devicetree/bindings/regulator/regulator.txt + +Example: + max14577@25 { + compatible = "maxim,max14577"; + reg = <0x25>; + interrupt-parent = <&gpx1>; + interrupts = <5 0>; + + regulators { + compatible = "maxim,max14577-regulator"; + + safeout_reg: safeout@1 { + regulator-compatible = "SAFEOUT"; + regulator-name = "SAFEOUT"; + }; + charger_reg: charger@0 { + regulator-compatible = "CHARGER"; + regulator-name = "CHARGER"; + regulator-min-microamp = <90000>; + regulator-max-microamp = <950000>; + regulator-boot-on; + }; + }; + };