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
11 channel: a phandle to the DMA controller plus the following four integer cells:
12 1. channel: the dma stream from 0 to <dma-requests>
14 this value is 0 for Memory-to-memory transfers
15 or a value between <1> .. <dma-generators> (not supported yet)
16 or a value between <dma-generators>+1 .. <dma-generators>+<dma-requests>
17 3. channel-config: A 32bit mask specifying the DMA channel configuration
19 -bit 6-7 : Direction (see dma.h)
20 0x0: STM32_DMA_MEMORY_TO_MEMORY: MEM to MEM
21 0x1: STM32_DMA_MEMORY_TO_PERIPH: MEM to PERIPH
22 0x2: STM32_DMA_PERIPH_TO_MEMORY: PERIPH to MEM
23 0x3: reserved for PERIPH to PERIPH
24 -bit 9 : Peripheral Increment Address
27 -bit 10 : Memory Increment Address
30 -bit 11-12 : Peripheral data size
32 0x1: STM32_DMA_PERIPH_16BITS: Half-word (16 bits)
35 -bit 13-14 : Memory data size
37 0x1: STM32_DMA_MEM_16BITS: Half-word (16 bits)
40 -bit 15: Peripheral Increment Offset Size
41 0x0: STM32_DMA_OFFSET_LINKED_BUS: offset size is linked to the peripheral bus width
42 0x1: STM32_DMA_OFFSET_FIXED_4: offset size is fixed to 4 (32-bit alignment)
43 -bit 16-17 : Priority level
49 -bit 0-1: DMA FIFO threshold selection
55 Example of dma usual combination for peripheral transfer
60 dma2: dma-controller@40020400 {
61 compatible = "st,stm32-dma-v1";
64 dma-requests = <7>;
74 dma-names = "tx", "rx";
77 compatible: "st,stm32-dma-v1"
79 include: st,stm32-dma.yaml
82 "#dma-cells":
87 …rnel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/plain/Bindings/dma/st,stm32-d…
89 dma-cells:
90 - channel
91 - slot
92 - channel-config
93 - features