Merge tag 'v4.17-rc2' into next-general
[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,r8a7745-usb-dmac" (RZ/G1E)
8           - "renesas,r8a7790-usb-dmac" (R-Car H2)
9           - "renesas,r8a7791-usb-dmac" (R-Car M2-W)
10           - "renesas,r8a7793-usb-dmac" (R-Car M2-N)
11           - "renesas,r8a7794-usb-dmac" (R-Car E2)
12           - "renesas,r8a7795-usb-dmac" (R-Car H3)
13           - "renesas,r8a7796-usb-dmac" (R-Car M3-W)
14           - "renesas,r8a77965-usb-dmac" (R-Car M3-N)
15 - reg: base address and length of the registers block for the DMAC
16 - interrupts: interrupt specifiers for the DMAC, one for each entry in
17   interrupt-names.
18 - interrupt-names: one entry per channel, named "ch%u", where %u is the
19   channel number ranging from zero to the number of channels minus one.
20 - clocks: a list of phandle + clock-specifier pairs.
21 - #dma-cells: must be <1>, the cell specifies the channel number of the DMAC
22   port connected to the DMA client.
23 - dma-channels: number of DMA channels
24
25 Example: R8A7790 (R-Car H2) USB-DMACs
26
27         usb_dmac0: dma-controller@e65a0000 {
28                 compatible = "renesas,r8a7790-usb-dmac", "renesas,usb-dmac";
29                 reg = <0 0xe65a0000 0 0x100>;
30                 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH
31                               0 109 IRQ_TYPE_LEVEL_HIGH>;
32                 interrupt-names = "ch0", "ch1";
33                 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC0>;
34                 #dma-cells = <1>;
35                 dma-channels = <2>;
36         };
37
38         usb_dmac1: dma-controller@e65b0000 {
39                 compatible = "renesas,usb-dmac";
40                 reg = <0 0xe65b0000 0 0x100>;
41                 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH
42                               0 110 IRQ_TYPE_LEVEL_HIGH>;
43                 interrupt-names = "ch0", "ch1";
44                 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC1>;
45                 #dma-cells = <1>;
46                 dma-channels = <2>;
47         };