Skip to content

Commit c83703c

Browse files
mariopajakartben
authored andcommitted
samples: i2s: output: add nucleo_n657x0
Add nucleo_n657x0 in samples/drivers/i2s/output Signed-off-by: Mario Paja <[email protected]>
1 parent d9aacfa commit c83703c

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=4192
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) 2025 Mario Paja
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
i2s-tx = &sai2_b;
10+
};
11+
};
12+
13+
&pll2 {
14+
clocks = <&clk_hse>;
15+
div-m = <3>;
16+
mul-n = <79>;
17+
div-p1 = <1>;
18+
div-p2 = <1>;
19+
status = "okay";
20+
};
21+
22+
&ic7 {
23+
pll-src = <2>;
24+
ic-div = <28>;
25+
status = "okay";
26+
};
27+
28+
&gpdma1 {
29+
status = "okay";
30+
};
31+
32+
/* 44.084KHz (-0.03% Error) */
33+
&sai2_b {
34+
clocks = <&rcc STM32_CLOCK(APB2, 22)>,
35+
<&rcc STM32_SRC_IC7 SAI2_SEL(2)>;
36+
pinctrl-0 = <&sai2_mclk_b_pe14 &sai2_sd_b_pe7
37+
&sai2_fs_b_pe13 &sai2_sck_b_pe12>;
38+
pinctrl-names = "default";
39+
status = "okay";
40+
mclk-enable;
41+
mclk-divider = "div-256";
42+
dma-names = "tx";
43+
};

0 commit comments

Comments
 (0)