-
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.
samples: i2s: add esp32 board overlay files
Adds esp32 board overlay files to i2s samples Signed-off-by: Marcio Ribeiro <[email protected]>
- Loading branch information
Showing
8 changed files
with
152 additions
and
51 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
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,29 @@ | ||
/* | ||
* 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"; | ||
|
||
}; |
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,29 @@ | ||
/* | ||
* 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"; | ||
|
||
}; |
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
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"; | ||
}; |
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_I2S=y |
38 changes: 38 additions & 0 deletions
38
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,38 @@ | ||
/* | ||
* 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>; | ||
}; | ||
}; |
1 change: 1 addition & 0 deletions
1
samples/drivers/led/led_strip/boards/esp32s3_devkitc_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_I2S=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