From patchwork Fri Jan 24 10:58:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 23669 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 45F37212DF for ; Fri, 24 Jan 2014 11:02:48 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id j5sf4956293qaq.6 for ; Fri, 24 Jan 2014 03:02:47 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=ez2e3K9r2w3W4mKgLpzBLUo+Ia+fDXYngx0QUKsgWDk=; b=kdL/Bj/9UbDWRTyD4dbiT2NoWFlMUmdJRQKJJC3imk3JmQvC+f5LOXRfRHcHXfdtIS ObLEO5+rhPKT+zAidLv/abmChf06hICvjmQQFYi0+QqYP9MrDGHhXi7JqleqS9aTIE67 O4M4/AoWgRbG2I2pmUBjdX/KOOYm0w9DL873LHZ5/o9JkFboAK60MoWbvWwUpJ5eHC9z oiuTkC2n8sC5lTIIDxYX+8YXGCEt0gY9vsIdmsLhN/iRlDhvEmgRCwrTYW0+Exn8w6vn fdeRQWFbMNhJuovi6JDupiV3QvwU/BzsT34rWqUWuRhpfy9n8o1UcZsyd847Toqf6tJC Cf/A== X-Gm-Message-State: ALoCoQkrf0CcbQYT5MVCFlBlurUndmG32Scs3a3zu45O8mUPRFyhfyX59cp+D5KVFmf7b4Z+MifR X-Received: by 10.236.17.161 with SMTP id j21mr4077710yhj.55.1390561367427; Fri, 24 Jan 2014 03:02:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.65 with SMTP id a59ls628119qge.72.gmail; Fri, 24 Jan 2014 03:02:47 -0800 (PST) X-Received: by 10.58.226.163 with SMTP id rt3mr7379218vec.34.1390561367327; Fri, 24 Jan 2014 03:02:47 -0800 (PST) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id w6si326406vcz.8.2014.01.24.03.02.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 Jan 2014 03:02:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id jx11so1871153veb.10 for ; Fri, 24 Jan 2014 03:02:47 -0800 (PST) X-Received: by 10.221.55.8 with SMTP id vw8mr7305437vcb.8.1390561367243; Fri, 24 Jan 2014 03:02:47 -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.174.196 with SMTP id u4csp93583vcz; Fri, 24 Jan 2014 03:02:46 -0800 (PST) X-Received: by 10.66.232.129 with SMTP id to1mr13800740pac.29.1390561364100; Fri, 24 Jan 2014 03:02:44 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xu6si747956pab.109.2014.01.24.03.02.43; Fri, 24 Jan 2014 03:02:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1751911AbaAXLCm (ORCPT + 9 others); Fri, 24 Jan 2014 06:02:42 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:38706 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751285AbaAXLCl (ORCPT ); Fri, 24 Jan 2014 06:02:41 -0500 Received: by mail-pa0-f51.google.com with SMTP id ld10so3160880pab.10 for ; Fri, 24 Jan 2014 03:02:41 -0800 (PST) X-Received: by 10.66.66.234 with SMTP id i10mr13673776pat.127.1390561361418; Fri, 24 Jan 2014 03:02:41 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id g6sm4741367pat.2.2014.01.24.03.02.37 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 24 Jan 2014 03:02:40 -0800 (PST) From: Sachin Kamat To: devicetree@vger.kernel.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, pawel.moll@arm.com, lee.jones@linaro.org, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, sachin.kamat@linaro.org Subject: [PATCH v2 Resend] Documentation: mfd: Add binding document for S2MPA01 Date: Fri, 24 Jan 2014 16:28:07 +0530 Message-Id: <1390561087-31850-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.128.179 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 --- * Re-organised as suggested by Mark Rutland. --- Documentation/devicetree/bindings/mfd/s2mpa01.txt | 86 +++++++++++++++++++++ 1 file changed, 86 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..70879b92b24b --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/s2mpa01.txt @@ -0,0 +1,86 @@ + +* 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: Interrupt specifier for interrupt source (connected to SoC). + +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 for BUCKs = [6250/12500(default)/25000/50000] uV/us + + BUCK[1/2/3/4] supports disabling ramp delay on hardware, so explictly + regulator-ramp-delay = <0> can be used for them to disable ramp delay. + 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. + Grouping of BUCKs sharing ramp rate setting is as follow : BUCK[1, 6], + BUCK[2, 4], and BUCK[8, 9, 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>; + }; + }; + };