diff options
author | Fugang Duan <B38611@freescale.com> | 2014-02-21 00:24:16 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2014-02-23 21:09:30 -0500 |
commit | 64436ff6675df55ed61ff2d8aac8156ce0294826 (patch) | |
tree | 7f6b29eaaa52a311c7a11bb2e82c089a295e4982 /arch/arm/boot/dts/vf610-twr.dts | |
parent | 3048fa3fc5b6c641a06e959925dfbc31649528e9 (diff) |
ARM: dts: vf610-twr: Add ADC support
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: 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>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/vf610-twr.dts')
-rw-r--r-- | arch/arm/boot/dts/vf610-twr.dts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index da52ed7eefa2..7dd1d6ede525 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm/boot/dts/vf610-twr.dts | |||
@@ -47,6 +47,14 @@ | |||
47 | regulator-max-microvolt = <3300000>; | 47 | regulator-max-microvolt = <3300000>; |
48 | regulator-always-on; | 48 | regulator-always-on; |
49 | }; | 49 | }; |
50 | |||
51 | reg_vcc_3v3_mcu: regulator@1 { | ||
52 | compatible = "regulator-fixed"; | ||
53 | reg = <1>; | ||
54 | regulator-name = "vcc_3v3_mcu"; | ||
55 | regulator-min-microvolt = <3300000>; | ||
56 | regulator-max-microvolt = <3300000>; | ||
57 | }; | ||
50 | }; | 58 | }; |
51 | 59 | ||
52 | sound { | 60 | sound { |
@@ -79,6 +87,13 @@ | |||
79 | }; | 87 | }; |
80 | }; | 88 | }; |
81 | 89 | ||
90 | &adc0 { | ||
91 | pinctrl-names = "default"; | ||
92 | pinctrl-0 = <&pinctrl_adc0_ad5>; | ||
93 | vref-supply = <®_vcc_3v3_mcu>; | ||
94 | status = "okay"; | ||
95 | }; | ||
96 | |||
82 | &dspi0 { | 97 | &dspi0 { |
83 | bus-num = <0>; | 98 | bus-num = <0>; |
84 | pinctrl-names = "default"; | 99 | pinctrl-names = "default"; |
@@ -128,6 +143,12 @@ | |||
128 | 143 | ||
129 | &iomuxc { | 144 | &iomuxc { |
130 | vf610-twr { | 145 | vf610-twr { |
146 | pinctrl_adc0_ad5: adc0ad5grp { | ||
147 | fsl,pins = < | ||
148 | VF610_PAD_PTC30__ADC0_SE5 0xa1 | ||
149 | >; | ||
150 | }; | ||
151 | |||
131 | pinctrl_dspi0: dspi0grp { | 152 | pinctrl_dspi0: dspi0grp { |
132 | fsl,pins = < | 153 | fsl,pins = < |
133 | VF610_PAD_PTB19__DSPI0_CS0 0x1182 | 154 | VF610_PAD_PTB19__DSPI0_CS0 0x1182 |