Skip to content

Commit 55ca2f0

Browse files
committed
boards: frdm_mcxn236: Enable da7212 on frdm_mcxn236
Enable da7212 on frdm_mcxn236 Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent 2272791 commit 55ca2f0

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

boards/nxp/frdm_mcxn236/frdm_mcxn236-pinctrl.dtsi

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024 NXP
2+
* Copyright 2024-2025 NXP
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

@@ -227,10 +227,23 @@
227227
<SAI1_TXD0_PIO2_8>,
228228
<SAI1_RX_FS_PIO1_7>,
229229
<SAI1_RX_BCLK_PIO3_18>,
230+
<SAI1_MCLK_PIO3_6>,
230231
<SAI1_RXD0_PIO2_9>;
231232
drive-strength = "high";
232233
slew-rate = "fast";
233234
input-enable;
234235
};
235236
};
237+
238+
pinmux_flexcomm2_i2c: pinmux_flexcomm2_i2c {
239+
group0 {
240+
pinmux = <FC2_P0_PIO4_0>,
241+
<FC2_P1_PIO4_1>;
242+
slew-rate = "fast";
243+
drive-strength = "low";
244+
input-enable;
245+
bias-pull-up;
246+
drive-open-drain;
247+
};
248+
};
236249
};

boards/nxp/frdm_mcxn236/frdm_mcxn236.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,22 @@
175175

176176
&flexcomm2_lpi2c2 {
177177
status = "okay";
178+
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
179+
pinctrl-names = "default";
180+
clock-frequency = <I2C_BITRATE_STANDARD>;
181+
#address-cells = <1>;
182+
#size-cells = <0>;
183+
184+
/* Note: The DA7212 codec is not populated on this board by default.
185+
* Refer to the board MCX_N5XX_EVK to use this sample with the same codec.
186+
*/
187+
audio_codec: da7212@1a {
188+
compatible = "dlg,da7212";
189+
reg = <0x1a>;
190+
clocks = <&syscon MCUX_SAI1_CLK>;
191+
clock-source = "MCLK";
192+
clock-names = "mclk";
193+
};
178194
};
179195

180196
&flexcomm3 {

0 commit comments

Comments
 (0)