tests: drivers: adc: adc_api: update adc_api test

Add nucleo_wba65ri overlay file

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
This commit is contained in:
IBEN EL HADJ MESSAOUD Marwa 2025-04-10 17:23:16 +02:00 committed by Benjamin Cabé
parent a60d7741b5
commit a2cb85295b
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,34 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2025 STMicroelectronics
*/
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc4 7>, <&adc4 8>;
};
};
&adc4 {
pinctrl-0 = <&adc4_in7_pa2 &adc4_in8_pa1>;
#address-cells = <1>;
#size-cells = <0>;
channel@7 {
reg = <7>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
zephyr,resolution = <12>;
};
channel@8 {
reg = <8>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_MAX>;
zephyr,resolution = <12>;
};
};

View File

@ -49,6 +49,7 @@ tests:
- nucleo_u575zi_q
- nucleo_wb55rg
- nucleo_wba55cg
- nucleo_wba65ri
- nucleo_wl55jc
- stm32f3_disco
- stm32h573i_dk