-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds esp32 boards to i2s samples Signed-off-by: Marcio Ribeiro <[email protected]>
- Loading branch information
Showing
11 changed files
with
164 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
samples/drivers/i2s/echo/boards/esp32_devkitc_wrover_procpu.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DOESNT_SUPPORT_I2S_DIR_BOTH=y | ||
Check warning on line 1 in samples/drivers/i2s/echo/boards/esp32_devkitc_wrover_procpu.conf
|
30 changes: 30 additions & 0 deletions
30
samples/drivers/i2s/echo/boards/esp32_devkitc_wrover_procpu.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
&i2s0_default { | ||
group1 { | ||
pinmux = <I2S0_O_WS_GPIO33>, | ||
<I2S0_O_BCK_GPIO32>, | ||
<I2S0_O_SD_GPIO27>, | ||
<I2S0_I_WS_GPIO26>, | ||
<I2S0_I_BCK_GPIO25>; | ||
output-enable; | ||
}; | ||
group2 { | ||
pinmux = <I2S0_I_SD_GPIO18>; | ||
input-enable; | ||
}; | ||
}; | ||
|
||
i2s_rxtx: &i2s0 { | ||
status = "okay"; | ||
|
||
interrupts = <I2S0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>, | ||
<I2S0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>; | ||
interrupt-names = "tx", "rx"; | ||
|
||
Check failure on line 29 in samples/drivers/i2s/echo/boards/esp32_devkitc_wrover_procpu.overlay
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DOESNT_SUPPORT_I2S_DIR_BOTH=y | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
&i2s0_default { | ||
group1 { | ||
pinmux = <I2S0_O_WS_GPIO17>, | ||
<I2S0_O_BCK_GPIO16>, | ||
<I2S0_O_SD_GPIO15>, | ||
<I2S0_I_WS_GPIO11>, | ||
<I2S0_I_BCK_GPIO10>; | ||
output-enable; | ||
}; | ||
group2 { | ||
pinmux = <I2S0_I_SD_GPIO18>; | ||
input-enable; | ||
}; | ||
}; | ||
|
||
i2s_rxtx: &i2s0 { | ||
status = "okay"; | ||
|
||
interrupts = <I2S0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>, | ||
<I2S0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>; | ||
interrupt-names = "tx", "rx"; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_DOESNT_SUPPORT_I2S_DIR_BOTH=y | ||
Check warning on line 1 in samples/drivers/i2s/echo/boards/esp32s3_devkitc_procpu.conf
|
52 changes: 14 additions & 38 deletions
52
samples/drivers/i2s/echo/boards/esp32s3_devkitc_procpu.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
samples/drivers/i2s/output/boards/esp32_devkitc_wrover_procpu.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
i2s-tx = &i2s0; | ||
}; | ||
}; | ||
|
||
&i2s0_default { | ||
group1 { | ||
pinmux = <I2S0_O_WS_GPIO33>, | ||
<I2S0_O_BCK_GPIO32>, | ||
<I2S0_O_SD_GPIO27>; | ||
output-enable; | ||
}; | ||
group2 { | ||
pinmux = <I2S0_I_SD_GPIO18>; | ||
input-enable; | ||
}; | ||
}; | ||
|
||
&i2s0 { | ||
status = "okay"; | ||
|
||
interrupts = <I2S0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>; | ||
interrupt-names = "tx"; | ||
}; |
40 changes: 40 additions & 0 deletions
40
samples/drivers/led/led_strip/boards/esp32s2_devkitc.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/led/led.h> | ||
|
||
/ { | ||
aliases { | ||
led-strip = &led_strip; | ||
}; | ||
}; | ||
|
||
&i2s0_default { | ||
group1 { | ||
pinmux = <I2S0_O_SD_GPIO18>; | ||
output-enable; | ||
}; | ||
}; | ||
|
||
i2s_led: &i2s0 { | ||
status = "okay"; | ||
|
||
interrupts = <I2S0_INTR_SOURCE IRQ_DEFAULT_PRIORITY 0>; | ||
interrupt-names = "tx"; | ||
|
||
led_strip: ws2812@0 { | ||
compatible = "worldsemi,ws2812-i2s"; | ||
reg = <0>; | ||
|
||
chain-length = <1>; | ||
color-mapping = <LED_COLOR_ID_GREEN | ||
LED_COLOR_ID_RED | ||
LED_COLOR_ID_BLUE>; | ||
reset-delay = <500>; | ||
}; | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters