Skip to content

Commit d518b17

Browse files
author
Alain Volmat
committed
dts: st: h7: move dma property of dcmi in stm32h7.dtsi
Usage of dma is mandatory for the dcmi and this property is tightly coupled with the soc itself since the configuration of the dma depends on the source/destination, and the request line is also fixed for an ip. Instead of having to always have the dma property part of the board or shield dts/overlay, add the dma property into the dcmi node of the stm32h7.dtsi. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 35068a9 commit d518b17

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

boards/arduino/nicla_vision/arduino_nicla_vision_stm32h747xx_m7.dts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,6 @@ zephyr_udc0: &usbotg_hs {
240240
pinctrl-names = "default";
241241
status = "okay";
242242

243-
dmas = <&dma1 0 38 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
244-
STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS |
245-
STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
246-
247243
port {
248244
dcmi_ep_in: endpoint {
249245
remote-endpoint-label = "gc2145_ep_out";

boards/shields/st_b_cams_omv_mb1683/boards/stm32h7b3i_dk.overlay

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
&dcmi_d0_pc6 &dcmi_d1_pc7 &dcmi_d2_pg10 &dcmi_d3_pc9
1818
&dcmi_d4_pc11 &dcmi_d5_pd3 &dcmi_d6_pb8 &dcmi_d7_pb9>;
1919
pinctrl-names = "default";
20-
21-
dmas = <&dma1 0 75 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
22-
STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS |
23-
STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
2420
};
2521

2622
&dma1 {

boards/shields/weact_ov2640_cam_module/boards/mini_stm32h743.overlay

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@
4444
};
4545
};
4646

47-
&zephyr_camera_dvp {
48-
dmas = <&dma1 0 75 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
49-
STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS |
50-
STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
51-
};
52-
5347
&dma1 {
5448
status = "okay";
5549
};

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,9 @@
10861086
interrupts = <78 0>;
10871087
interrupt-names = "dcmi";
10881088
clocks = <&rcc STM32_CLOCK(AHB2, 0U)>;
1089+
dmas = <&dma1 0 75 (STM32_DMA_PERIPH_TO_MEMORY | STM32_DMA_PERIPH_NO_INC |
1090+
STM32_DMA_MEM_INC | STM32_DMA_PERIPH_8BITS | STM32_DMA_MEM_32BITS |
1091+
STM32_DMA_PRIORITY_HIGH) STM32_DMA_FIFO_1_4>;
10891092
status = "disabled";
10901093
};
10911094
};

0 commit comments

Comments
 (0)