Skip to content

Commit 7cad078

Browse files
nordic-seglnordicjm
authored andcommitted
tests: zephyr: drivers: i2s: i2s_additional: Run test on 54LM20
Copy test from sdk-zephyr and enable it on nRF54LM20A targets. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 457ca65 commit 7cad078

File tree

8 files changed

+127
-0
lines changed

8 files changed

+127
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(i2s_additional)
7+
8+
FILE(GLOB app_sources ${ZEPHYR_BASE}/tests/drivers/i2s/i2s_additional/src/*.c)
9+
target_sources(app PRIVATE ${app_sources})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source "tests/drivers/i2s/i2s_additional/Kconfig"
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/i2s/i2s_additional.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &tdm;
12+
};
13+
};
14+
15+
&pinctrl {
16+
tdm_default_alt: tdm_default_alt {
17+
group1 {
18+
psels = <NRF_PSEL(TDM_SCK_M, 1, 18)>,
19+
<NRF_PSEL(TDM_FSYNC_M, 1, 16)>,
20+
<NRF_PSEL(TDM_SDOUT, 1, 30)>,
21+
<NRF_PSEL(TDM_SDIN, 1, 31)>;
22+
};
23+
};
24+
};
25+
26+
&tdm {
27+
status = "okay";
28+
pinctrl-0 = <&tdm_default_alt>;
29+
pinctrl-names = "default";
30+
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &tdm;
12+
};
13+
};
14+
15+
&pinctrl {
16+
tdm_default_alt: tdm_default_alt {
17+
group1 {
18+
psels = <NRF_PSEL(TDM_SCK_M, 1, 0)>,
19+
<NRF_PSEL(TDM_FSYNC_M, 1, 9)>,
20+
<NRF_PSEL(TDM_SDOUT, 1, 14)>,
21+
<NRF_PSEL(TDM_SDIN, 1, 15)>;
22+
};
23+
};
24+
};
25+
26+
&tdm {
27+
status = "okay";
28+
pinctrl-0 = <&tdm_default_alt>;
29+
pinctrl-names = "default";
30+
};
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &tdm;
12+
};
13+
};
14+
15+
&pinctrl {
16+
tdm_default_alt: tdm_default_alt {
17+
group1 {
18+
psels = <NRF_PSEL(TDM_SCK_M, 1, 23)>,
19+
<NRF_PSEL(TDM_FSYNC_M, 1, 14)>,
20+
<NRF_PSEL(TDM_SDOUT, 1, 30)>,
21+
<NRF_PSEL(TDM_SDIN, 1, 31)>;
22+
};
23+
};
24+
};
25+
26+
&tdm {
27+
status = "okay";
28+
pinctrl-0 = <&tdm_default_alt>;
29+
pinctrl-names = "default";
30+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_I2S=y
2+
CONFIG_ZTEST=y
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
common:
2+
tags:
3+
- drivers
4+
- i2s
5+
- ci_tests_zephyr_drivers_i2s
6+
depends_on:
7+
- i2s
8+
- gpio
9+
filter: CONFIG_I2S_TEST_USE_GPIO_LOOPBACK
10+
harness: ztest
11+
12+
tests:
13+
nrf.extended.drivers.i2s.additional.gpio_loopback:
14+
harness_config:
15+
fixture: gpio_loopback
16+
platform_allow:
17+
- nrf54lm20pdk/nrf54lm20a/cpuapp
18+
- [email protected]/nrf54lm20a/cpuapp
19+
- [email protected]/nrf54lm20a/cpuapp
20+
- [email protected]/nrf54lm20a/cpuapp
21+
integration_platforms:
22+
- nrf54lm20pdk/nrf54lm20a/cpuapp

0 commit comments

Comments
 (0)