Debian Codegraph @

Documentation/devicetree/bindings/dma/atmel,sama5d4-dma.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/dma/atmel,sama5d4-dma.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Microchip AT91 Extensible Direct Memory Access Controller
8
9 maintainers:
10 - Nicolas Ferre <[email protected]>
11 - Charan Pedumuru <[email protected]>
12
13 description:
14 The DMA Controller (XDMAC) is a AHB-protocol central direct memory access
15 controller. It performs peripheral data transfer and memory move operations
16 over one or two bus ports through the unidirectional communication
17 channel. Each channel is fully programmable and provides both peripheral
18 or memory-to-memory transfers. The channel features are configurable at
19 implementation.
20
21 allOf:
22 - $ref: dma-controller.yaml#
23
24 properties:
25 compatible:
26 oneOf:
27 - enum:
28 - atmel,sama5d4-dma
29 - microchip,sama7g5-dma
30 - items:
31 - enum:
32 - microchip,sam9x60-dma
33 - microchip,sam9x7-dma
34 - const: atmel,sama5d4-dma
35 - items:
36 - enum:
37 - microchip,lan9691-dma
38 - microchip,sama7d65-dma
39 - const: microchip,sama7g5-dma
40
41 "#dma-cells":
42 description: |
43 Represents the number of integer cells in the `dmas` property of client
44 devices. The single cell specifies the channel configuration register:
45 - bit 13: SIF (Source Interface Identifier) for memory interface.
46 - bit 14: DIF (Destination Interface Identifier) for peripheral interface.
47 - bit 30-24: PERID (Peripheral Identifier).
48 const: 1
49
50 reg:
51 maxItems: 1
52
53 interrupts:
54 maxItems: 1
55
56 clocks:
57 maxItems: 1
58
59 clock-names:
60 const: dma_clk
61
62 required:
63 - compatible
64 - reg
65 - interrupts
66 - clocks
67 - clock-names
68 - "#dma-cells"
69
70 unevaluatedProperties: false
71
72 examples:
73 - |
74 #include <dt-bindings/clock/at91.h>
75 #include <dt-bindings/dma/at91.h>
76 #include <dt-bindings/interrupt-controller/irq.h>
77 dma-controller@f0008000 {
78 compatible = "atmel,sama5d4-dma";
79 reg = <0xf0008000 0x1000>;
80 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
81 #dma-cells = <1>;
82 clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
83 clock-names = "dma_clk";
84 };