From d8961718071b508aa13224933c6b868997180c16 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Mon, 19 Feb 2024 15:27:52 +0100 Subject: [PATCH] tests: atmel_sam: adc: Fix sam4e_xpro adc build This add a missing sam4e_xpro overlay in the tests/drivers/adc for the sam4e_xpro board. Signed-off-by: Gerson Fernando Budke --- .../adc/adc_api/boards/sam4e_xpro.overlay | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/drivers/adc/adc_api/boards/sam4e_xpro.overlay diff --git a/tests/drivers/adc/adc_api/boards/sam4e_xpro.overlay b/tests/drivers/adc/adc_api/boards/sam4e_xpro.overlay new file mode 100644 index 000000000000..3486ce077fc6 --- /dev/null +++ b/tests/drivers/adc/adc_api/boards/sam4e_xpro.overlay @@ -0,0 +1,25 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2024 Gerson Fernando Budke + */ + +/ { + zephyr,user { + io-channels = <&afec0 0>; + }; +}; + +&afec0 { + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + zephyr,gain = "ADC_GAIN_1"; + zephyr,reference = "ADC_REF_EXTERNAL0"; + zephyr,acquisition-time = ; + zephyr,resolution = <12>; + zephyr,input-positive = <15>; + }; +};