Skip to content

Commit 80cc1b7

Browse files
lowlandernashif
authored andcommitted
dts: arm: stm32g4: Add dma1, dma2, and dmamux1
Add DTS configuration for dma1, dma2, and dmamux1. Signed-off-by: Erwin Rol <[email protected]>
1 parent cceff83 commit 80cc1b7

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

dts/arm/st/g4/stm32g4.dtsi

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,37 @@
514514
label= "USB";
515515
};
516516

517+
dma1: dma@40020000 {
518+
compatible = "st,stm32-dma-v2";
519+
#dma-cells = <4>;
520+
reg = <0x40020000 0x400>;
521+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x1>;
522+
dma-offset = <0>;
523+
status = "disabled";
524+
label = "DMA_1";
525+
};
526+
527+
dma2: dma@40020400 {
528+
compatible = "st,stm32-dma-v2";
529+
#dma-cells = <4>;
530+
reg = <0x40020400 0x400>;
531+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x2>;
532+
status = "disabled";
533+
label = "DMA_2";
534+
};
535+
536+
dmamux1: dmamux@40020800 {
537+
compatible = "st,stm32-dmamux";
538+
#dma-cells = <4>;
539+
reg = <0x40020800 0x400>;
540+
interrupts = <94 0>;
541+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x4>;
542+
dma-generators = <4>;
543+
dma-requests= <21>;
544+
status = "disabled";
545+
label = "DMAMUX_1";
546+
};
547+
517548
};
518549

519550
usb_fs_phy: usbphy {

dts/arm/st/g4/stm32g431.dtsi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,23 @@
55
*/
66

77
#include <st/g4/stm32g4.dtsi>
8+
9+
/ {
10+
soc {
11+
dma1: dma@40020000 {
12+
interrupts = <11 0 12 0 13 0 14 0 15 0 16 0>;
13+
dma-requests = <6>;
14+
};
15+
16+
dma2: dma@40020400 {
17+
interrupts = <56 0 57 0 58 0 59 0 60 0 97 0>;
18+
dma-requests = <6>;
19+
dma-offset = <6>;
20+
};
21+
22+
dmamux1: dmamux@40020800 {
23+
dma-channels = <12>;
24+
};
25+
26+
};
27+
};

dts/arm/st/g4/stm32g474.dtsi

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <st/g4/stm32g431.dtsi>
7+
#include <st/g4/stm32g4.dtsi>
88

99
/ {
1010
soc {
@@ -25,5 +25,21 @@
2525
label = "DAC_4";
2626
#io-channel-cells = <1>;
2727
};
28+
29+
dma1: dma@40020000 {
30+
interrupts = <11 0 12 0 13 0 14 0 15 0 16 0 17 0 96 0>;
31+
dma-requests = <8>;
32+
};
33+
34+
dma2: dma@40020400 {
35+
interrupts = <56 0 57 0 58 0 59 0 60 0 97 0 98 0 99 0>;
36+
dma-requests = <8>;
37+
dma-offset = <8>;
38+
};
39+
40+
dmamux1: dmamux@40020800 {
41+
dma-channels = <16>;
42+
};
43+
2844
};
2945
};

0 commit comments

Comments
 (0)