Skip to content

Commit 090992a

Browse files
Fabrice Gasnieratorgue
authored andcommitted
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 <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent 079af0c commit 090992a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

arch/arm/boot/dts/stm32h743i-eval.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@
6060
aliases {
6161
serial0 = &usart1;
6262
};
63+
64+
vdda: regulator-vdda {
65+
compatible = "regulator-fixed";
66+
regulator-name = "vdda";
67+
regulator-min-microvolt = <3300000>;
68+
regulator-max-microvolt = <3300000>;
69+
regulator-always-on;
70+
};
71+
};
72+
73+
&adc_12 {
74+
vref-supply = <&vdda>;
75+
status = "okay";
76+
adc1: adc@0 {
77+
/* potentiometer */
78+
st,adc-channels = <0>;
79+
status = "okay";
80+
};
6381
};
6482

6583
&clk_hse {

0 commit comments

Comments
 (0)