Commit 556bf375 authored by Francois Ramu's avatar Francois Ramu Committed by Benjamin Cabé
Browse files

tests: drivers: adc api testing on the stm32h7s3l8 nucleo



Add the overlay file to run the tests/drivers/adc/adc_api
on the nucleo_h7s3l8

Signed-off-by: default avatarFrancois Ramu <francois.ramu@st.com>
parent 00e9195f
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 STMicroelectronics
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
	zephyr,user {
		/* Adjust channel number according to pinmux in board.dts */
		io-channels = <&adc1 6>;
	};
};

&adc1 {
	pinctrl-0 = <&adc1_inp6_pf12>; /* Arduino A3 */

	#address-cells = <1>;
	#size-cells = <0>;

	channel@6 {
		reg = <6>;
		zephyr,gain = "ADC_GAIN_1";
		zephyr,reference = "ADC_REF_INTERNAL";
		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
		zephyr,resolution = <12>;
	};
};