]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt
dmaengine: rcar-dmac: Document R-Car M3-W bindings
[mirror_ubuntu-bionic-kernel.git] / Documentation / devicetree / bindings / dma / renesas,rcar-dmac.txt
CommitLineData
3770f2a6 1* Renesas R-Car (RZ/G) DMA Controller Device Tree bindings
10f5c843 2
ac3e8ea1 3Renesas R-Car Generation 2 SoCs have multiple multi-channel DMA
10f5c843
LP
4controller instances named DMAC capable of serving multiple clients. Channels
5can be dedicated to specific clients or shared between a large number of
6clients.
7
10f5c843
LP
8Each DMA client is connected to one dedicated port of the DMAC, identified by
9an 8-bit port number called the MID/RID. A DMA controller can thus serve up to
10256 clients in total. When the number of hardware channels is lower than the
11number of clients to be served, channels must be shared between multiple DMA
12clients. The association of DMA clients to DMAC channels is fully dynamic and
13not described in these device tree bindings.
14
15Required Properties:
16
6bf64103
SH
17- compatible: "renesas,dmac-<soctype>", "renesas,rcar-dmac" as fallback.
18 Examples with soctypes are:
3770f2a6
SS
19 - "renesas,dmac-r8a7743" (RZ/G1M)
20 - "renesas,dmac-r8a7745" (RZ/G1E)
6bf64103
SH
21 - "renesas,dmac-r8a7790" (R-Car H2)
22 - "renesas,dmac-r8a7791" (R-Car M2-W)
23 - "renesas,dmac-r8a7792" (R-Car V2H)
24 - "renesas,dmac-r8a7793" (R-Car M2-N)
25 - "renesas,dmac-r8a7794" (R-Car E2)
26 - "renesas,dmac-r8a7795" (R-Car H3)
942ba9dc 27 - "renesas,dmac-r8a7796" (R-Car M3-W)
10f5c843
LP
28
29- reg: base address and length of the registers block for the DMAC
30
31- interrupts: interrupt specifiers for the DMAC, one for each entry in
32 interrupt-names.
33- interrupt-names: one entry per channel, named "ch%u", where %u is the
34 channel number ranging from zero to the number of channels minus one.
35
36- clock-names: "fck" for the functional clock
37- clocks: a list of phandle + clock-specifier pairs, one for each entry
38 in clock-names.
39- clock-names: must contain "fck" for the functional clock.
40
41- #dma-cells: must be <1>, the cell specifies the MID/RID of the DMAC port
42 connected to the DMA client
43- dma-channels: number of DMA channels
44
45Example: R8A7790 (R-Car H2) SYS-DMACs
46
47 dmac0: dma-controller@e6700000 {
6bf64103 48 compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac";
10f5c843
LP
49 reg = <0 0xe6700000 0 0x20000>;
50 interrupts = <0 197 IRQ_TYPE_LEVEL_HIGH
51 0 200 IRQ_TYPE_LEVEL_HIGH
52 0 201 IRQ_TYPE_LEVEL_HIGH
53 0 202 IRQ_TYPE_LEVEL_HIGH
54 0 203 IRQ_TYPE_LEVEL_HIGH
55 0 204 IRQ_TYPE_LEVEL_HIGH
56 0 205 IRQ_TYPE_LEVEL_HIGH
57 0 206 IRQ_TYPE_LEVEL_HIGH
58 0 207 IRQ_TYPE_LEVEL_HIGH
59 0 208 IRQ_TYPE_LEVEL_HIGH
60 0 209 IRQ_TYPE_LEVEL_HIGH
61 0 210 IRQ_TYPE_LEVEL_HIGH
62 0 211 IRQ_TYPE_LEVEL_HIGH
63 0 212 IRQ_TYPE_LEVEL_HIGH
64 0 213 IRQ_TYPE_LEVEL_HIGH
65 0 214 IRQ_TYPE_LEVEL_HIGH>;
66 interrupt-names = "error",
67 "ch0", "ch1", "ch2", "ch3",
68 "ch4", "ch5", "ch6", "ch7",
69 "ch8", "ch9", "ch10", "ch11",
70 "ch12", "ch13", "ch14";
71 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC0>;
72 clock-names = "fck";
73 #dma-cells = <1>;
74 dma-channels = <15>;
75 };
76
77 dmac1: dma-controller@e6720000 {
6bf64103 78 compatible = "renesas,dmac-r8a7790", "renesas,rcar-dmac";
10f5c843
LP
79 reg = <0 0xe6720000 0 0x20000>;
80 interrupts = <0 220 IRQ_TYPE_LEVEL_HIGH
81 0 216 IRQ_TYPE_LEVEL_HIGH
82 0 217 IRQ_TYPE_LEVEL_HIGH
83 0 218 IRQ_TYPE_LEVEL_HIGH
84 0 219 IRQ_TYPE_LEVEL_HIGH
85 0 308 IRQ_TYPE_LEVEL_HIGH
86 0 309 IRQ_TYPE_LEVEL_HIGH
87 0 310 IRQ_TYPE_LEVEL_HIGH
88 0 311 IRQ_TYPE_LEVEL_HIGH
89 0 312 IRQ_TYPE_LEVEL_HIGH
90 0 313 IRQ_TYPE_LEVEL_HIGH
91 0 314 IRQ_TYPE_LEVEL_HIGH
92 0 315 IRQ_TYPE_LEVEL_HIGH
93 0 316 IRQ_TYPE_LEVEL_HIGH
94 0 317 IRQ_TYPE_LEVEL_HIGH
95 0 318 IRQ_TYPE_LEVEL_HIGH>;
96 interrupt-names = "error",
97 "ch0", "ch1", "ch2", "ch3",
98 "ch4", "ch5", "ch6", "ch7",
99 "ch8", "ch9", "ch10", "ch11",
100 "ch12", "ch13", "ch14";
101 clocks = <&mstp2_clks R8A7790_CLK_SYS_DMAC1>;
102 clock-names = "fck";
103 #dma-cells = <1>;
104 dma-channels = <15>;
105 };