Kyle Swenson | 8d8f654 | 2021-03-15 11:02:55 -0600 | [diff] [blame^] | 1 | * Renesas USB DMA Controller Device Tree bindings |
| 2 | |
| 3 | Required Properties: |
| 4 | - compatible: must contain "renesas,usb-dmac" |
| 5 | - reg: base address and length of the registers block for the DMAC |
| 6 | - interrupts: interrupt specifiers for the DMAC, one for each entry in |
| 7 | interrupt-names. |
| 8 | - interrupt-names: one entry per channel, named "ch%u", where %u is the |
| 9 | channel number ranging from zero to the number of channels minus one. |
| 10 | - clocks: a list of phandle + clock-specifier pairs. |
| 11 | - #dma-cells: must be <1>, the cell specifies the channel number of the DMAC |
| 12 | port connected to the DMA client. |
| 13 | - dma-channels: number of DMA channels |
| 14 | |
| 15 | Example: R8A7790 (R-Car H2) USB-DMACs |
| 16 | |
| 17 | usb_dmac0: dma-controller@e65a0000 { |
| 18 | compatible = "renesas,usb-dmac"; |
| 19 | reg = <0 0xe65a0000 0 0x100>; |
| 20 | interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH |
| 21 | 0 109 IRQ_TYPE_LEVEL_HIGH>; |
| 22 | interrupt-names = "ch0", "ch1"; |
| 23 | clocks = <&mstp3_clks R8A7790_CLK_USBDMAC0>; |
| 24 | #dma-cells = <1>; |
| 25 | dma-channels = <2>; |
| 26 | }; |
| 27 | |
| 28 | usb_dmac1: dma-controller@e65b0000 { |
| 29 | compatible = "renesas,usb-dmac"; |
| 30 | reg = <0 0xe65b0000 0 0x100>; |
| 31 | interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH |
| 32 | 0 110 IRQ_TYPE_LEVEL_HIGH>; |
| 33 | interrupt-names = "ch0", "ch1"; |
| 34 | clocks = <&mstp3_clks R8A7790_CLK_USBDMAC1>; |
| 35 | #dma-cells = <1>; |
| 36 | dma-channels = <2>; |
| 37 | }; |