Skip to content

Commit 5aefb1b

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: zephyr: drivers: audio: Run test on 54LM20A
Enable test execution on nrf54lm20a. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent e2bc576 commit 5aefb1b

File tree

7 files changed

+63
-0
lines changed

7 files changed

+63
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@
928928
/tests/tfm/ @nrfconnect/ncs-aegir @stephen-nordic @magnev
929929
/tests/unity/ @nordic-krch
930930
/tests/zephyr/drivers/adc/ @nrfconnect/ncs-low-level-test
931+
/tests/zephyr/drivers/audio/ @nrfconnect/ncs-low-level-test
931932
/tests/zephyr/drivers/clock_control/ @nrfconnect/ncs-low-level-test
932933
/tests/zephyr/drivers/comparator/ @nrfconnect/ncs-low-level-test
933934
/tests/zephyr/drivers/counter/ @nrfconnect/ncs-low-level-test

scripts/ci/tags.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,11 @@ ci_samples_zephyr_drivers_audio_dmic:
14051405
- nrf/samples/zephyr/drivers/audio/dmic/
14061406
- zephyr/samples/drivers/audio/dmic/
14071407

1408+
ci_tests_zephyr_drivers_audio_dmic_api:
1409+
files:
1410+
- nrf/tests/zephyr/drivers/audio/dmic_api/
1411+
- zephyr/tests/drivers/audio/dmic_api/
1412+
14081413
ci_tests_zephyr_drivers_i2c_i2c_bme688:
14091414
files:
14101415
- nrf/tests/zephyr/drivers/i2c/i2c_bme688
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
project(dmic_api)
6+
7+
FILE(GLOB app_sources ${ZEPHYR_BASE}/tests/drivers/audio/dmic_api/src/*.c)
8+
target_sources(app PRIVATE ${app_sources})
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This sample extends the same-named Zephyr sample to verify it with Nordic development kits.
2+
3+
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/tests/drivers/audio/dmic_api.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
dmic-dev = &pdm20;
10+
};
11+
};
12+
13+
&pinctrl {
14+
pdm20_default_alt: pdm20_default_alt {
15+
group1 {
16+
psels = <NRF_PSEL(PDM_CLK, 1, 10)>,
17+
<NRF_PSEL(PDM_DIN, 1, 11)>;
18+
};
19+
};
20+
};
21+
22+
dmic_dev: &pdm20 {
23+
status = "okay";
24+
pinctrl-0 = <&pdm20_default_alt>;
25+
pinctrl-names = "default";
26+
clock-source = "PCLK32M";
27+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_TEST=y
2+
CONFIG_ZTEST=y
3+
CONFIG_AUDIO=y
4+
CONFIG_AUDIO_DMIC=y
5+
6+
# Use deferred logging mode so the TC_PRINT calls while reading from DMIC
7+
# do not block
8+
CONFIG_LOG=y
9+
CONFIG_LOG_MODE_DEFERRED=y
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tests:
2+
nrf.extended.drivers.audio.dmic_api:
3+
tags:
4+
- dmic
5+
- ci_tests_zephyr_drivers_audio_dmic_api
6+
harness: ztest
7+
platform_allow:
8+
- nrf54lm20apdk/nrf54lm20a/cpuapp
9+
integration_platforms:
10+
- nrf54lm20apdk/nrf54lm20a/cpuapp

0 commit comments

Comments
 (0)