treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / dma / renesas,usb-dmac.txt
blobf1f95f6787393b8ee654d9e58a924b2adbcfbb6f
1 * Renesas USB DMA Controller Device Tree bindings
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,r8a77470-usb-dmac" (RZ/G1C)
10           - "renesas,r8a774a1-usb-dmac" (RZ/G2M)
11           - "renesas,r8a774b1-usb-dmac" (RZ/G2N)
12           - "renesas,r8a774c0-usb-dmac" (RZ/G2E)
13           - "renesas,r8a7790-usb-dmac" (R-Car H2)
14           - "renesas,r8a7791-usb-dmac" (R-Car M2-W)
15           - "renesas,r8a7793-usb-dmac" (R-Car M2-N)
16           - "renesas,r8a7794-usb-dmac" (R-Car E2)
17           - "renesas,r8a7795-usb-dmac" (R-Car H3)
18           - "renesas,r8a7796-usb-dmac" (R-Car M3-W)
19           - "renesas,r8a77965-usb-dmac" (R-Car M3-N)
20           - "renesas,r8a77990-usb-dmac" (R-Car E3)
21           - "renesas,r8a77995-usb-dmac" (R-Car D3)
22 - reg: base address and length of the registers block for the DMAC
23 - interrupts: interrupt specifiers for the DMAC, one for each entry in
24   interrupt-names.
25 - interrupt-names: one entry per channel, named "ch%u", where %u is the
26   channel number ranging from zero to the number of channels minus one.
27 - clocks: a list of phandle + clock-specifier pairs.
28 - #dma-cells: must be <1>, the cell specifies the channel number of the DMAC
29   port connected to the DMA client.
30 - dma-channels: number of DMA channels
32 Example: R8A7790 (R-Car H2) USB-DMACs
34         usb_dmac0: dma-controller@e65a0000 {
35                 compatible = "renesas,r8a7790-usb-dmac", "renesas,usb-dmac";
36                 reg = <0 0xe65a0000 0 0x100>;
37                 interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH
38                               0 109 IRQ_TYPE_LEVEL_HIGH>;
39                 interrupt-names = "ch0", "ch1";
40                 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC0>;
41                 #dma-cells = <1>;
42                 dma-channels = <2>;
43         };
45         usb_dmac1: dma-controller@e65b0000 {
46                 compatible = "renesas,usb-dmac";
47                 reg = <0 0xe65b0000 0 0x100>;
48                 interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH
49                               0 110 IRQ_TYPE_LEVEL_HIGH>;
50                 interrupt-names = "ch0", "ch1";
51                 clocks = <&mstp3_clks R8A7790_CLK_USBDMAC1>;
52                 #dma-cells = <1>;
53                 dma-channels = <2>;
54         };