From patchwork Thu Mar 6 10:00:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 25795 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5CB97203C3 for ; Thu, 6 Mar 2014 10:07:30 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id pa12sf5898904veb.0 for ; Thu, 06 Mar 2014 02:07:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=KEFF3NvAXff5v0oZpMcvFSaCNRfhZzObfG9yoJ94wAY=; b=hpeF5CLHIvE2IL7w6K0XmppfsqlOzslN6RfYr9JbC/gyqYe8K/WHUK6mRoH1ruUcOX JMLaJrXHdnP3K5ATDpHE/PFlFC59uRPu/FSyijAXVX0KiHhpm6PZzNOsAXRBf9Rmuotz X3yaSl05+5FKcu2ji9785TjC/8MrSAnoK7LRRYHlqVDRDsfpGrpY1iWGLWcQsG0IuWUj MujHQ9DZ2LWpBenROO1zIB5eArUl+D9+Tjt3gLiQ9wFMUynePul+M4mgUaOAcpf6MCv8 8o0JOJf/NaVXeL9DOU15s+GcMJYHaWUwtIE8neeHZAzkc01mW8QxDXzhS99OUy3vo1PV GVOw== X-Gm-Message-State: ALoCoQlznsTlXxnVNgXHJkn9u4HSWhRshIEAWRUhQZjKlIXWGd4X3mwy8lu4jngy1ogx/9TdvEtO X-Received: by 10.59.8.226 with SMTP id dn2mr2517958ved.30.1394100450118; Thu, 06 Mar 2014 02:07:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.51.130 with SMTP id u2ls647752qga.34.gmail; Thu, 06 Mar 2014 02:07:29 -0800 (PST) X-Received: by 10.52.135.65 with SMTP id pq1mr7224338vdb.13.1394100449938; Thu, 06 Mar 2014 02:07:29 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id zp2si998349vec.84.2014.03.06.02.07.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 02:07:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id lf12so2364223vcb.31 for ; Thu, 06 Mar 2014 02:07:29 -0800 (PST) X-Received: by 10.221.40.10 with SMTP id to10mr4294288vcb.22.1394100448167; Thu, 06 Mar 2014 02:07:28 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp27617vck; Thu, 6 Mar 2014 02:07:26 -0800 (PST) X-Received: by 10.66.240.130 with SMTP id wa2mr13185735pac.73.1394100445947; Thu, 06 Mar 2014 02:07:25 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ra2si4568432pab.269.2014.03.06.02.07.25; Thu, 06 Mar 2014 02:07:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752678AbaCFKHR (ORCPT + 26 others); Thu, 6 Mar 2014 05:07:17 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:59666 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbaCFKHL (ORCPT ); Thu, 6 Mar 2014 05:07:11 -0500 Received: by mail-pb0-f50.google.com with SMTP id md12so2401425pbc.37 for ; Thu, 06 Mar 2014 02:07:11 -0800 (PST) X-Received: by 10.66.155.102 with SMTP id vv6mr13125836pab.89.1394100431434; Thu, 06 Mar 2014 02:07:11 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id lh13sm34041003pab.4.2014.03.06.02.07.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 02:07:05 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, sachin.kamat@linaro.org Subject: [PATCH v3 Resend 3/3] Documentation: mfd: Add binding document for S2MPA01 Date: Thu, 6 Mar 2014 15:30:57 +0530 Message-Id: <1394100057-32677-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394100057-32677-1-git-send-email-sachin.kamat@linaro.org> References: <1394100057-32677-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Added initial binding documentation for S2MPA01 MFD. Signed-off-by: Sachin Kamat Acked-by: Mark Brown --- 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>; + }; + }; + };