Skip to content

Commit 8c9c638

Browse files
committed
samples: i2s: output: Adds nucleo_f401re support
Adds support for the STMicroelectronics Nucleo F401RE development board. Signed-off-by: Ricardo Rivera-Matos <[email protected]>
1 parent 0a79085 commit 8c9c638

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2024 Cirrus Logic, Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
i2s-tx = &i2s_tx;
10+
};
11+
};
12+
13+
14+
&dma1 {
15+
status = "okay";
16+
};
17+
18+
&clk_hsi {
19+
status = "okay";
20+
};
21+
22+
&pll {
23+
div-m = <16>;
24+
mul-n = <336>;
25+
div-p = <4>;
26+
div-q = <7>;
27+
clocks = <&clk_hsi>;
28+
status = "okay";
29+
};
30+
31+
&plli2s {
32+
mul-n = <271>;
33+
div-r = <6>;
34+
status = "okay";
35+
};
36+
37+
&rcc {
38+
clocks = <&pll>;
39+
clock-frequency = <DT_FREQ_M(84)>;
40+
ahb-prescaler = <1>;
41+
apb1-prescaler = <2>;
42+
apb2-prescaler = <1>;
43+
};
44+
45+
i2s_tx: &i2s3 {
46+
pinctrl-0 = <&i2s3_ck_pb3 &i2s3_sd_pb5 &i2s3_ws_pa4 &i2s3_mck_pc7>;
47+
pinctrl-names = "default";
48+
mck-enabled;
49+
status = "okay";
50+
};
51+

0 commit comments

Comments
 (0)