diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2017-07-11 18:13:00 +0200 |
---|---|---|
committer | Alexandre Torgue <alexandre.torgue@st.com> | 2017-07-27 09:15:49 +0200 |
commit | 090992a9ca543e3d84f9f0cdb118b7d04fce7152 (patch) | |
tree | 53cf71269d5fff9aff3f18ce2f30d66444b18a38 /arch/arm/boot/dts/stm32h743i-eval.dts | |
parent | ARM: dts: stm32: add ADC support on stm32h743 (diff) | |
download | linux-090992a9ca543e3d84f9f0cdb118b7d04fce7152.tar.xz linux-090992a9ca543e3d84f9f0cdb118b7d04fce7152.zip |
ARM: dts: stm32: enable ADC on stm32h743i-eval board
There's a potentiometer connected to ADC1 and ADC2 in0 on
stm32h743i-eval board.
- Add fixed-voltage 'vdda' regulator that supplies 'vref' pin.
It's used as voltage reference for ADC and/or DAC.
- Enable ADC1 in0 input (arbitrary choice: could be ADC2 as well).
Note: No pinctrl is needed to use in0 dedicated analog input pin
(e.g. ADC12_INP0).
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Diffstat (limited to 'arch/arm/boot/dts/stm32h743i-eval.dts')
-rw-r--r-- | arch/arm/boot/dts/stm32h743i-eval.dts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/stm32h743i-eval.dts b/arch/arm/boot/dts/stm32h743i-eval.dts index c6effbb36e4a..6c07786e7ddb 100644 --- a/arch/arm/boot/dts/stm32h743i-eval.dts +++ b/arch/arm/boot/dts/stm32h743i-eval.dts @@ -60,6 +60,24 @@ aliases { serial0 = &usart1; }; + + vdda: regulator-vdda { + compatible = "regulator-fixed"; + regulator-name = "vdda"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; +}; + +&adc_12 { + vref-supply = <&vdda>; + status = "okay"; + adc1: adc@0 { + /* potentiometer */ + st,adc-channels = <0>; + status = "okay"; + }; }; &clk_hse { |