From patchwork Fri Mar 14 11:51:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 330286 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 890D12C00BB for ; Fri, 14 Mar 2014 22:58:45 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbaCNL6X (ORCPT ); Fri, 14 Mar 2014 07:58:23 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:61012 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754562AbaCNL6U (ORCPT ); Fri, 14 Mar 2014 07:58:20 -0400 Received: by mail-pa0-f42.google.com with SMTP id fb1so2548174pad.15 for ; Fri, 14 Mar 2014 04:58:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EfzLRF+aUcsq6A6Up7EhTwK0IjTVnnRfxTHlt+hhrzE=; b=Ykk7JdXtsMU3dCZxiSEUcO6JV7RJzIX1B8MuPCiFv5MeK0q2S7uwKiphlANIZi+Rnq blIk1ssm6T2oE/ZvYLdhUz0ddYfUlWZbyF+N9WgZZ4hfGUHmPxxX2NVvxiIh5PqVKdWG GLfuoANKnl9aKcD5XYwUPyevvafsX0W7r9/fqW+xL7283CFcBadFPHK5sVVtBegeHQHN McNhK3lBHNLQinfJZ8u1CuI70+eEfwiBUf6PGZiNazvOkH86zse1fv7avCfFM0CR+un7 QiabRKrMvyTPtjRySo4pu592xNhed7OqaNR6PE1aeD0c2ZqgacLIJN6/2koHivbbD5Qp FxZw== X-Gm-Message-State: ALoCoQlPv4sdsi7R+HCJkjLTwYCrmD06wcgsD1dJ265OZeA2MKOZF+qnF2S4E5nTrFAcUXZqWSYL X-Received: by 10.68.238.201 with SMTP id vm9mr8687449pbc.18.1394798300419; Fri, 14 Mar 2014 04:58:20 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id vo1sm24869633pab.32.2014.03.14.04.58.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Mar 2014 04:58:19 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lee.jones@linaro.org, sachin.kamat@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v4 3/3] Documentation: mfd: Add binding document for S2MPA01 Date: Fri, 14 Mar 2014 17:21:59 +0530 Message-Id: <1394797919-24642-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394797919-24642-1-git-send-email-sachin.kamat@linaro.org> References: <1394797919-24642-1-git-send-email-sachin.kamat@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Added initial binding documentation for S2MPA01 MFD. Signed-off-by: Sachin Kamat Acked-by: Mark Brown --- No changes since v3. --- Documentation/devicetree/bindings/mfd/s2mpa01.txt | 90 +++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/s2mpa01.txt diff --git a/Documentation/devicetree/bindings/mfd/s2mpa01.txt b/Documentation/devicetree/bindings/mfd/s2mpa01.txt new file mode 100644 index 000000000000..c13d3d8c3947 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/s2mpa01.txt @@ -0,0 +1,90 @@ + +* Samsung S2MPA01 Voltage and Current Regulator + +The Samsung S2MPA01 is a multi-function device which includes high +efficiency buck converters including Dual-Phase buck converter, various LDOs, +and an RTC. It is interfaced to the host controller using an I2C interface. +Each sub-block is addressed by the host system using different I2C slave +addresses. + +Required properties: +- compatible: Should be "samsung,s2mpa01-pmic". +- reg: Specifies the I2C slave address of the PMIC block. It should be 0x66. + +Optional properties: +- interrupt-parent: Specifies the phandle of the interrupt controller to which + the interrupts from s2mpa01 are delivered to. +- interrupts: An interrupt specifier for the sole interrupt generated by the + device. + +Optional nodes: +- regulators: The regulators of s2mpa01 that have to be instantiated should be + included in a sub-node named 'regulators'. Regulator nodes and constraints + included in this sub-node use the standard regulator bindings which are + documented elsewhere. + +Properties for BUCK regulator nodes: +- regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500 + (default), 25000, or 50000. May be 0 for disabling the ramp delay on + BUCK{1,2,3,4}. + + In the absence of the regulator-ramp-delay property, the default ramp + delay will be used. + + NOTE: Some BUCKs share the ramp rate setting i.e. same ramp value will be set + for a particular group of BUCKs. So provide same regulator-ramp-delay=. + + The following BUCKs share ramp settings: + * 1 and 6 + * 2 and 4 + * 8, 9, and 10 + +The following are the names of the regulators that the s2mpa01 PMIC block +supports. Note: The 'n' in LDOn and BUCKn represents the LDO or BUCK number +as per the datasheet of s2mpa01. + + - LDOn + - valid values for n are 1 to 26 + - Example: LDO1, LD02, LDO26 + - BUCKn + - valid values for n are 1 to 10. + - Example: BUCK1, BUCK2, BUCK9 + +Example: + + s2mpa01_pmic@66 { + compatible = "samsung,s2mpa01-pmic"; + reg = <0x66>; + + regulators { + ldo1_reg: LDO1 { + regulator-name = "VDD_ALIVE"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + + ldo2_reg: LDO2 { + regulator-name = "VDDQ_MMC2"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + }; + + buck1_reg: BUCK1 { + regulator-name = "vdd_mif"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-boot-on; + }; + + buck2_reg: BUCK2 { + regulator-name = "vdd_arm"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1350000>; + regulator-always-on; + regulator-boot-on; + regulator-ramp-delay = <50000>; + }; + }; + };