From 2b72b9d7a17c437ffa46404eea673911f0e93df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Stasiak?= Date: Fri, 3 Jan 2025 14:03:59 +0100 Subject: [PATCH] tests: drivers: audio: pdm_loopback: add support for nRF54l20 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added support for testing on nRF54l20pdk. Signed-off-by: MichaƂ Stasiak --- .../nrf54l20pdk_nrf54l20_cpuapp.overlay | 38 +++++++++++++++++++ .../drivers/audio/pdm_loopback/testcase.yaml | 9 +++-- 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 tests/drivers/audio/pdm_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay diff --git a/tests/drivers/audio/pdm_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay b/tests/drivers/audio/pdm_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay new file mode 100644 index 000000000000..86b67923ef65 --- /dev/null +++ b/tests/drivers/audio/pdm_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2025 Nordic Semiconductor ASA + * + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause + */ + +/ { + gpio_test { + compatible = "gpio-leds"; + pulse_counter: pulse_counter { + gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&pinctrl { + pdm20_default_alt: pdm20_default_alt { + group1 { + psels = , + ; + }; + }; +}; + +pdm_dev: &pdm20 { + status = "okay"; + pinctrl-0 = <&pdm20_default_alt>; + pinctrl-names = "default"; + clock-source = "PCLK32M"; +}; + +&gpio1 { + status = "okay"; +}; + +&timer00 { + status = "okay"; +}; diff --git a/tests/drivers/audio/pdm_loopback/testcase.yaml b/tests/drivers/audio/pdm_loopback/testcase.yaml index e724a57d0b8e..37816e92bc02 100644 --- a/tests/drivers/audio/pdm_loopback/testcase.yaml +++ b/tests/drivers/audio/pdm_loopback/testcase.yaml @@ -6,21 +6,24 @@ common: fixture: gpio_loopback tests: - drivers.audio.pdm_loopback.nrf54l15.1000khz: + drivers.audio.pdm_loopback.nrf54l.1000khz: platform_allow: - nrf54l15dk/nrf54l15/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp extra_args: CONFIG_NRFX_TIMER00=y - drivers.audio.pdm_loopback.nrf54l15.1280khz: + drivers.audio.pdm_loopback.nrf54l.1280khz: platform_allow: - nrf54l15dk/nrf54l15/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp extra_args: CONFIG_NRFX_TIMER00=y CONFIG_TEST_PDM_SAMPLING_RATE=16000 CONFIG_TEST_PDM_EXPECTED_FREQUENCY=1280000 - drivers.audio.pdm_loopback.nrf54l15.1600khz: + drivers.audio.pdm_loopback.nrf54l.1600khz: platform_allow: - nrf54l15dk/nrf54l15/cpuapp + - nrf54l20pdk/nrf54l20/cpuapp extra_args: CONFIG_NRFX_TIMER00=y CONFIG_TEST_PDM_SAMPLING_RATE=32000