Lines Matching +full:stm32 +full:- +full:dma +full:- +full:v2

2 # SPDX-License-Identifier: Apache-2.0
5 STM32 DMA controller (V2)
7 It is present on stm32 devices like stm32L4 or stm32WB.
8 This DMA controller includes several channels with different requests.
9 DMA clients connected to the STM32 DMA controller must use the format
10 described in the dma.txt file, using a four-cell specifier for each
11 capable of supporting 5 or 6 or 7 or 8 independent DMA channels.
12 DMA clients connected to the STM32 DMA controller must use the format
13 described in the dma.txt file, using a 3-cell specifier for each
14 channel: a phandle to the DMA controller plus the following four integer cells:
15 1. channel: the dma stream from 1 to <dma-requests>
16 2. slot: DMA periph request ID, which is written in the DMAREQ_ID of the DMAMUX_CxCR
17 this value is 0 for Memory-to-memory transfers
18 or a value between <1> .. <dma-generators> (not supported yet)
19 or a value between <dma-generators>+1 .. <dma-generators>+<dma-requests>
20 3. channel-config: A 32bit mask specifying the DMA channel configuration
21 A name custom DMA flags for channel configuration is used
23 -bit 5 : DMA cyclic mode config
26 -bit 6-7 : Direction (see dma.h)
31 -bit 9 : Peripheral Increment Address
34 -bit 10 : Memory Increment Address
37 -bit 11-12 : Peripheral data size
39 0x1: STM32_DMA_PERIPH_16BITS: Half-word (16 bits)
42 -bit 13-14 : Memory data size
44 0x1: STM32_DMA_MEM_16BITS: Half-word (16 bits)
47 -bit 15: Reserved
48 -bit 16-17 : Priority level
54 Example of dma usual combination for peripheral transfer
58 Example of dma node for stm32wb55x
59 dma2: dma-controller@40020400 {
60 compatible = "st,stm32-dma-v2";
62 dma-requests = <7>;
70 compatible = "st,stm32-spi";
73 dma-names = "tx", "rx";
76 compatible: "st,stm32-dma-v2"
78 include: st,stm32-dma.yaml
81 "#dma-cells":
84 # Parameter syntax of stm32 follows the dma client dts syntax
86 …nel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/plain/Bindings/dma/st,stm32-dm…
88 dma-cells:
89 - channel
90 - slot
91 - channel-config