Path: blob/main/sys/contrib/device-tree/Bindings/dma/atmel-dma.txt
48375 views
* Atmel Direct Memory Access Controller (DMA)12Required properties:3- compatible: Should be "atmel,<chip>-dma".4- reg: Should contain DMA registers location and length.5- interrupts: Should contain DMA interrupt.6- #dma-cells: Must be <2>, used to represent the number of integer cells in7the dmas property of client devices.89Example:1011dma0: dma@ffffec00 {12compatible = "atmel,at91sam9g45-dma";13reg = <0xffffec00 0x200>;14interrupts = <21>;15#dma-cells = <2>;16};1718DMA clients connected to the Atmel DMA controller must use the format19described in the dma.txt file, using a three-cell specifier for each channel:20a phandle plus two integer cells.21The three cells in order are:22231. A phandle pointing to the DMA controller.242. The memory interface (16 most significant bits), the peripheral interface25(16 less significant bits).263. Parameters for the at91 DMA configuration register which are device27dependent:28- bit 7-0: peripheral identifier for the hardware handshaking interface. The29identifier can be different for tx and rx.30- bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASAP.3132Example:3334i2c0@i2c@f8010000 {35compatible = "atmel,at91sam9x5-i2c";36reg = <0xf8010000 0x100>;37interrupts = <9 4 6>;38dmas = <&dma0 1 7>,39<&dma0 1 8>;40dma-names = "tx", "rx";41};424344