Skip to content

Commit 8612cae

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 00674d5 commit 8612cae

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,19 @@
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+
audio_codec: da7212@1a {
185+
compatible = "dialog,da7212";
186+
reg = <0x1a>;
187+
clocks = <&syscon MCUX_SAI1_CLK>;
188+
clock-source = "MCLK";
189+
clock-names = "mclk";
190+
};
178191
};
179192

180193
&flexcomm3 {

0 commit comments

Comments
 (0)