Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: drivers: audio: pdm_loopback: add support for nRF54l20 #19740

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 = <NRF_PSEL(PDM_CLK, 1, 10)>,
<NRF_PSEL(PDM_DIN, 1, 12)>;
};
};
};

pdm_dev: &pdm20 {
status = "okay";
pinctrl-0 = <&pdm20_default_alt>;
pinctrl-names = "default";
clock-source = "PCLK32M";
};

&gpio1 {
status = "okay";
};

&timer00 {
status = "okay";
};
9 changes: 6 additions & 3 deletions tests/drivers/audio/pdm_loopback/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading