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
15 changes: 14 additions & 1 deletion boards/nxp/frdm_mcxn236/frdm_mcxn236-pinctrl.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2024 NXP
* Copyright 2024-2025 NXP
* SPDX-License-Identifier: Apache-2.0
*/

Expand Down Expand Up @@ -227,10 +227,23 @@
<SAI1_TXD0_PIO2_8>,
<SAI1_RX_FS_PIO1_7>,
<SAI1_RX_BCLK_PIO3_18>,
<SAI1_MCLK_PIO3_6>,
<SAI1_RXD0_PIO2_9>;
drive-strength = "high";
slew-rate = "fast";
input-enable;
};
};

pinmux_flexcomm2_i2c: pinmux_flexcomm2_i2c {
group0 {
pinmux = <FC2_P0_PIO4_0>,
<FC2_P1_PIO4_1>;
slew-rate = "fast";
drive-strength = "low";
input-enable;
bias-pull-up;
drive-open-drain;
};
};
};
13 changes: 13 additions & 0 deletions boards/nxp/frdm_mcxn236/frdm_mcxn236.dts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,19 @@

&flexcomm2_lpi2c2 {
status = "okay";
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>;
#address-cells = <1>;
#size-cells = <0>;

audio_codec: da7212@1a {
compatible = "dlg,da7212";
reg = <0x1a>;
clocks = <&syscon MCUX_SAI1_CLK>;
clock-source = "MCLK";
clock-names = "mclk";
};
};

&flexcomm3 {
Expand Down
1 change: 1 addition & 0 deletions drivers/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ 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_DMIC_AMBIQ_PDM dmic_ambiq_pdm.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_DA7212 da7212.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.da7212"

endif # AUDIO_CODEC

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

config AUDIO_CODEC_DA7212
bool "Dialog DA7212 codec support"
default y
select I2C
depends on DT_HAS_DLG_DA7212_ENABLED
help
Enable support for the Dialog DA7212 audio codec.
Loading
Loading