File tree Expand file tree Collapse file tree 4 files changed +67
-1
lines changed Expand file tree Collapse file tree 4 files changed +67
-1
lines changed Original file line number Diff line number Diff line change @@ -438,6 +438,14 @@ void board_early_init_hook(void)
438
438
CLOCK_AttachClk (kLPOSC_to_WWDT0 );
439
439
#endif
440
440
441
+ #if DT_NODE_HAS_STATUS (DT_NODELABEL (sai0 ), okay )
442
+ /* SAI clock 368.64 / 15 = 24.576MHz */
443
+ CLOCK_AttachClk (kAUDIO_PLL_PFD3_to_AUDIO_VDD2 );
444
+ CLOCK_AttachClk (kAUDIO_VDD2_to_SAI012 );
445
+ CLOCK_SetClkDiv (kCLOCK_DivSai012Clk , 15U );
446
+ RESET_ClearPeripheralReset (kSAI0_RST_SHIFT_RSTn );
447
+ #endif
448
+
441
449
#if DT_NODE_HAS_STATUS (DT_NODELABEL (sc_timer ), okay )
442
450
CLOCK_AttachClk (kFRO0_DIV6_to_SCT );
443
451
#endif
Original file line number Diff line number Diff line change 20
20
};
21
21
};
22
22
23
+ pinmux_flexcomm2_i2c: pinmux_flexcomm2_i2c {
24
+ group0 {
25
+ pinmux = <LP_FLEXCOMM2_P0_PIO1_11>,
26
+ <LP_FLEXCOMM2_P1_PIO1_12>;
27
+ bias-pull-up;
28
+ input-enable;
29
+ slew-rate = "normal";
30
+ drive-strength = "high";
31
+ drive-open-drain;
32
+ };
33
+ };
34
+
23
35
pinmux_flexcomm8_i2c: pinmux_flexcomm8_i2c {
24
36
group0 {
25
37
pinmux = <LP_FLEXCOMM8_P0_PIO0_6>,
76
88
};
77
89
};
78
90
91
+ pinmux_sai0: pinmux_sai0 {
92
+ group0 {
93
+ pinmux = <CLKCTL0_MCLK_PIO0_21>,
94
+ <SAI0_RX_SYNC_PIO0_1>,
95
+ <SAI0_TX_BCLK_PIO0_3>,
96
+ <SAI0_RX_DATA0_PIO0_2>,
97
+ <SAI0_TX_DATA0_PIO0_4>,
98
+ <SAI0_RX_BCLK_PIO0_0>,
99
+ <SAI0_TX_SYNC_PIO0_5>;
100
+ drive-strength = "high";
101
+ slew-rate = "normal";
102
+ input-enable;
103
+ };
104
+ };
105
+
79
106
pinmux_sctimer: pinmux_sctimer {
80
107
group0 {
81
108
pinmux = <SCT0_IN0_PIO0_0>;
Original file line number Diff line number Diff line change 22
22
sw1 = &user_button_2;
23
23
watchdog0 = &wwdt0;
24
24
pwm-0 = &sc_timer;
25
+ i2s-codec-tx = &sai0;
26
+ i2s-tx = &sai0;
25
27
};
26
28
27
29
chosen {
127
129
pinctrl-names = "default";
128
130
};
129
131
132
+ &flexcomm2{
133
+ status = "okay";
134
+ };
135
+
136
+ &flexcomm2_lpi2c2 {
137
+ status = "okay";
138
+ pinctrl-0 = <&pinmux_flexcomm2_i2c>;
139
+ pinctrl-names = "default";
140
+ clock-frequency = <I2C_BITRATE_STANDARD>;
141
+ #address-cells = <1>;
142
+ #size-cells = <0>;
143
+
144
+ audio_codec: wm8962@1a {
145
+ compatible = "wolfson,wm8962";
146
+ reg = <0x1a>;
147
+ clock-source = "MCLK";
148
+ clocks = <&clkctl0 MCUX_SAI0_CLK>;
149
+ clock-names = "mclk";
150
+ };
151
+ };
152
+
130
153
&flexcomm8{
131
154
status = "okay";
132
155
};
@@ -177,6 +200,12 @@ zephyr_lcdif: &lcdif {};
177
200
status = "okay";
178
201
};
179
202
203
+ &sai0 {
204
+ status = "okay";
205
+ pinctrl-0 = <&pinmux_sai0>;
206
+ pinctrl-names = "default";
207
+ };
208
+
180
209
&sc_timer {
181
210
status = "okay";
182
211
pinctrl-0 = <&pinmux_sctimer>;
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright 2024 NXP
2
+ # Copyright 2024-2025 NXP
3
3
#
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
#
@@ -15,3 +15,5 @@ CONFIG_HW_STACK_PROTECTION=y
15
15
16
16
# Enable TrustZone-M
17
17
CONFIG_TRUSTED_EXECUTION_SECURE=y
18
+ # Nocache memory options
19
+ CONFIG_NOCACHE_MEMORY=y
You can’t perform that action at this time.
0 commit comments