Skip to content

Commit bfaed3c

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 6b39c9c commit bfaed3c

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
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: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,26 @@
169169
* LPFLEXCOMM supports UART and I2C on the same instance, enable this for
170170
* LFLEXCOMM2
171171
*/
172+
172173
&flexcomm2_lpuart2 {
173-
status = "okay";
174+
status = "disabled";
174175
};
175176

176177
&flexcomm2_lpi2c2 {
177178
status = "okay";
179+
pinctrl-0 = <&pinmux_flexcomm2_i2c>;
180+
pinctrl-names = "default";
181+
clock-frequency = <I2C_BITRATE_STANDARD>;
182+
#address-cells = <1>;
183+
#size-cells = <0>;
184+
185+
audio_codec: da7212@1a {
186+
compatible = "dialog,da7212";
187+
reg = <0x1a>;
188+
clocks = <&syscon MCUX_SAI1_CLK>;
189+
clock-source = "MCLK";
190+
clock-names = "mclk";
191+
};
178192
};
179193

180194
&flexcomm3 {

0 commit comments

Comments
 (0)