Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions boards/m5stack/m5stack_cores3/m5stack_cores3-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@
};
};

i2s1_default: i2s1_default {
group1 {
pinmux = <I2S1_MCLK_GPIO0>,
<I2S1_O_WS_GPIO33>,
<I2S1_O_BCK_GPIO34>,
<I2S1_I_WS_GPIO33>,
<I2S1_I_BCK_GPIO34>;
output-enable;
};

group2 {
pinmux = <I2S1_I_SD_GPIO14>;
input-enable;
};
};

i2c0_default: i2c0_default {
group1 {
pinmux = <I2C0_SDA_GPIO12>,
Expand Down
1 change: 1 addition & 0 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_procpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ supported:
- gpio
- uart
- i2c
- i2s
- spi
- can
- counter
Expand Down
15 changes: 15 additions & 0 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@
int-gpios = <&aw9523b_gpio 10 GPIO_ACTIVE_LOW>;
reset-gpios = <&aw9523b_gpio 0 GPIO_ACTIVE_LOW>;
};

es7210: es7210@40 {
compatible = "everest,es7210";
reg = <0x40>;
status = "okay";
mclk-frequency = <12288000>;
mic-select = <0x3>;
mic-gain = <11>;
};
};

&i2c1 {
Expand Down Expand Up @@ -233,6 +242,12 @@
};
};

&i2s1 {
status = "okay";
pinctrl-0 = <&i2s1_default>;
pinctrl-names = "default";
};

&twai {
status = "disabled";
pinctrl-0 = <&twai_default>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ supported:
- gpio
- uart
- i2c
- i2s
- spi
- can
- counter
Expand Down
1 change: 1 addition & 0 deletions drivers/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_WM8962 wm8962.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_CS43L22 cs43l22.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_PCM1681 pcm1681.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_MAX98091 max98091.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_ES7210 es7210.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_DMIC_AMBIQ_PDM dmic_ambiq_pdm.c)
1 change: 1 addition & 0 deletions drivers/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ source "drivers/audio/Kconfig.tlv320aic3110"
source "drivers/audio/Kconfig.tlv320dac"
source "drivers/audio/Kconfig.wm8904"
source "drivers/audio/Kconfig.wm8962"
source "drivers/audio/Kconfig.es7210"

endif # AUDIO_CODEC

Expand Down
11 changes: 11 additions & 0 deletions drivers/audio/Kconfig.es7210
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: Apache-2.0

config AUDIO_CODEC_ES7210
bool "Everest Semiconductor ES7210 audio ADC"
depends on I2C
select AUDIO
depends on DT_HAS_EVEREST_ES7210_ENABLED
help
Enable driver support for the Everest Semiconductor ES7210

Check warning on line 9 in drivers/audio/Kconfig.es7210

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/audio/Kconfig.es7210:9 please, no spaces at the start of a line
quad-channel audio analog-to-digital converter. This device

Check warning on line 10 in drivers/audio/Kconfig.es7210

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/audio/Kconfig.es7210:10 please, no spaces at the start of a line
provides the front microphones on the M5Stack CoreS3 family.

Check warning on line 11 in drivers/audio/Kconfig.es7210

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

drivers/audio/Kconfig.es7210:11 please, no spaces at the start of a line
Loading
Loading