tests: drivers: adc: adc_api: boards: add sequence for nucleo g474re

Add multiple channels in overlay to test the sequencer.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
This commit is contained in:
Guillaume Gautier 2023-09-08 10:17:53 +02:00 committed by Carles Cufí
commit c833abc15c

View file

@ -7,11 +7,12 @@
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc1 1>;
io-channels = <&adc1 1>, <&adc1 2>;
};
};
&adc1 {
pinctrl-0 = <&adc1_in1_pa0 &adc1_in2_pa1>;
#address-cells = <1>;
#size-cells = <0>;
@ -22,4 +23,12 @@
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
channel@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};