Lines Matching +full:stm32 +full:- +full:dma
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/dma/stm32/st,stm32-dma.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: STMicroelectronics STM32 DMA Controller
10 The STM32 DMA is a general-purpose direct memory access controller capable of
11 supporting 8 independent DMA channels. Each channel can have up to 8 requests.
12 DMA clients connected to the STM32 DMA controller must use the format
13 described in the dma.txt file, using a four-cell specifier for each
14 channel: a phandle to the DMA controller plus the following four integer cells:
17 3. A 32bit mask specifying the DMA channel configuration which are device
19 -bit 9: Peripheral Increment Address
22 -bit 10: Memory Increment Address
25 -bit 15: Peripheral Increment Offset Size
27 0x1: offset size is fixed to 4 (32-bit alignment)
28 -bit 16-17: Priority level
33 4. A 32bit bitfield value specifying DMA features which are device dependent:
34 -bit 0-1: DMA FIFO threshold selection
39 -bit 2: DMA direct mode
40 0x0: FIFO mode with threshold selectable with bit 0-1
41 0x1: Direct mode: each DMA request immediately initiates a transfer
43 -bit 4: alternative DMA request/acknowledge protocol
44 0x0: Use standard DMA ACK management, where ACK signal is maintained
46 0x1: Use alternative DMA ACK management, where ACK de-assertion does
47 not wait for the de-assertion of the REQuest, ACK is only managed
49 managing transfers for STM32 USART/UART.
53 - Amelie Delaunay <amelie.delaunay@foss.st.com>
56 - $ref: /schemas/dma/dma-controller.yaml#
59 "#dma-cells":
63 const: st,stm32-dma
73 description: Should contain all of the per-channel DMA
75 DMA channel index.
83 supports memory-to-memory transfer
85 access-controllers:
90 - compatible
91 - reg
92 - clocks
93 - interrupts
98 - |
99 #include <dt-bindings/interrupt-controller/arm-gic.h>
100 #include <dt-bindings/clock/stm32mp1-clks.h>
101 #include <dt-bindings/reset/stm32mp1-resets.h>
102 dma-controller@40026400 {
103 compatible = "st,stm32-dma";
114 #dma-cells = <4>;
117 dma-requests = <8>;