From 9cfc59eee05752db235ff7740a4f196f2ba0fc77 Mon Sep 17 00:00:00 2001 From: Bartlomiej Buczek Date: Fri, 19 Jul 2024 12:18:22 +0200 Subject: [PATCH] [nrf fromlist] tests: drivers: adc_accuracy Add overlay and enable test for nrf54h20dk. Upstream PR: https://github.com/zephyrproject-rtos/zephyr/pull/76088 Signed-off-by: Bartlomiej Buczek --- .../boards/nrf54h20dk_nrf54h20_cpuapp.overlay | 26 +++++++++++++++++++ .../adc/adc_accuracy_test/testcase.yaml | 1 + 2 files changed, 27 insertions(+) create mode 100644 tests/drivers/adc/adc_accuracy_test/boards/nrf54h20dk_nrf54h20_cpuapp.overlay diff --git a/tests/drivers/adc/adc_accuracy_test/boards/nrf54h20dk_nrf54h20_cpuapp.overlay b/tests/drivers/adc/adc_accuracy_test/boards/nrf54h20dk_nrf54h20_cpuapp.overlay new file mode 100644 index 00000000000..20bd3110aff --- /dev/null +++ b/tests/drivers/adc/adc_accuracy_test/boards/nrf54h20dk_nrf54h20_cpuapp.overlay @@ -0,0 +1,26 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * + * Copyright (c) 2024 Nordic Semiconductor ASA + */ + +/ { + zephyr,user { + io-channels = <&adc 0>; + reference_mv = <1800>; + }; +}; + +&adc { + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + zephyr,gain = "ADC_GAIN_1_2"; + zephyr,reference = "ADC_REF_INTERNAL"; + zephyr,acquisition-time = ; + zephyr,input-positive = ; + zephyr,resolution = <14>; + }; +}; diff --git a/tests/drivers/adc/adc_accuracy_test/testcase.yaml b/tests/drivers/adc/adc_accuracy_test/testcase.yaml index 901fb0d4e48..35716be89d3 100644 --- a/tests/drivers/adc/adc_accuracy_test/testcase.yaml +++ b/tests/drivers/adc/adc_accuracy_test/testcase.yaml @@ -20,3 +20,4 @@ tests: - frdm_kl25z - ek_ra8m1 - nrf52840dk/nrf52840 + - nrf54h20dk/nrf54h20/cpuapp