File tree Expand file tree Collapse file tree 4 files changed +57
-1
lines changed
samples/drivers/i2s/output/boards Expand file tree Collapse file tree 4 files changed +57
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ menuconfig I2S_STM32_SAI
36
36
select USE_STM32_HAL_DMA_EX
37
37
select USE_STM32_HAL_SAI
38
38
help
39
- Enable SAI support on the STM32U5 family of processors.
39
+ Enable SAI support on the STM32 family of processors.
40
40
41
41
if I2S_STM32_SAI
42
42
Original file line number Diff line number Diff line change 633
633
status = "disabled";
634
634
};
635
635
636
+ sai1_a: sai1@40015404 {
637
+ compatible = "st,stm32-sai";
638
+ #address-cells = <1>;
639
+ #size-cells = <0>;
640
+ reg = <0x40015404 0x20>;
641
+ clocks = <&rcc STM32_CLOCK(APB2, 21)>,
642
+ <&rcc STM32_SRC_PLL2_P SAI1_SEL(0)>;
643
+ dmas = <&gpdma1 1 53 0>;
644
+ status = "disabled";
645
+ };
646
+
647
+ sai1_b: sai1@40015424 {
648
+ compatible = "st,stm32-sai";
649
+ #address-cells = <1>;
650
+ #size-cells = <0>;
651
+ reg = <0x40015424 0x20>;
652
+ clocks = <&rcc STM32_CLOCK(APB2, 21)>,
653
+ <&rcc STM32_SRC_PLL2_P SAI1_SEL(0)>;
654
+ dmas = <&gpdma1 0 54 0>;
655
+ status = "disabled";
656
+ };
657
+
636
658
usb: usb@40016000 {
637
659
compatible = "st,stm32-usb";
638
660
reg = <0x40016000 0x400>;
Original file line number Diff line number Diff line change
1
+ CONFIG_HEAP_MEM_POOL_SIZE=4192
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 ZAL Zentrum für Angewandte Luftfahrtforschung GmbH
3
+ * Copyright (c) 2025 Mario Paja
4
+ *
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ / {
9
+ aliases {
10
+ i2s-tx = &sai1_a;
11
+ };
12
+ };
13
+
14
+ &pll2 {
15
+ /* 44.1KHz (0.09% Error) */
16
+ div-m = <2>;
17
+ mul-n = <113>;
18
+ div-q = <2>;
19
+ div-r = <2>;
20
+ div-p = <2>;
21
+ clocks = <&clk_hse>;
22
+ status = "okay";
23
+ };
24
+
25
+ &sai1_a {
26
+ pinctrl-0 = <&sai1_mclk_a_pe2 &sai1_sd_a_pe6
27
+ &sai1_fs_a_pe4 &sai1_sck_a_pe5>;
28
+ pinctrl-names = "default";
29
+ status = "okay";
30
+ mclk-enable;
31
+ mclk-divider = "div-256";
32
+ dma-names = "tx";
33
+ };
You can’t perform that action at this time.
0 commit comments