diff options
author | Fabrice GASNIER <fabrice.gasnier@st.com> | 2017-01-09 14:08:32 +0100 |
---|---|---|
committer | Alexandre TORGUE <alexandre.torgue@st.com> | 2017-01-20 14:59:39 +0100 |
commit | 7465d81191a12f0896d121f319da702580739433 (patch) | |
tree | 440a9e3ff62a09acf66e2cb82ebd76f2bb80eb6e /arch | |
parent | ARM: dts: stm32: Add ADC support to stm32f429 (diff) | |
download | linux-7465d81191a12f0896d121f319da702580739433.tar.xz linux-7465d81191a12f0896d121f319da702580739433.zip |
ARM: dts: stm32: enable ADC on stm32f429i-eval board
Enable analog to digital converter on stm32f429i-eval board.
It has on-board potentimeter wired to ADC3 in8 analog pin and
uses fixed regulator to provide reference voltage.
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boot/dts/stm32429i-eval.dts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 5436e880e28f..21812207dcfa 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++ b/arch/arm/boot/dts/stm32429i-eval.dts @@ -70,6 +70,20 @@ dma-ranges = <0xc0000000 0x0 0x10000000>; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_vref: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "vref"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; + leds { compatible = "gpio-leds"; green { @@ -112,6 +126,17 @@ }; }; +&adc { + pinctrl-names = "default"; + pinctrl-0 = <&adc3_in8_pin>; + vref-supply = <®_vref>; + status = "okay"; + adc3: adc@200 { + st,adc-channels = <8>; + status = "okay"; + }; +}; + &clk_hse { clock-frequency = <25000000>; }; |