From: Mark Rutland <mark.rutland@arm.com>
To: Fugang Duan <B38611@freescale.com>
Cc: "jic23@kernel.org" <jic23@kernel.org>,
"sachin.kamat@linaro.org" <sachin.kamat@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"shawn.guo@linaro.org" <shawn.guo@linaro.org>,
"b20596@freescale.com" <b20596@freescale.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH v3 3/3] Documentation: add the binding file for Freescale vf610 ADC driver
Date: Tue, 26 Nov 2013 14:09:26 +0000 [thread overview]
Message-ID: <20131126140926.GA5402@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1385463394-11157-4-git-send-email-B38611@freescale.com>
On Tue, Nov 26, 2013 at 10:56:34AM +0000, Fugang Duan wrote:
> The patch adds the binding file for Freescale vf610 ADC driver.
>
> Signed-off-by: Fugang Duan <B38611@freescale.com>
> ---
> .../devicetree/bindings/iio/adc/vf610-adc.txt | 57 ++++++++++++++++++++
> 1 files changed, 57 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt b/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt
> new file mode 100644
> index 0000000..4101516
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt
> @@ -0,0 +1,57 @@
> +Freescale vf610 Analog to Digital Converter bindings
> +
> +The devicetree bindings are for the new ADC driver written for
> +vf610/i.MX6slx and upward SoCs from Freescale.
> +
> +Required properties:
> +- compatible: Should be "fsl,vf610-adc"
s/be/contain/
> +- reg: Offset and length of the register set for the device
> +- interrupts: Should contain the interrupt for the device
> +- clocks: The clocks needed by the ADC controller
How many? Which ones?
> +- clock-names: the name of the clocks
Either define the set of names, or don't use clock-names. It's useless
if it doesn't tell you anything.
> +
> +Optional properties:
> +- fsl,adc-io-pinctl: Enable field for the I/O port control of MCU pins used as analog inputs.
> +- fsl,adc-vref: ADC refrence voltage value, unit is uV.
Can you not query the regulator to figure this out?
> +- fsl,adc-clk-div: Current clock divider value, such as 1,2,4,8,16 and so on.
Could you elaborate on this? What's it used for and why is it needed?
> +- fsl,adc-res: ADC conversion mode selection, such as 8 for 8-bit, 10 for 10-bit, 12 for 12-bit mode.
This sounds like something that could be changed at runtime. Why does
this need to be configured in the DT?
> +- fsl,adc-sam-time: ADC sample time duration, number of ADC clocks, such as 2, 4, 6, 8, 12, 16, 20, 24
Likewise.
Please don't poinltessly abbreviate, "sample" is much better than "sam"
here...
> +- fsl,adc-aver-sam-sel: Determines how many ADC conversions will be averaged to create the ADC average result.
> + The Optional value is 4, 8, 16, 32.
Likewise.
> +- fsl,adc-hw-aver-en: Bool type to decide enable hardware average function.
When would you wnat this and when wouldn't you?
Similarly, "averages" is far clearer than "aver".
> +- fsl,adc-low-power-mode: Bool type to decide enable ADC low power mode.
Similarly?
> +- fsl,adc-high-speed-conv: Bool type to decide enable ADC high speed mode.
Similarly?
> +- vref: The regulator to support ADC refrence voltage.
s/vref/vref-supply/
Thanks,
Mark.
next prev parent reply other threads:[~2013-11-26 14:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 10:56 [PATCH v3 0/3] *** iio:adc:imx: Add Freescale vf610 ADC driver support *** Fugang Duan
2013-11-26 10:56 ` [PATCH v3 1/3] ARM: dts: vf610-twr: Add ADC support Fugang Duan
2013-11-26 10:56 ` [PATCH v3 2/3] iio:adc:imx: add Freescale Vybrid vf610 adc driver Fugang Duan
2013-11-26 11:51 ` Lars-Peter Clausen
2013-11-27 4:44 ` Fugang Duan
2013-11-27 8:20 ` Lars-Peter Clausen
2013-11-27 8:31 ` Fugang Duan
2013-11-26 12:24 ` Peter Meerwald
2013-11-26 12:49 ` Lars-Peter Clausen
2013-11-27 2:57 ` Fugang Duan
2013-11-27 7:17 ` Peter Meerwald
2013-11-27 7:30 ` Fugang Duan
2013-11-26 14:25 ` Mark Rutland
2013-11-27 5:37 ` Fugang Duan
2013-11-27 14:18 ` Mark Rutland
2013-11-28 1:25 ` Fugang Duan
2013-11-26 10:56 ` [PATCH v3 3/3] Documentation: add the binding file for Freescale vf610 ADC driver Fugang Duan
2013-11-26 13:37 ` Shawn Guo
2013-11-27 1:38 ` Fugang Duan
2013-11-26 14:09 ` Mark Rutland [this message]
2013-11-27 6:05 ` Fugang Duan
2013-11-27 8:09 ` Jonathan Cameron
2013-11-27 8:55 ` Fugang Duan
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=20131126140926.GA5402@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=B38611@freescale.com \
--cc=b20596@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=sachin.kamat@linaro.org \
--cc=shawn.guo@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).