From: Mark Rutland <mark.rutland@arm.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"sbkim73@samsung.com" <sbkim73@samsung.com>,
"lee.jones@linaro.org" <lee.jones@linaro.org>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"patches@linaro.org" <patches@linaro.org>
Subject: Re: [PATCH v2 3/3] Documentation: mfd: Add binding document for S2MPA01
Date: Wed, 12 Feb 2014 18:10:43 +0000 [thread overview]
Message-ID: <20140212181043.GB23630@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1389266554-23463-3-git-send-email-sachin.kamat@linaro.org>
Hi Sachin,
Apologies for the delay on this.
On Thu, Jan 09, 2014 at 11:22:34AM +0000, Sachin Kamat wrote:
> Added initial binding documentation for S2MPA01 MFD.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> * 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.
Is the slave address not per-instance in I2C? If not why must is 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).
The part in brackets can go. Assuming this is a single interrupt:
- interrupts: An interrupt-specifier for the sole interrupt generated by
the device.
If the interrupt has a name it would be nice to mention that. If there
are more than one you should describe them.
> +
> +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
This could be made easier to read:
- regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500
(default), 250000, or 50000. May be 0 for disabling the ramp delay on
BUCK{1,2,3,4}.
> +
> + 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.
Can be folded into the above, as in my example.
> +
> + 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<value>.
Missing '=' before <value>?
> + Grouping of BUCKs sharing ramp rate setting is as follow : BUCK[1, 6],
> + BUCK[2, 4], and BUCK[8, 9, 10]
The following BUCKs share ramp settings:
* 1 and 6
* 2 and 4
* 8, 9, and 10
Thanks,
Mark.
next prev parent reply other threads:[~2014-02-12 18:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-09 11:22 [PATCH v2 1/3] mfd: Add support for S2MPA01 device Sachin Kamat
2014-01-09 11:22 ` [PATCH v2 2/3] regulator: Add support for S2MPA01 regulator Sachin Kamat
2014-01-09 12:50 ` Mark Brown
2014-02-12 18:02 ` Mark Rutland
2014-02-13 5:24 ` Sachin Kamat
2014-01-09 11:22 ` [PATCH v2 3/3] Documentation: mfd: Add binding document for S2MPA01 Sachin Kamat
2014-02-06 9:27 ` Sachin Kamat
2014-02-12 9:32 ` Sachin Kamat
2014-02-12 18:10 ` Mark Rutland [this message]
2014-02-12 18:21 ` Mark Brown
2014-02-13 6:17 ` Sachin Kamat
2014-01-10 10:03 ` [PATCH v2 1/3] mfd: Add support for S2MPA01 device Lee Jones
2014-01-10 10:15 ` Sachin Kamat
2014-01-10 10:25 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140212181043.GB23630@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@linaro.org \
--cc=sachin.kamat@linaro.org \
--cc=sbkim73@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®