From: Fugang Duan <B38611@freescale.com>
To: <jic23@kernel.org>, <sachin.kamat@linaro.org>
Cc: <devicetree@vger.kernel.org>, <shawn.guo@linaro.org>,
<b20596@freescale.com>, <linux-iio@vger.kernel.org>
Subject: [PATCH v3 1/3] ARM: dts: vf610-twr: Add ADC support
Date: Tue, 26 Nov 2013 18:56:32 +0800 [thread overview]
Message-ID: <1385463394-11157-2-git-send-email-B38611@freescale.com> (raw)
In-Reply-To: <1385463394-11157-1-git-send-email-B38611@freescale.com>
vf610 have 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.
Signed-off-by: Fugang Duan <B38611@freescale.com>
---
arch/arm/boot/dts/vf610-twr.dts | 14 ++++++++++++++
arch/arm/boot/dts/vf610.dtsi | 26 ++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts
index c8047ca..0867004 100644
--- a/arch/arm/boot/dts/vf610-twr.dts
+++ b/arch/arm/boot/dts/vf610-twr.dts
@@ -36,6 +36,20 @@
};
+&adc0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_adc0_ad5>;
+ fsl,adc-io-pinctl = <0x20>;
+ fsl,adc-vref = <3300000>;
+ fsl,adc-clk-div = <2>;
+ fsl,adc-res = <12>;
+ fsl,adc-sam-time = <4>;
+ fsl,adc-aver-sam-sel = <4>;
+ fsl,adc-hw-aver-en;
+ fsl,adc-low-power-mode;
+ status = "okay";
+};
+
&dspi0 {
bus-num = <0>;
pinctrl-names = "default";
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>;
--
1.7.2.rc3
next prev parent reply other threads:[~2013-11-26 11:21 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 ` Fugang Duan [this message]
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
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=1385463394-11157-2-git-send-email-B38611@freescale.com \
--to=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).