Debian Codegraph @

Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.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/snps,dw-axi-dmac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Synopsys DesignWare AXI DMA Controller
8
9 maintainers:
10 - Eugeniy Paltsev <[email protected]>
11
12 description:
13 Synopsys DesignWare AXI DMA Controller DT Binding
14
15 allOf:
16 - $ref: dma-controller.yaml#
17
18 properties:
19 compatible:
20 oneOf:
21 - enum:
22 - snps,axi-dma-1.01a
23 - intel,kmb-axi-dma
24 - starfive,jh7110-axi-dma
25 - starfive,jh8100-axi-dma
26 - items:
27 - const: altr,agilex5-axi-dma
28 - const: snps,axi-dma-1.01a
29
30 reg:
31 minItems: 1
32 items:
33 - description: Address range of the DMAC registers
34 - description: Address range of the DMAC APB registers
35
36 reg-names:
37 items:
38 - const: axidma_ctrl_regs
39 - const: axidma_apb_regs
40
41 interrupts:
42 description:
43 If the IP-core synthesis parameter DMAX_INTR_IO_TYPE is set to 1, this
44 will be per-channel interrupts. Otherwise, this is a single combined IRQ
45 for all channels.
46 minItems: 1
47 maxItems: 8
48
49 iommus:
50 maxItems: 1
51
52 clocks:
53 items:
54 - description: Bus Clock
55 - description: Module Clock
56
57 clock-names:
58 items:
59 - const: core-clk
60 - const: cfgr-clk
61
62 '#dma-cells':
63 const: 1
64
65 dma-channels:
66 minimum: 1
67 maximum: 8
68
69 dma-noncoherent: true
70
71 resets:
72 minItems: 1
73 maxItems: 2
74
75 snps,dma-masters:
76 description: |
77 Number of AXI masters supported by the hardware.
78 $ref: /schemas/types.yaml#/definitions/uint32
79 enum: [1, 2]
80
81 snps,data-width:
82 description: |
83 AXI data width supported by hardware.
84 (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits)
85 $ref: /schemas/types.yaml#/definitions/uint32
86 enum: [0, 1, 2, 3, 4, 5, 6]
87
88 snps,priority:
89 description: |
90 Channel priority specifier associated with the DMA channels.
91 $ref: /schemas/types.yaml#/definitions/uint32-array
92 minItems: 1
93 maxItems: 8
94
95 snps,block-size:
96 description: |
97 Channel block size specifier associated with the DMA channels.
98 $ref: /schemas/types.yaml#/definitions/uint32-array
99 minItems: 1
100 maxItems: 8
101
102 snps,axi-max-burst-len:
103 description: |
104 Restrict master AXI burst length by value specified in this property.
105 If this property is missing the maximum AXI burst length supported by
106 DMAC is used.
107 $ref: /schemas/types.yaml#/definitions/uint32
108 minimum: 1
109 maximum: 256
110
111 required:
112 - compatible
113 - reg
114 - clocks
115 - clock-names
116 - interrupts
117 - '#dma-cells'
118 - dma-channels
119 - snps,dma-masters
120 - snps,data-width
121 - snps,priority
122 - snps,block-size
123
124 if:
125 properties:
126 compatible:
127 contains:
128 enum:
129 - starfive,jh7110-axi-dma
130 then:
131 properties:
132 resets:
133 minItems: 2
134 items:
135 - description: AXI reset line
136 - description: AHB reset line
137 - description: module reset
138 else:
139 properties:
140 resets:
141 maxItems: 1
142
143 additionalProperties: false
144
145 examples:
146 - |
147 #include <dt-bindings/interrupt-controller/arm-gic.h>
148 #include <dt-bindings/interrupt-controller/irq.h>
149 /* example with snps,dw-axi-dmac */
150 dma-controller@80000 {
151 compatible = "snps,axi-dma-1.01a";
152 reg = <0x80000 0x400>;
153 clocks = <&core_clk>, <&cfgr_clk>;
154 clock-names = "core-clk", "cfgr-clk";
155 interrupt-parent = <&intc>;
156 interrupts = <27>;
157 #dma-cells = <1>;
158 dma-channels = <4>;
159 snps,dma-masters = <2>;
160 snps,data-width = <3>;
161 snps,block-size = <4096 4096 4096 4096>;
162 snps,priority = <0 1 2 3>;
163 snps,axi-max-burst-len = <16>;
164 };