Merge tag 'tag-chrome-platform-for-v4.20' of git://git.kernel.org/pub/scm/linux/kerne...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / dma / renesas,usb-dmac.txt
1 * Renesas USB DMA Controller Device Tree bindings
2
3 Required Properties:
4 -compatible: "renesas,<soctype>-usb-dmac", "renesas,usb-dmac" as fallback.
5         Examples with soctypes are:
6           - "renesas,r8a7743-usb-dmac" (RZ/G1M)
7           - "renesas,r8a7744-usb-dmac" (RZ/G1N)
8           - "renesas,r8a7745-usb-dmac" (RZ/G1E)
9           - "renesas,r8a7790-usb-dmac" (R-Car H2)
10           - "renesas,r8a7791-usb-dmac" (R-Car M2-W)
11           - "renesas,r8a7793-usb-dmac" (R-Car M2-N)
12           - "renesas,r8a7794-usb-dmac" (R-Car E2)
13           - "renesas,r8a7795-usb-dmac" (R-Car H3)
14           - "renesas,r8a7796-usb-dmac" (R-Car M3-W)
15           - "renesas,r8a77965-usb-dmac" (R-Car M3-N)
16           - "renesas,r8a77990-usb-dmac" (R-Car E3)
17           - "renesas,r8a77995-usb-dmac" (R-Car D3)
18 - reg: base address and length of the registers block for the DMAC
19 - interrupts: interrupt specifiers for the DMAC, one for each entry in
20   interrupt-names.
21 - interrupt-names: one entry per channel, named "ch%u", where %u is the
22   channel number ranging from zero to the number of channels minus one.
23 - clocks: a list of phandle + clock-specifier pairs.
24 - #dma-cells: must be <1>, the cell specifies the channel number of the DMAC
25   port connected to the DMA client.
26 - dma-channels: number of DMA channels
27
28 Example: R8A7790 (R-Car H2) USB-DMACs
29
30         usb_dmac0: dma-controller@e65a0000 {
31                 compatible = "renesas,r8a7790-usb-dmac", "renesas,usb-dmac";
32                 reg = <0 0xe65a0000 0 0x100>;
33                 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH
34                               0 109 IRQ_TYPE_LEVEL_HIGH>;
35                 interrupt-names = "ch0", "ch1";
36                 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC0>;
37                 #dma-cells = <1>;
38                 dma-channels = <2>;
39         };
40
41         usb_dmac1: dma-controller@e65b0000 {
42                 compatible = "renesas,usb-dmac";
43                 reg = <0 0xe65b0000 0 0x100>;
44                 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH
45                               0 110 IRQ_TYPE_LEVEL_HIGH>;
46                 interrupt-names = "ch0", "ch1";
47                 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC1>;
48                 #dma-cells = <1>;
49                 dma-channels = <2>;
50         };