From: Mark Rutland <mark.rutland@arm.com>
To: Fugang Duan <B38611@freescale.com>
Cc: "jic23@kernel.org" <jic23@kernel.org>,
"shawn.guo@linaro.org" <shawn.guo@linaro.org>,
"b20596@freescale.com" <b20596@freescale.com>,
"otavio@ossystems.com.br" <otavio@ossystems.com.br>,
"pmeerw@pmeerw.net" <pmeerw@pmeerw.net>,
"lars@metafoo.de" <lars@metafoo.de>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>
Subject: Re: [PATCH v4 3/3] Documentation: add the binding file for Freescale vf610 ADC driver
Date: Wed, 4 Dec 2013 11:38:16 +0000 [thread overview]
Message-ID: <20131204113816.GI16025@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1386151203-29728-4-git-send-email-B38611@freescale.com>
On Wed, Dec 04, 2013 at 10:00:03AM +0000, Fugang Duan wrote:
> The patch adds the binding file for Freescale vf610 ADC driver.
>
> CC: Shawn Guo <shawn.guo@linaro.org>
> CC: Jonathan Cameron <jic23@kernel.org>
> CC: Mark Rutland <mark.rutland@arm.com>
> CC: Otavio Salvador <otavio@ossystems.com.br>
> CC: Peter Meerwald <pmeerw@pmeerw.net>
> CC: Lars-Peter Clausen <lars@metafoo.de>
> Signed-off-by: Fugang Duan <B38611@freescale.com>
> ---
> .../devicetree/bindings/iio/adc/vf610-adc.txt | 42 ++++++++++++++++++++
> 1 files changed, 42 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..32ae3bc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/vf610-adc.txt
> @@ -0,0 +1,42 @@
> +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 contain "fsl,vf610-adc"
> +- reg: Offset and length of the register set for the device
> +- interrupts: Should contain the interrupt for the device
> +- clocks: The clock is needed by the ADC controller, ADC clock source is ipg clock.
The driver acquires the clock by name, and thus _requires_ clock-names.
Please list the valid clock-names, and describe clocks property in terms
of it.
> +- vref-supply: The regulator supply ADC refrence voltage.
> +
> +Optional properties:
> +- fsl,adc-io-pinctl: Enable field for the I/O port control of MCU pins used as analog inputs.
> + Bit[23:0] correspond to 23 I/O ports, set the relative bit for pointed port.
> +
> +Example:
> +adc0: adc@4003b000 {
> + compatible = "fsl,vf610-adc";
> + reg = <0x4003b000 0x1000>;
> + interrupts = <0 53 0x04>;
> + clocks = <&clks VF610_CLK_ADC0>;
> + clock-names = "adc";
> + status = "disabled";
> +};
> +
> +adc1: adc@400bb000 {
> + compatible = "fsl,vf610-adc";
> + reg = <0x400bb000 0x1000>;
> + interrupts = <0 54 0x04>;
> + clocks = <&clks VF610_CLK_ADC1>;
> + clock-names = "adc";
> + status = "disabled";
> +};
This is missing vref-supply, and it's never overriden. If this is not a
full example, remove it.
> +
> +&adc0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_adc0_ad5>;
> + fsl,adc-io-pinctl = <0x20>;
> + vref-supply = <®_vcc_3v3_mcu>;
> + status = "okay";
Why is adc0 split? The example should be simple.
Thanks,
Mark.
next prev parent reply other threads:[~2013-12-04 11:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-04 10:00 [PATCH v4 0/3] *** iio:adc:imx: Add Freescale vf610 ADC driver support *** Fugang Duan
2013-12-04 10:00 ` [PATCH v4 1/3] ARM: dts: vf610-twr: Add ADC support Fugang Duan
2013-12-09 2:35 ` Shawn Guo
2013-12-04 10:00 ` [PATCH v4 2/3] iio:adc:imx: add Freescale Vybrid vf610 adc driver Fugang Duan
2013-12-04 10:44 ` Peter Meerwald
2013-12-04 11:07 ` Fugang Duan
2013-12-07 18:54 ` Jonathan Cameron
2013-12-16 8:17 ` fugang.duan
2013-12-22 16:48 ` Jonathan Cameron
2013-12-23 1:50 ` fugang.duan
2013-12-04 10:00 ` [PATCH v4 3/3] Documentation: add the binding file for Freescale vf610 ADC driver Fugang Duan
2013-12-04 11:38 ` Mark Rutland [this message]
2013-12-05 5:10 ` 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=20131204113816.GI16025@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=B38611@freescale.com \
--cc=b20596@freescale.com \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=otavio@ossystems.com.br \
--cc=pmeerw@pmeerw.net \
--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