162306a36Sopenharmony_ci* Atmel Direct Memory Access Controller (DMA)
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci- compatible: Should be "atmel,<chip>-dma".
562306a36Sopenharmony_ci- reg: Should contain DMA registers location and length.
662306a36Sopenharmony_ci- interrupts: Should contain DMA interrupt.
762306a36Sopenharmony_ci- #dma-cells: Must be <2>, used to represent the number of integer cells in
862306a36Sopenharmony_cithe dmas property of client devices.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciExample:
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cidma0: dma@ffffec00 {
1362306a36Sopenharmony_ci	compatible = "atmel,at91sam9g45-dma";
1462306a36Sopenharmony_ci	reg = <0xffffec00 0x200>;
1562306a36Sopenharmony_ci	interrupts = <21>;
1662306a36Sopenharmony_ci	#dma-cells = <2>;
1762306a36Sopenharmony_ci};
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciDMA clients connected to the Atmel DMA controller must use the format
2062306a36Sopenharmony_cidescribed in the dma.txt file, using a three-cell specifier for each channel:
2162306a36Sopenharmony_cia phandle plus two integer cells.
2262306a36Sopenharmony_ciThe three cells in order are:
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci1. A phandle pointing to the DMA controller.
2562306a36Sopenharmony_ci2. The memory interface (16 most significant bits), the peripheral interface
2662306a36Sopenharmony_ci(16 less significant bits).
2762306a36Sopenharmony_ci3. Parameters for the at91 DMA configuration register which are device
2862306a36Sopenharmony_cidependent:
2962306a36Sopenharmony_ci  - bit 7-0: peripheral identifier for the hardware handshaking interface. The
3062306a36Sopenharmony_ci  identifier can be different for tx and rx.
3162306a36Sopenharmony_ci  - bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASAP.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ciExample:
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_cii2c0@i2c@f8010000 {
3662306a36Sopenharmony_ci	compatible = "atmel,at91sam9x5-i2c";
3762306a36Sopenharmony_ci	reg = <0xf8010000 0x100>;
3862306a36Sopenharmony_ci	interrupts = <9 4 6>;
3962306a36Sopenharmony_ci	dmas = <&dma0 1 7>,
4062306a36Sopenharmony_ci	       <&dma0 1 8>;
4162306a36Sopenharmony_ci	dma-names = "tx", "rx";
4262306a36Sopenharmony_ci};
43