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
7 changes: 7 additions & 0 deletions boards/m5stack/m5stack_cores3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
config INPUT
default y

if AUDIO_CODEC

config AUDIO_CODEC_INIT_PRIORITY
default 80

endif

endif # BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
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 @@ -83,4 +83,20 @@
<TWAI_RX_GPIO6>;
};
};

i2s1_default: i2s1_default {
group1 {
pinmux = <I2S1_O_BCK_GPIO34>,
<I2S1_O_WS_GPIO33>;
};

group2 {
pinmux = <I2S1_O_SD_GPIO13>;
};

group3 {
pinmux = <I2S1_I_SD_GPIO14>;
bias-disable;
};
};
};
13 changes: 13 additions & 0 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@
};
};

aw88298: aw88298@36 {
compatible = "awinic,aw88298";
reg = <0x36>;
reset-gpios = <&aw9523b_gpio 2 GPIO_ACTIVE_LOW>;
int-gpios = <&aw9523b_gpio 11 GPIO_ACTIVE_LOW>;
status = "disabled";
};

bm8563_rtc: bm8563@51 {
compatible = "nxp,pcf8563";
reg = <0x51>;
Expand Down Expand Up @@ -201,6 +209,11 @@
};
};

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

&i2c1 {
status = "okay";
clock-frequency = <I2C_BITRATE_STANDARD>;
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_AW88298 aw88298.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 @@ -35,6 +35,7 @@ module = AUDIO_CODEC
module-str = audio codec
source "subsys/logging/Kconfig.template.log_config"

source "drivers/audio/Kconfig.aw88298"
source "drivers/audio/Kconfig.cs43l22"
source "drivers/audio/Kconfig.max98091"
source "drivers/audio/Kconfig.pcm1681"
Expand Down
10 changes: 10 additions & 0 deletions drivers/audio/Kconfig.aw88298
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2025 TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0

config AUDIO_CODEC_AW88298
bool "Awinic AW88298 digital smart amplifier"
default y
depends on DT_HAS_AWINIC_AW88298_ENABLED
select I2C
help
Enable support for the Awinic AW88298 digital smart amplifier.
Loading
Loading