Skip to content

Commit 968dabb

Browse files
shlomowcarlescufi
authored andcommitted
dts: st: h7: add dmamux1 bindings
Add dmamux1 dts bindings for stm32h7 series. Note that there is no dedicated clock to enable for dmamux1 so we set the clock of dma1. This is the way linux handle this. Signed-off-by: Shlomi Vaknin <[email protected]>
1 parent db3aa56 commit 968dabb

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,23 @@
712712
label = "DMA_2";
713713
};
714714

715+
dmamux1: dmamux@40020800 {
716+
compatible = "st,stm32-dmamux";
717+
#dma-cells = <4>;
718+
reg = <0x40020800 0x400>;
719+
interrupts = <102 0>;
720+
/* dmamux1 has no dedicated clock, so we enable dma1 clock */
721+
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x00000001>;
722+
dma-channels = <16>;
723+
dma-generators = <8>;
724+
status = "disabled";
725+
label = "DMAMUX_1";
726+
/*
727+
* dma-requests is different among h7 socs,
728+
* so we set in specific dtsi files
729+
*/
730+
};
731+
715732
rng: rng@48021800 {
716733
compatible = "st,stm32-rng";
717734
reg = <0x48021800 0x400>;

dts/arm/st/h7/stm32h723.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
status = "disabled";
2323
label = "UART_9";
2424
};
25+
26+
dmamux1: dmamux@40020800 {
27+
dma-requests= <129>;
28+
};
2529
};
30+
2631
/* DTCM memory directly coppled to CPU */
2732
dtcm: memory@20000000 {
2833
compatible = "arm,dtcm";

dts/arm/st/h7/stm32h743.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
erase-block-size = <DT_SIZE_K(128)>;
1515
};
1616
};
17+
18+
dmamux1: dmamux@40020800 {
19+
dma-requests= <107>;
20+
};
1721
};
22+
1823
/* system data RAM accessible over over AXI bus */
1924
sram0: memory@24000000 {
2025
compatible = "mmio-sram";

dts/arm/st/h7/stm32h745.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
erase-block-size = <DT_SIZE_K(128)>;
2121
};
2222
};
23+
24+
dmamux1: dmamux@40020800 {
25+
dma-requests= <107>;
26+
};
2327
};
2428
/*
2529
* The RAM memories placed here can be used by both cores M4/M7

dts/arm/st/h7/stm32h750.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
#include <st/h7/stm32h7.dtsi>
88

99
/ {
10+
soc {
11+
dmamux1: dmamux@40020800 {
12+
dma-requests= <107>;
13+
};
14+
};
15+
1016
/* system data RAM accessible over over AXI bus */
1117
sram0: memory@24000000 {
1218
compatible = "mmio-sram";

0 commit comments

Comments
 (0)