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