tests: drivers: adc: adc_api: boards: add sequence for stm32l562e dk

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:28:32 +02:00 committed by Carles Cufí
parent 3716a1b4e5
commit 80b3b2a7dd

View file

@ -7,19 +7,28 @@
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc1 1>;
io-channels = <&adc1 13>, <&adc1 14>;
};
};
&adc1 {
pinctrl-0 = <&adc1_in13_pc4 &adc1_in14_pc5>;
#address-cells = <1>;
#size-cells = <0>;
channel@1 {
reg = <1>;
channel@d {
reg = <13>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
zephyr,resolution = <12>;
};
channel@e {
reg = <14>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
zephyr,resolution = <12>;
};
};