Skip to content

Commit 9157799

Browse files
wmrsouzakartben
authored andcommitted
samples: i2s & led_strip: update esp32 board overlay files
Updates esp32 i2s and led_strip board overlay files Signed-off-by: Marcio Ribeiro <[email protected]>
1 parent faea025 commit 9157799

File tree

3 files changed

+24
-51
lines changed

3 files changed

+24
-51
lines changed

samples/drivers/i2s/echo/boards/esp32s3_devkitc_procpu.overlay

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,28 @@
11
/*
2-
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
* Copyright (c) 2024-2025 Espressif Systems (Shanghai) Co., Ltd.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
&pinctrl {
8-
i2s0_pinconf: i2s0_pinconf {
9-
group1 {
10-
pinmux = <I2S0_MCLK_GPIO42>,
11-
<I2S0_O_WS_GPIO41>,
12-
<I2S0_O_BCK_GPIO40>,
13-
<I2S0_O_SD_GPIO39>;
14-
output-enable;
15-
};
7+
&i2s0_default {
8+
group1 {
9+
pinmux = <I2S0_MCLK_GPIO42>,
10+
<I2S0_O_WS_GPIO41>,
11+
<I2S0_O_BCK_GPIO40>,
12+
<I2S0_O_SD_GPIO39>;
13+
output-enable;
1614
};
17-
18-
i2s1_pinconf: i2s1_pinconf {
19-
group1 {
20-
pinmux = <I2S1_MCLK_GPIO35>,
21-
<I2S1_I_WS_GPIO36>,
22-
<I2S1_I_BCK_GPIO37>;
23-
output-enable;
24-
};
25-
group2 {
26-
pinmux = <I2S1_I_SD_GPIO38>;
27-
input-enable;
28-
};
15+
group2 {
16+
pinmux = <I2S0_I_SD_GPIO38>;
17+
input-enable;
2918
};
3019
};
3120

32-
i2s_tx: &i2s0 {
21+
i2s_rxtx: &i2s0 {
3322
status = "okay";
3423

35-
pinctrl-0 = <&i2s0_pinconf>;
36-
pinctrl-names = "default";
37-
38-
dmas = <&dma 3>;
39-
dma-names = "tx";
40-
};
41-
42-
i2s_rx: &i2s1 {
43-
status = "okay";
44-
45-
pinctrl-0 = <&i2s1_pinconf>;
46-
pinctrl-names = "default";
47-
48-
dmas = <&dma 4>;
49-
dma-names = "rx";
24+
dmas = <&dma 2>, <&dma 3>;
25+
dma-names = "rx", "tx";
5026
};
5127

5228
&dma {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_I2S=y
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
* Copyright (c) 2024-2025 Espressif Systems (Shanghai) Co., Ltd.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -12,19 +12,24 @@
1212
};
1313
};
1414

15+
&i2s0_default {
16+
group1 {
17+
pinmux = <I2S0_O_SD_GPIO38>;
18+
output-enable;
19+
};
20+
};
21+
1522
i2s_led: &i2s0 {
1623
status = "okay";
1724

18-
pinctrl-0 = <&i2s0_pinconf>;
19-
2025
dmas = <&dma 3>;
2126
dma-names = "tx";
2227

2328
led_strip: ws2812@0 {
2429
compatible = "worldsemi,ws2812-i2s";
2530

2631
reg = <0>;
27-
chain-length = <46>;
32+
chain-length = <1>;
2833
color-mapping = <LED_COLOR_ID_GREEN
2934
LED_COLOR_ID_RED
3035
LED_COLOR_ID_BLUE>;
@@ -35,12 +40,3 @@ i2s_led: &i2s0 {
3540
&dma {
3641
status = "okay";
3742
};
38-
39-
&pinctrl {
40-
i2s0_pinconf: i2s0_pinconf {
41-
group1 {
42-
pinmux = <I2S0_O_SD_GPIO38>;
43-
output-enable;
44-
};
45-
};
46-
};

0 commit comments

Comments
 (0)