Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | MOXA ART DMA Controller |
| 2 | |
| 3 | See dma.txt first |
| 4 | |
| 5 | Required properties: |
| 6 | |
| 7 | - compatible : Must be "moxa,moxart-dma" |
| 8 | - reg : Should contain registers location and length |
| 9 | - interrupts : Should contain an interrupt-specifier for the sole |
| 10 | interrupt generated by the device |
| 11 | - #dma-cells : Should be 1, a single cell holding a line request number |
| 12 | |
| 13 | Example: |
| 14 | |
| 15 | dma: dma@90500000 { |
| 16 | compatible = "moxa,moxart-dma"; |
| 17 | reg = <0x90500080 0x40>; |
| 18 | interrupts = <24 0>; |
| 19 | #dma-cells = <1>; |
| 20 | }; |
| 21 | |
| 22 | |
| 23 | Clients: |
| 24 | |
| 25 | DMA clients connected to the MOXA ART DMA controller must use the format |
| 26 | described in the dma.txt file, using a two-cell specifier for each channel: |
| 27 | a phandle plus one integer cells. |
| 28 | The two cells in order are: |
| 29 | |
| 30 | 1. A phandle pointing to the DMA controller. |
| 31 | 2. Peripheral identifier for the hardware handshaking interface. |
| 32 | |
| 33 | Example: |
| 34 | Use specific request line passing from dma |
| 35 | For example, MMC request line is 5 |
| 36 | |
| 37 | mmc: mmc@98e00000 { |
| 38 | compatible = "moxa,moxart-mmc"; |
| 39 | reg = <0x98e00000 0x5C>; |
| 40 | interrupts = <5 0>; |
| 41 | clocks = <&clk_apb>; |
| 42 | dmas = <&dma 5>, |
| 43 | <&dma 5>; |
| 44 | dma-names = "tx", "rx"; |
| 45 | }; |