From patchwork Sat Mar 1 16:45:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 3747581 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 12E3FBF13A for ; Sat, 1 Mar 2014 16:46:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 26B6F20364 for ; Sat, 1 Mar 2014 16:46:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3558520375 for ; Sat, 1 Mar 2014 16:46:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753101AbaCAQp4 (ORCPT ); Sat, 1 Mar 2014 11:45:56 -0500 Received: from mail-ee0-f44.google.com ([74.125.83.44]:60076 "EHLO mail-ee0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752984AbaCAQpk (ORCPT ); Sat, 1 Mar 2014 11:45:40 -0500 Received: by mail-ee0-f44.google.com with SMTP id e49so207565eek.3 for ; Sat, 01 Mar 2014 08:45:38 -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=7W2Iv9lPczZBv2jKfRxIC5GfRLYqWE4LtatP6bJJvQg=; b=dniXF0t/T3EqRcRlV9SulxiLBJ/fdZT3XmJo4vaQMLJG+VUa4/AYDvDkHJyn1rFnY0 R9jEM3YPInBGpkZo2qZIZk00Izr1L0b/Lor+DDsLX1Bw/9lClcjAmcQuXHJ1trHjaoDq mkTAkBzcnzk0kMzk1fj4PFpgDxgAyeRD3kIPJQ8xI8LqzMv3VqmapnlRpX8amJrbPMGj JVhXj9u4w/wOKf+LhCP40wmnpVdE8HF31fq7IBaahtKHaLCg2szrqGmZWLw/xQarsY96 mFDjASh5LMvcyGhDJPMrtN6GgKqDrwNQU0axlkSfkXyXnnRcxtSiyy/uPe7Gd7B4Jwae wQlQ== X-Received: by 10.15.61.134 with SMTP id i6mr528204eex.106.1393692338450; Sat, 01 Mar 2014 08:45:38 -0800 (PST) Received: from localhost.fastwebnet.it (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by mx.google.com with ESMTPSA id a2sm25441488eem.18.2014.03.01.08.45.36 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Sat, 01 Mar 2014 08:45:37 -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, devicetree@vger.kernel.org, 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 2/7] mfd: AXP20x: Add bindings documentation Date: Sat, 1 Mar 2014 17:45:47 +0100 Message-Id: <1393692352-10839-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393692352-10839-1-git-send-email-carlo@caione.org> References: <1393692352-10839-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=-3.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 | 93 ++++++++++++++++++++++++ 1 file changed, 93 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..ae3e3c4 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt @@ -0,0 +1,93 @@ +* 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 +- axp,system-power-controller : Telling whether or not this pmic is + controlling the system power + +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 in KHz + (range: 750-1875) + - dcdc-workmode : 1 for PWM mode, 0 for AUTO mode + +* axp20x-pek : Power Enable Key + - compatible : should be "x-powers,axp20x-pek" + +Example: + +axp: axp20x@34 { + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + axp,system-power-controller; + + compatible = "x-powers,axp209"; + interrupt-controller; + #interrupt-cells = <1>; + + axp20x-pek { + compatible = "x-powers,axp20x-pek"; + }; + + regulators { + dcdc-freq = "8"; + + axp_dcdc2: dcdc2 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <2275000>; + dcdc-workmode = <0>; + regulator-always-on; + }; + + axp_dcdc3: dcdc3 { + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <3500000>; + dcdc-workmode = <0>; + 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>; + }; + }; +}; +