From patchwork Wed Jan 8 06:26:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 22933 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C219202DA for ; Wed, 8 Jan 2014 06:30:40 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f11sf2226328qae.3 for ; Tue, 07 Jan 2014 22:30:39 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=gUDDdWySTy0rHBwYzq5RI8zo9kcicDCGicf9ITJfKg0=; b=ezuTAYZAcO8zG93YiXsU4l6Q9I+eKu9DiK4KFmuAVVYv+pZnY69AgCN4e5Mkka0zG/ 6gasLzfzTKJyHNnw6UOg1HS2s/eDu0sxRRxoUTwzga7guIm3G0Ji3K34v4/xD2REsZBI 12sfuS8avVHHLO4EC6MrNYuGybyjTgWMIrmMsRDKv9T2CugGQQreVno7ivZuFDx5AMbB xHuPPdbWFhJ4t1cKF+trntnQAogCQEgLuSq2rAu8U/2PmFAUwoBbX5Y20sTU8Fh4TsoK VesTgd1bwxf0LfORtkIgAKp4R/nJF8Q4NGHIHi/hZoZh9fQlMIqSOt1sP49tKJq4cHD5 Itfw== X-Gm-Message-State: ALoCoQkB0/6sSWHEMVVDzTn0TbJXbR9HsCBI8r0Ts2MrTLmTxEHCyuSm169W27Dnu/SLpPZtMhgi X-Received: by 10.236.125.79 with SMTP id y55mr418961yhh.53.1389162639430; Tue, 07 Jan 2014 22:30:39 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.106.102 with SMTP id gt6ls477691qeb.78.gmail; Tue, 07 Jan 2014 22:30:39 -0800 (PST) X-Received: by 10.58.187.129 with SMTP id fs1mr954991vec.45.1389162639317; Tue, 07 Jan 2014 22:30:39 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id er6si35365322vdc.49.2014.01.07.22.30.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 22:30:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q12so843577vbe.21 for ; Tue, 07 Jan 2014 22:30:39 -0800 (PST) X-Received: by 10.52.249.105 with SMTP id yt9mr370700vdc.67.1389162639194; Tue, 07 Jan 2014 22:30:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp206472ved; Tue, 7 Jan 2014 22:30:38 -0800 (PST) X-Received: by 10.68.230.137 with SMTP id sy9mr139209108pbc.126.1389162638244; Tue, 07 Jan 2014 22:30:38 -0800 (PST) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id k3si38812828pbb.264.2014.01.07.22.30.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 22:30:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id jt11so1162190pbb.36 for ; Tue, 07 Jan 2014 22:30:37 -0800 (PST) X-Received: by 10.69.31.170 with SMTP id kn10mr138165107pbd.106.1389162637784; Tue, 07 Jan 2014 22:30:37 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ae5sm184011179pac.18.2014.01.07.22.30.33 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 22:30:37 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org, broonie@kernel.org, lee.jones@linaro.org, robh+dt@kernel.org, lgirdwood@gmail.com, sameo@linux.intel.com, sbkim73@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 3/3] Documentation: mfd: Add binding document for S2MPA01 Date: Wed, 8 Jan 2014 11:56:30 +0530 Message-Id: <1389162390-4582-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1389162390-4582-1-git-send-email-sachin.kamat@linaro.org> References: <1389162390-4582-1-git-send-email-sachin.kamat@linaro.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.212.48 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: 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 --- Documentation/devicetree/bindings/mfd/s2mpa01.txt | 91 +++++++++++++++++++++ 1 file changed, 91 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..ae750a28821b --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/s2mpa01.txt @@ -0,0 +1,91 @@ + +* 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 specifiers for interrupt sources. + +Optional nodes: +- regulators: The regulators of s2mpa01 that have to be instantiated should be +included in a sub-node named 'regulators'. Regulator nodes included in this +sub-node should be of the format as listed below. + + regulator_name { + [standard regulator constraints....]; + }; + + 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 regulator constraints inside the regulator nodes use the standard regulator +bindings which are documented elsewhere. + +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>; + }; + }; + };