Skip to content

Commit 7b49c65

Browse files
mstasiaknordicnordicjm
authored andcommitted
tests: drivers: audio: pdm_loopback: add support for nRF54l20
Added support for testing on nRF54l20pdk. Signed-off-by: Michał Stasiak <[email protected]>
1 parent 42f77d4 commit 7b49c65

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
gpio_test {
9+
compatible = "gpio-leds";
10+
pulse_counter: pulse_counter {
11+
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
12+
};
13+
};
14+
};
15+
16+
&pinctrl {
17+
pdm20_default_alt: pdm20_default_alt {
18+
group1 {
19+
psels = <NRF_PSEL(PDM_CLK, 1, 10)>,
20+
<NRF_PSEL(PDM_DIN, 1, 12)>;
21+
};
22+
};
23+
};
24+
25+
pdm_dev: &pdm20 {
26+
status = "okay";
27+
pinctrl-0 = <&pdm20_default_alt>;
28+
pinctrl-names = "default";
29+
clock-source = "PCLK32M";
30+
};
31+
32+
&gpio1 {
33+
status = "okay";
34+
};
35+
36+
&timer00 {
37+
status = "okay";
38+
};

tests/drivers/audio/pdm_loopback/testcase.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,24 @@ common:
66
fixture: gpio_loopback
77

88
tests:
9-
drivers.audio.pdm_loopback.nrf54l15.1000khz:
9+
drivers.audio.pdm_loopback.nrf54l.1000khz:
1010
platform_allow:
1111
- nrf54l15dk/nrf54l15/cpuapp
12+
- nrf54l20pdk/nrf54l20/cpuapp
1213
extra_args:
1314
CONFIG_NRFX_TIMER00=y
14-
drivers.audio.pdm_loopback.nrf54l15.1280khz:
15+
drivers.audio.pdm_loopback.nrf54l.1280khz:
1516
platform_allow:
1617
- nrf54l15dk/nrf54l15/cpuapp
18+
- nrf54l20pdk/nrf54l20/cpuapp
1719
extra_args:
1820
CONFIG_NRFX_TIMER00=y
1921
CONFIG_TEST_PDM_SAMPLING_RATE=16000
2022
CONFIG_TEST_PDM_EXPECTED_FREQUENCY=1280000
21-
drivers.audio.pdm_loopback.nrf54l15.1600khz:
23+
drivers.audio.pdm_loopback.nrf54l.1600khz:
2224
platform_allow:
2325
- nrf54l15dk/nrf54l15/cpuapp
26+
- nrf54l20pdk/nrf54l20/cpuapp
2427
extra_args:
2528
CONFIG_NRFX_TIMER00=y
2629
CONFIG_TEST_PDM_SAMPLING_RATE=32000

0 commit comments

Comments
 (0)