From patchwork Sat Feb 8 16:03:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 3610481 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 BDE459F344 for ; Sat, 8 Feb 2014 16:06:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3C0020163 for ; Sat, 8 Feb 2014 16:06:19 +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 D168D20115 for ; Sat, 8 Feb 2014 16:06:18 +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 1WCAOm-0004sB-7u; Sat, 08 Feb 2014 16:04:57 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCAOX-0006BI-H8; Sat, 08 Feb 2014 16:04:41 +0000 Received: from mail-ee0-f46.google.com ([74.125.83.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WCAO6-00067w-8p for linux-arm-kernel@lists.infradead.org; Sat, 08 Feb 2014 16:04:19 +0000 Received: by mail-ee0-f46.google.com with SMTP id c13so2081752eek.33 for ; Sat, 08 Feb 2014 08:03:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QWlfnVmOW3mKvL0tiq/oCcNK37P/wePE0GpkH8iJTxY=; b=iYjYksw5n28nm5shYWuQWWzxcD4nFUaKH2aZMeEyHB+nNTOz6XM7y2SD/YIMOicXfM LczJnjZSULILLsFgImAYz9pI4dWYO9ulhtj772HsSS72HJLDYwFRWSKqdosJ55zVoZDh aaneLgkkh6b25uHRxUBCWM+dx20VEQOCmnv2o5PbMb4SLDZ7sG0nTBqXQsm3586876je m7mbleCIEd2phNm6ESbcD1QmsrsrTLs15gQoP5BVb6A+/VvCWFyI2Q1v8y3/xM3ztiaQ l8rZOdWKTSkQGYn1sqDDdjvD+bfmUu0jWoAnnU0PFGKRVjTXYQhRvictcITGDry3f9oN Tw7w== X-Received: by 10.14.219.73 with SMTP id l49mr28648eep.112.1391875432585; Sat, 08 Feb 2014 08:03:52 -0800 (PST) Received: from mac.fastwebnet.it (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by mx.google.com with ESMTPSA id f45sm30397678eeg.5.2014.02.08.08.03.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 08 Feb 2014 08:03:51 -0800 (PST) From: Carlo Caione To: linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, maxime.ripard@free-electrons.com, hdegoede@redhat.com, emilio@elopez.com.ar, wens@csie.org, sameo@linux.intel.com, lee.jones@linaro.org Subject: [PATCH 3/3] mfd: axp20x: Add bindings documentation Date: Sat, 8 Feb 2014 17:03:48 +0100 Message-Id: <1391875428-6281-4-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1391875428-6281-1-git-send-email-carlo@caione.org> References: <1391875428-6281-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140208_110414_500659_E6FF10ED X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: Carlo Caione 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 Bindings documentation for the axp20x driver. In this file also two sub-nodes (PEK and regulators) are documented. Signed-off-by: Carlo Caione --- Documentation/devicetree/bindings/mfd/axp20x.txt | 87 ++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree/bindings/mfd/axp20x.txt new file mode 100644 index 0000000..ccea6b8 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt @@ -0,0 +1,87 @@ +* axp20x device tree bindings + +The axp20x family current members :- +axp202 (x-powers) +axp209 (x-powers) + +Required properties: +- compatible : Should be "x-powers,axp20x" (for axp202 and axp209) +- interrupt-controller : axp20x has its own internal IRQs +- #interrupt-cells : should be set to 1 +- interrupt-parent : The parent interrupt controller +- interrupts : Specifies the list of interrupt lines which are handled by + the device in the parent controller's notation +- reg : Specifies base physical address and size of the registers + +Sub-nodes +* regulators : Contain the regulator nodes. The regulators are bound using + their name as listed here: dcdc2, dcdc3, ldo1, ldo2, ldo3, + ldo4, ldo5. + The bindings details of individual regulator device can be found in: + Documentation/devicetree/bindings/regulator/regulator.txt with the + exception of: + + - dcdc-freq : defines the work frequency of DC-DC where + F=(1+dcdc-freq*5%)*1.5MHz + +* axp20x-pek : Power Enable Key + - compatible : should be "x-powers,axp20x-pek" + - interrupts : two interrupt numbers with order defined by interrupt-names + (one irq number for rising transition of the power key, the + other one for falling transition) + - interrupt-names : should be "PEK_DBR" and "PEK_DBF" + +Example: + +axp { + compatible = "x-powers,axp20x"; + interrupt-controller; + #interrupt-cells = <1>; + + axp20x-pek { + compatible = "x-powers,axp20x-pek"; + interrupts = <33>, <34>; + interrupt-names = "PEK_DBR", "PEK_DBF"; + }; + + regulators { + dcdc-freq = "8"; + + axp_dcdc2: dcdc2 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <2275000>; + dcdc-workmode = <0>; + }; + + axp_dcdc3: dcdc3 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <3500000>; + dcdc-workmode = <0>; + }; + + axp_ldo1: ldo1 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + axp_ldo2: ldo2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + + axp_ldo3: ldo3 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <3500000>; + }; + + axp_ldo4: ldo4 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <3300000>; + }; + + axp_ldo5: ldo5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + }; +};