Skip to content

Commit bb5df8e

Browse files
TomasBarakNXPcfriedt
authored andcommitted
samples: i2s_codec: enable i2s_codec sample for mcx_n5xx_evk
- in order to test the loopback from PDM to I2S on the mcx_n5xx_evk it is necessary to add the dts nodes for SAI1 and MICFIL channels - note that the configuration is using the newly introduced stream parameters (bytes_per_sample, sample_width, extra_blocks) - add mcx_n5xx_evk/mcxn547/cpu0 to sample.yaml in order to allow this platform to be part of the CI tests Signed-off-by: Tomas Barak <[email protected]>
1 parent 12ce37e commit bb5df8e

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 NXP
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
CONFIG_DMA_TCD_QUEUE_SIZE=4
6+
CONFIG_AUDIO_CODEC_DA7212=y
7+
CONFIG_SAMPLE_FREQ=16000
8+
CONFIG_I2S_INIT_BUFFERS=1
9+
CONFIG_USE_CODEC_CLOCK=y
10+
CONFIG_USE_DMIC=y
11+
CONFIG_DMIC_CHANNELS=2
12+
CONFIG_EXTRA_BLOCKS=10
13+
CONFIG_SAMPLE_WIDTH=32
14+
CONFIG_BYTES_PER_SAMPLE=4
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
i2s-codec-tx = &sai1;
10+
i2s-tx = &sai1;
11+
};
12+
};
13+
14+
&sai1 {
15+
mclk-output;
16+
};
17+
18+
dmic_dev: &micfil {
19+
channel0: micfil-channel@0 {
20+
status = "okay";
21+
};
22+
23+
channel1: micfil-channel@1 {
24+
status = "okay";
25+
};
26+
};

samples/drivers/i2s/i2s_codec/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ tests:
1010
- mimxrt1060_evk/mimxrt1062/qspi
1111
- mimxrt1180_evk/mimxrt1189/cm33
1212
- mimxrt1180_evk/mimxrt1189/cm7
13+
- mcx_n5xx_evk/mcxn547/cpu0
1314
harness: console
1415
harness_config:
1516
type: one_line

0 commit comments

Comments
 (0)