Skip to content

Commit e0bf694

Browse files
ZhaoxiangJinHardevsinh-Palaniya
authored andcommitted
boards: frdm_mcxn236: Enable da7212 on frdm_mcxn236
Enable da7212 on frdm_mcxn236 Signed-off-by: Zhaoxiang Jin <[email protected]>
1 parent ae2a982 commit e0bf694

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

boards/nxp/frdm_mcxn236/frdm_mcxn236-pinctrl.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,23 @@
229229
<SAI1_TXD0_PIO2_8>,
230230
<SAI1_RX_FS_PIO1_7>,
231231
<SAI1_RX_BCLK_PIO3_18>,
232+
<SAI1_MCLK_PIO3_6>,
232233
<SAI1_RXD0_PIO2_9>;
233234
drive-strength = "high";
234235
slew-rate = "fast";
235236
input-enable;
236237
};
237238
};
239+
240+
pinmux_flexcomm2_i2c: pinmux_flexcomm2_i2c {
241+
group0 {
242+
pinmux = <FC2_P0_PIO4_0>,
243+
<FC2_P1_PIO4_1>;
244+
slew-rate = "fast";
245+
drive-strength = "low";
246+
input-enable;
247+
bias-pull-up;
248+
drive-open-drain;
249+
};
250+
};
238251
};

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)