boards: esp32: add i2s for non-gdma SoC boards
Adds i2s support for boards based on: - esp32 - esp32s2 Signed-off-by: Marcio Ribeiro <marcio.ribeiro@espressif.com>
This commit is contained in:
parent
c01489dadc
commit
a4a2bb273a
15 changed files with 182 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2022-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -74,5 +74,35 @@
|
||||||
output-high;
|
output-high;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2s0_default: i2s0_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S0_O_WS_GPIO5>,
|
||||||
|
<I2S0_O_BCK_GPIO6>,
|
||||||
|
<I2S0_O_SD_GPIO7>,
|
||||||
|
<I2S0_I_WS_GPIO15>,
|
||||||
|
<I2S0_I_BCK_GPIO16>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S0_I_SD_GPIO17>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
i2s1_default: i2s1_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S1_O_WS_GPIO8>,
|
||||||
|
<I2S1_O_BCK_GPIO3>,
|
||||||
|
<I2S1_O_SD_GPIO9>,
|
||||||
|
<I2S1_I_WS_GPIO10>,
|
||||||
|
<I2S1_I_BCK_GPIO11>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S1_I_SD_GPIO12>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -89,6 +89,18 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2s0 {
|
||||||
|
pinctrl-0 = <&i2s0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2s1 {
|
||||||
|
pinctrl-0 = <&i2s1_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
&spi2 {
|
&spi2 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
|
@ -9,6 +9,7 @@ supported:
|
||||||
- dac
|
- dac
|
||||||
- gpio
|
- gpio
|
||||||
- i2c
|
- i2c
|
||||||
|
- i2s
|
||||||
- watchdog
|
- watchdog
|
||||||
- uart
|
- uart
|
||||||
- nvs
|
- nvs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2022-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -74,4 +74,34 @@
|
||||||
output-high;
|
output-high;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2s0_default: i2s0_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S0_O_WS_GPIO5>,
|
||||||
|
<I2S0_O_BCK_GPIO6>,
|
||||||
|
<I2S0_O_SD_GPIO7>,
|
||||||
|
<I2S0_I_WS_GPIO15>,
|
||||||
|
<I2S0_I_BCK_GPIO16>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S0_I_SD_GPIO17>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
i2s1_default: i2s1_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S1_O_WS_GPIO8>,
|
||||||
|
<I2S1_O_BCK_GPIO3>,
|
||||||
|
<I2S1_O_SD_GPIO9>,
|
||||||
|
<I2S1_I_WS_GPIO10>,
|
||||||
|
<I2S1_I_BCK_GPIO11>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S1_I_SD_GPIO12>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2023-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -89,6 +89,18 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2s0 {
|
||||||
|
pinctrl-0 = <&i2s0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2s1 {
|
||||||
|
pinctrl-0 = <&i2s1_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
&spi2 {
|
&spi2 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
|
@ -9,6 +9,7 @@ supported:
|
||||||
- dac
|
- dac
|
||||||
- gpio
|
- gpio
|
||||||
- i2c
|
- i2c
|
||||||
|
- i2s
|
||||||
- watchdog
|
- watchdog
|
||||||
- uart
|
- uart
|
||||||
- nvs
|
- nvs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 Grant Ramsay <grant.ramsay@hotmail.com>
|
* Copyright (c) 2022-2025 Grant Ramsay <grant.ramsay@hotmail.com>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -40,4 +40,33 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2s0_default: i2s0_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S0_O_WS_GPIO5>,
|
||||||
|
<I2S0_O_BCK_GPIO6>,
|
||||||
|
<I2S0_O_SD_GPIO7>,
|
||||||
|
<I2S0_I_WS_GPIO15>,
|
||||||
|
<I2S0_I_BCK_GPIO16>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S0_I_SD_GPIO17>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
i2s1_default: i2s1_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S1_O_WS_GPIO8>,
|
||||||
|
<I2S1_O_BCK_GPIO3>,
|
||||||
|
<I2S1_O_SD_GPIO9>,
|
||||||
|
<I2S1_I_WS_GPIO10>,
|
||||||
|
<I2S1_I_BCK_GPIO11>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S1_I_SD_GPIO12>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 Grant Ramsay <grant.ramsay@hotmail.com>
|
* Copyright (c) 2022-2025 Grant Ramsay <grant.ramsay@hotmail.com>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -43,6 +43,18 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2s0 {
|
||||||
|
pinctrl-0 = <&i2s0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2s1 {
|
||||||
|
pinctrl-0 = <&i2s1_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
&spi2 {
|
&spi2 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
|
@ -10,4 +10,5 @@ supported:
|
||||||
- uart
|
- uart
|
||||||
- nvs
|
- nvs
|
||||||
- pwm
|
- pwm
|
||||||
|
- i2s
|
||||||
vendor: espressif
|
vendor: espressif
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2024-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -65,4 +65,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2s0_default: i2s0_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S0_MCLK_GPIO4>,
|
||||||
|
<I2S0_O_WS_GPIO5>,
|
||||||
|
<I2S0_O_BCK_GPIO6>,
|
||||||
|
<I2S0_O_SD_GPIO7>,
|
||||||
|
<I2S0_I_WS_GPIO15>,
|
||||||
|
<I2S0_I_BCK_GPIO16>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S0_I_SD_GPIO17>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2024-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -96,6 +96,12 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2s0 {
|
||||||
|
pinctrl-0 = <&i2s0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
&trng0 {
|
&trng0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@ supported:
|
||||||
- dac
|
- dac
|
||||||
- gpio
|
- gpio
|
||||||
- i2c
|
- i2c
|
||||||
|
- i2s
|
||||||
- watchdog
|
- watchdog
|
||||||
- uart
|
- uart
|
||||||
- nvs
|
- nvs
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2022-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -65,4 +65,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
i2s0_default: i2s0_default {
|
||||||
|
group1 {
|
||||||
|
pinmux = <I2S0_MCLK_GPIO4>,
|
||||||
|
<I2S0_O_WS_GPIO5>,
|
||||||
|
<I2S0_O_BCK_GPIO6>,
|
||||||
|
<I2S0_O_SD_GPIO7>,
|
||||||
|
<I2S0_I_WS_GPIO15>,
|
||||||
|
<I2S0_I_BCK_GPIO16>;
|
||||||
|
output-enable;
|
||||||
|
};
|
||||||
|
group2 {
|
||||||
|
pinmux = <I2S0_I_SD_GPIO17>;
|
||||||
|
input-enable;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
|
* Copyright (c) 2021-2025 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -96,6 +96,12 @@
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2s0 {
|
||||||
|
pinctrl-0 = <&i2s0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
&trng0 {
|
&trng0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@ supported:
|
||||||
- dac
|
- dac
|
||||||
- gpio
|
- gpio
|
||||||
- i2c
|
- i2c
|
||||||
|
- i2s
|
||||||
- watchdog
|
- watchdog
|
||||||
- uart
|
- uart
|
||||||
- nvs
|
- nvs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue