From patchwork Fri Dec 6 11:32:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3295241 Return-Path: X-Original-To: patchwork-linux-arm@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 5F88DC0D4A for ; Fri, 6 Dec 2013 11:33:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3FFA520435 for ; Fri, 6 Dec 2013 11:33:55 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F250120439 for ; Fri, 6 Dec 2013 11:33:53 +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 1Voteq-0002Ke-0y; Fri, 06 Dec 2013 11:33:20 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Votei-0002Qn-An; Fri, 06 Dec 2013 11:33:12 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VoteQ-0002N5-Cd for linux-arm-kernel@lists.infradead.org; Fri, 06 Dec 2013 11:32:56 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) 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 <0MXD00IECUQ49D70@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 06 Dec 2013 11:32:28 +0000 (GMT) X-AuditID: cbfec7f4-b7f966d0000003d9-bb-52a1b5cce0ec Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id A6.9C.00985.CC5B1A25; Fri, 06 Dec 2013 11:32:28 +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 <0MXD00DO0UPY3W10@eusync2.samsung.com>; Fri, 06 Dec 2013 11:32:28 +0000 (GMT) From: Krzysztof Kozlowski To: Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley , Anton Vorontsov , David Woodhouse , Liam Girdwood , Mark Brown , Kyungmin Park , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v7 3/3] mfd: max14577: Add device tree bindings document Date: Fri, 06 Dec 2013 12:32:14 +0100 Message-id: <1386329534-14186-4-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1386329534-14186-1-git-send-email-k.kozlowski@samsung.com> References: <1386329534-14186-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsVy+t/xK7pnti4MMvi8W9Hi4FZNi40z1rNa TH34hM3i+pfnrBbzj5xjtZi4cjKzxblXKxktXr8wtDjb9Ibd4v7Xo4wW3650MFlsenyN1WJh 2xIWi8u75rBZrD1yl91i6fWLTBYTpq9lsTi84gCTxbqX01ksXh1sY3EQ8Vgzbw2jx4LPV9g9 JvR/YvTYOesuu8fK5V/YPDav0PLYtKqTzePV6pmsHneu7QEKLan36NuyitHj8yY5j41zQwN4 o7hsUlJzMstSi/TtErgyDs39w1wwVbhi2dG7zA2Mb/m7GDk5JARMJNo3zGWBsMUkLtxbz9bF yMUhJLCUUWLejBWsEE4fk8T8C8/YQarYBIwlNi9fAlYlInCLRWLCy3XsIA6zwEZGifdHNzKB VAkLeEjMvvAFzGYRUJX4+eADK4jNK+AucfnBVsYuRg6gfQoScybZgIQ5gcqPHTkHdoYQUMmt ze9YJzDyLmBkWMUomlqaXFCclJ5rqFecmFtcmpeul5yfu4kREiFfdjAuPmZ1iFGAg1GJhzdh zYIgIdbEsuLK3EOMEhzMSiK8NssXBgnxpiRWVqUW5ccXleakFh9iZOLglGpgVPG5ct/BTXxF 0Akdrt56x4JgVe1mZk81fxG2hibRewIHGSVP7CtWr43se9nX6ZXs92pZ9OGMA6W/b/1e1rTt 8/9Nf0/HXi+8OJ/r8+OfmpF+ScZ5HlIn9eZ1zr/5zHOm249AhSdn1lb3zNp9wWPzsX1/Du3d Gy/M9TaM31DpVMI7n62OKkW9SizFGYmGWsxFxYkA2J89nm4CAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131206_063254_543368_DC9AD828 X-CRM114-Status: UNSURE ( 8.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.1 (-------) Cc: Chanwoo Choi , Marek Szyprowski , Lee Jones , 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.4 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 | 65 ++++++++++++++++++++ 1 file changed, 65 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 000000000000..0b2449aaf8bf --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/max14577.txt @@ -0,0 +1,65 @@ +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: +- max14577-muic : + Node used only by extcon consumers. + Required properties: + - compatible : "maxim,max14577-muic" + +- regulators : + Required properties: + - compatible : "maxim,max14577-regulator" + + May contain a sub-node per regulator from the list below. Each + sub-node should contain the constraints and initialization information + for that regulator. See regulator.txt for a description of standard + properties for these sub-nodes. + + List of valid regulator names: CHARGER, SAFEOUT. + + The SAFEOUT is a fixed voltage regulator so there is no need to specify + voltages for it. + + +Example: + +#include + +max14577@25 { + compatible = "maxim,max14577"; + reg = <0x25>; + interrupt-parent = <&gpx1>; + interrupts = <5 IRQ_TYPE_NONE>; + + muic: max14577-muic { + compatible = "maxim,max14577-muic"; + }; + + regulators { + compatible = "maxim,max14577-regulator"; + + safeout_reg: regulator@1 { + regulator-compatible = "SAFEOUT"; + regulator-name = "SAFEOUT"; + }; + charger_reg: regulator@0 { + regulator-compatible = "CHARGER"; + regulator-name = "CHARGER"; + regulator-min-microamp = <90000>; + regulator-max-microamp = <950000>; + regulator-boot-on; + }; + }; +};