samples: i2s: add esp32 board overlay files
Adds esp32 board overlay files to i2s samples Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
This commit is contained in:
parent
a4a2bb273a
commit
c2235a727d
5 changed files with 128 additions and 0 deletions
|
@ -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";
|
||||||
|
|
||||||
|
};
|
29
samples/drivers/i2s/echo/boards/esp32s2_devkitc.overlay
Normal file
29
samples/drivers/i2s/echo/boards/esp32s2_devkitc.overlay
Normal file
|
@ -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";
|
||||||
|
|
||||||
|
};
|
|
@ -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";
|
||||||
|
};
|
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_I2S=y
|
38
samples/drivers/led/led_strip/boards/esp32s2_devkitc.overlay
Normal file
38
samples/drivers/led/led_strip/boards/esp32s2_devkitc.overlay
Normal file
|
@ -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>;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue