From: Jonathan Cameron <jic23@kernel.org>
To: Fugang Duan <B38611@freescale.com>
Cc: shawn.guo@linaro.org, sachin.kamat@linaro.org, pmeerw@pmeerw.net,
lars@metafoo.de, mark.rutland@arm.com, linux-iio@vger.kernel.org
Subject: Re: [PATCH v5 1/3] ARM: dts: vf610-twr: Add ADC support
Date: Sat, 15 Feb 2014 10:30:38 +0000 [thread overview]
Message-ID: <52FF41CE.4080900@kernel.org> (raw)
In-Reply-To: <1390714773-23066-2-git-send-email-B38611@freescale.com>
On 26/01/14 05:39, Fugang Duan wrote:
> vf610 has two ADC controllers, and vf610-twr board ADC0_SE5 pin connect
> to sliding rheostat for ADC test, other ADC pins connect to connectors for
> future use.
>
> Add support for ADC0_SE5.
>
> 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>
I've applied the driver patches and device docs to the IIO git tree.
They'll filter through to linux-next via staging-next in the next
few days. This patch probably wants to go via the relevant arch trees.
> ---
> arch/arm/boot/dts/vf610-twr.dts | 21 +++++++++++++++++++++
> arch/arm/boot/dts/vf610.dtsi | 26 ++++++++++++++++++++++++++
> 2 files changed, 47 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts
> index c8047ca..d867be3 100644
> --- a/arch/arm/boot/dts/vf610-twr.dts
> +++ b/arch/arm/boot/dts/vf610-twr.dts
> @@ -34,6 +34,27 @@
> };
> };
>
> + regulators {
> + compatible = "simple-bus";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + reg_vcc_3v3_mcu: regulator@0 {
> + compatible = "regulator-fixed";
> + reg = <0>;
> + regulator-name = "vcc_3v3_mcu";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + };
> + };
> +
> +};
> +
> +&adc0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_adc0_ad5>;
> + vref-supply = <®_vcc_3v3_mcu>;
> + status = "okay";
> };
>
> &dspi0 {
> diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi
> index d31ce1b..b5b21ea 100644
> --- a/arch/arm/boot/dts/vf610.dtsi
> +++ b/arch/arm/boot/dts/vf610.dtsi
> @@ -152,6 +152,15 @@
> clock-names = "pit";
> };
>
> + adc0: adc@4003b000 {
> + compatible = "fsl,vf610-adc";
> + reg = <0x4003b000 0x1000>;
> + interrupts = <0 53 0x04>;
> + clocks = <&clks VF610_CLK_ADC0>;
> + clock-names = "adc";
> + status = "disabled";
> + };
> +
> wdog@4003e000 {
> compatible = "fsl,vf610-wdt", "fsl,imx21-wdt";
> reg = <0x4003e000 0x1000>;
> @@ -178,6 +187,14 @@
>
> /* functions and groups pins */
>
> + adc0 {
> + pinctrl_adc0_ad5: adc0_ad5 {
> + fsl,pins = <
> + VF610_PAD_PTC30__ADC0_SE5 0xa1
> + >;
> + };
> + };
> +
> dcu0 {
> pinctrl_dcu0_1: dcu0grp_1 {
> fsl,pins = <
> @@ -450,6 +467,15 @@
> 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";
> + };
> +
> fec0: ethernet@400d0000 {
> compatible = "fsl,mvf600-fec";
> reg = <0x400d0000 0x1000>;
>
next prev parent reply other threads:[~2014-02-15 10:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-26 5:39 [PATCH v5 0/3] *** iio:adc:imx: Add Freescale vf610 ADC driver support *** Fugang Duan
2014-01-26 5:39 ` [PATCH v5 1/3] ARM: dts: vf610-twr: Add ADC support Fugang Duan
2014-02-15 10:30 ` Jonathan Cameron [this message]
2014-02-16 7:48 ` Shawn Guo
2014-02-19 5:07 ` Shawn Guo
2014-02-21 5:17 ` fugang.duan
2014-02-21 5:38 ` Shawn Guo
2014-02-21 6:06 ` fugang.duan
2014-02-16 7:50 ` Shawn Guo
2014-02-17 1:27 ` fugang.duan
2014-01-26 5:39 ` [PATCH v5 2/3] iio:adc:imx: add Freescale Vybrid vf610 adc driver Fugang Duan
2014-02-15 10:18 ` Jonathan Cameron
2014-02-15 10:28 ` Jonathan Cameron
2014-02-17 1:32 ` fugang.duan
2014-01-26 5:39 ` [PATCH v5 3/3] Documentation: add the binding file for Freescale vf610 ADC driver Fugang Duan
2014-02-15 10:19 ` Jonathan Cameron
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=52FF41CE.4080900@kernel.org \
--to=jic23@kernel.org \
--cc=B38611@freescale.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pmeerw@pmeerw.net \
--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).