Skip to content

Commit fb66629

Browse files
committed
tests: drivers: i2s_api: add esp32 boards
adds the following boards ot i2s_api test: - esp32c3_devkitm - esp32c6_devkitc/esp32c6/hpcore - esp32s3_devkitc/esp32s3/procpu - esp32h2_devkitm Signed-off-by: Marcio Ribeiro <[email protected]>
1 parent ffa6c43 commit fb66629

File tree

8 files changed

+188
-0
lines changed

8 files changed

+188
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2S_TEST_USE_I2S_DIR_BOTH=y
5+
CONFIG_I2S_TEST_USE_GPIO_LOOPBACK=y
6+
CONFIG_I2S_TEST_ALLOWED_DATA_OFFSET=1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &i2s;
12+
};
13+
};
14+
15+
&i2s_default {
16+
group1 {
17+
pinmux = <I2S_O_WS_GPIO6>,
18+
<I2S_O_BCK_GPIO7>;
19+
};
20+
21+
group2 {
22+
pinmux = <I2S_O_SD_GPIO8>;
23+
input-enable;
24+
};
25+
26+
group3 {
27+
pinmux = <I2S_I_SD_GPIO8>;
28+
output-enable;
29+
};
30+
};
31+
32+
&i2s {
33+
status = "okay";
34+
35+
dmas = <&dma 2>, <&dma 3>;
36+
dma-names = "rx", "tx";
37+
};
38+
39+
&dma {
40+
status = "okay";
41+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2S_TEST_USE_I2S_DIR_BOTH=y
5+
CONFIG_I2S_TEST_USE_GPIO_LOOPBACK=y
6+
CONFIG_I2S_TEST_ALLOWED_DATA_OFFSET=1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &i2s;
12+
};
13+
};
14+
15+
&i2s_default {
16+
group1 {
17+
pinmux = <I2S_O_WS_GPIO6>,
18+
<I2S_O_BCK_GPIO7>;
19+
};
20+
21+
group2 {
22+
pinmux = <I2S_O_SD_GPIO8>;
23+
input-enable;
24+
};
25+
26+
group3 {
27+
pinmux = <I2S_I_SD_GPIO8>;
28+
output-enable;
29+
};
30+
};
31+
32+
&i2s {
33+
status = "okay";
34+
35+
dmas = <&dma 2>, <&dma 3>;
36+
dma-names = "rx", "tx";
37+
};
38+
39+
&dma {
40+
status = "okay";
41+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2S_TEST_USE_I2S_DIR_BOTH=y
5+
CONFIG_I2S_TEST_USE_GPIO_LOOPBACK=y
6+
CONFIG_I2S_TEST_ALLOWED_DATA_OFFSET=1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &i2s;
12+
};
13+
};
14+
15+
&i2s_default {
16+
group1 {
17+
pinmux = <I2S_O_WS_GPIO5>,
18+
<I2S_O_BCK_GPIO14>;
19+
};
20+
21+
group2 {
22+
pinmux = <I2S_O_SD_GPIO8>;
23+
input-enable;
24+
};
25+
26+
group3 {
27+
pinmux = <I2S_I_SD_GPIO8>;
28+
output-enable;
29+
};
30+
};
31+
32+
&i2s {
33+
status = "okay";
34+
35+
dmas = <&dma 2>, <&dma 3>;
36+
dma-names = "rx", "tx";
37+
};
38+
39+
&dma {
40+
status = "okay";
41+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_I2S_TEST_USE_I2S_DIR_BOTH=y
5+
CONFIG_I2S_TEST_USE_GPIO_LOOPBACK=y
6+
CONFIG_I2S_TEST_ALLOWED_DATA_OFFSET=1
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* i2s-node0 is the transmitter/receiver */
8+
9+
/ {
10+
aliases {
11+
i2s-node0 = &i2s0;
12+
};
13+
};
14+
15+
&i2s0_default {
16+
group1 {
17+
pinmux = <I2S0_O_WS_GPIO36>,
18+
<I2S0_O_BCK_GPIO37>;
19+
};
20+
21+
group2 {
22+
pinmux = <I2S0_O_SD_GPIO48>;
23+
input-enable;
24+
};
25+
26+
group3 {
27+
pinmux = <I2S0_I_SD_GPIO48>;
28+
output-enable;
29+
};
30+
};
31+
32+
&i2s0 {
33+
status = "okay";
34+
35+
dmas = <&dma 2>, <&dma 3>;
36+
dma-names = "rx", "tx";
37+
};
38+
39+
&dma {
40+
status = "okay";
41+
};

0 commit comments

Comments
 (0)