From patchwork Thu Mar 27 21:29:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 3899891 Return-Path: X-Original-To: patchwork-linux-input@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 71A09BF549 for ; Thu, 27 Mar 2014 21:28:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A34D620274 for ; Thu, 27 Mar 2014 21:28:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5DF520266 for ; Thu, 27 Mar 2014 21:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757359AbaC0V2O (ORCPT ); Thu, 27 Mar 2014 17:28:14 -0400 Received: from mail-ee0-f54.google.com ([74.125.83.54]:60876 "EHLO mail-ee0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757218AbaC0V2N (ORCPT ); Thu, 27 Mar 2014 17:28:13 -0400 Received: by mail-ee0-f54.google.com with SMTP id d49so3400794eek.13 for ; Thu, 27 Mar 2014 14:28:12 -0700 (PDT) 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=h0K/Up0QAsy5Lhs0nNCHtkK3PsM6WHLNF8OdGPa9JSY=; b=R/36ux1mnjN0zUsyc3oQgN0bC0ZclWV+lHs0BkwUcKED4Q6Jf2uc/vV+sOJTAQ9TPJ GHTlyTn2Vfzc+AnaeDXRY3+JXHOv9eKhK3hFD874gXgPvnwuoiKS7ifBFP1JD+AixDlJ ue6pF4xSPpDhFvzevue5jPmfjpPGKbblciKoKFOdCwl/5R+Ziw01yb8Lc+GjAZQmeKVD qHDfwyndjYqzWBxL6i+mXnP/+ND9d1ckxzt9FLNFJkqu11w8Zzmon3z9OoUMtDqyFtsi zmz9yI9JfZOgIHJytnu+Zoo+gjLkH2ajBSaWLnwz/lC5N5nJZlif5JiU0zD4tHFNkArC caAw== X-Received: by 10.14.126.73 with SMTP id a49mr4306749eei.46.1395955692066; Thu, 27 Mar 2014 14:28:12 -0700 (PDT) Received: from localhost.fastwebnet.it (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by mx.google.com with ESMTPSA id a4sm7003464eep.12.2014.03.27.14.28.10 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Thu, 27 Mar 2014 14:28:11 -0700 (PDT) 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, dmitry.torokhov@gmail.com, linux-input@vger.kernel.org, linux-doc@vger.kernel.org, lgirdwood@gmail.com, broonie@kernel.org Cc: Carlo Caione Subject: [PATCH v3 03/10] mfd: AXP20x: Add bindings documentation Date: Thu, 27 Mar 2014 22:29:17 +0100 Message-Id: <1395955764-18103-4-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1395955764-18103-1-git-send-email-carlo@caione.org> References: <1395955764-18103-1-git-send-email-carlo@caione.org> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.3 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 Bindings documentation for the AXP20x driver. In this file also sub-nodes are documented. Signed-off-by: Carlo Caione --- Documentation/devicetree/bindings/mfd/axp20x.txt | 83 ++++++++++++++++++++++++ 1 file changed, 83 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..ebc6772 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt @@ -0,0 +1,83 @@ +* axp20x device tree bindings + +The axp20x family current members :- +axp202 (X-Powers) +axp209 (X-Powers) + +Required properties: +- compatible : Should be "x-powers,axp202" or "x-powers,axp209" +- interrupt-controller : axp20x has its own internal IRQs +- #interrupt-cells : Should be set to 1 +- interrupt-parent : The parent interrupt controller +- interrupts : Interrupt specifiers for interrupt sources +- reg : The I2C slave address for the AXP chip + +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: + + - x-powers,dcdc-freq : defines the work frequency of DC-DC in KHz + (range: 750-1875). Default: 1.5MHz + + For each DCDC: + - x-powers,dcdc-workmode: Optional. 1 for PWM mode, 0 for AUTO mode + Default: AUTO mode + +Example: + +axp: axp20x@34 { + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + compatible = "x-powers,axp209"; + interrupt-controller; + #interrupt-cells = <1>; + + regulators { + dcdc-freq = <1500>; + + axp_dcdc2: dcdc2 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <2275000>; + regulator-always-on; + }; + + axp_dcdc3: dcdc3 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <3500000>; + regulator-always-on; + }; + + axp_ldo1: ldo1 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + }; + + axp_ldo2: ldo2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + 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>; + }; + }; +}; +