Lines Matching +full:peripheral +full:- +full:to +full:- +full:memory
2 # SPDX-License-Identifier: Apache-2.0
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
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>
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
23 -bit 5 : DMA cyclic mode config
26 -bit 6-7 : Direction (see dma.h)
27 0x0: STM32_DMA_MEMORY_TO_MEMORY: MEM to MEM
28 0x1: STM32_DMA_MEMORY_TO_PERIPH: MEM to PERIPH
29 0x2: STM32_DMA_PERIPH_TO_MEMORY: PERIPH to MEM
30 0x3: reserved for PERIPH to PERIPH
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
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":
86 …rnel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/plain/Bindings/dma/st,stm32-d…
88 dma-cells:
89 - channel
90 - slot
91 - channel-config