xref: /freebsd/sys/contrib/device-tree/Bindings/dma/sirfsoc-dma.txt (revision 1d386b48a555f61cb7325543adbbb5c3f3407a66)
1* CSR SiRFSoC DMA controller
2
3See dma.txt first
4
5Required properties:
6- compatible: Should be "sirf,prima2-dmac", "sirf,atlas7-dmac" or
7  "sirf,atlas7-dmac-v2"
8- reg: Should contain DMA registers location and length.
9- interrupts: Should contain one interrupt shared by all channel
10- #dma-cells: must be <1>. used to represent the number of integer
11    cells in the dmas property of client device.
12- clocks: clock required
13
14Example:
15
16Controller:
17dmac0: dma-controller@b00b0000 {
18	compatible = "sirf,prima2-dmac";
19	reg = <0xb00b0000 0x10000>;
20	interrupts = <12>;
21	clocks = <&clks 24>;
22	#dma-cells = <1>;
23};
24
25
26Client:
27Fill the specific dma request line in dmas. In the below example, spi0 read
28channel request line is 9 of the 2nd dma controller, while write channel uses
294 of the 2nd dma controller; spi1 read channel request line is 12 of the 1st
30dma controller, while write channel uses 13 of the 1st dma controller:
31
32spi0: spi@b00d0000 {
33	compatible = "sirf,prima2-spi";
34	dmas = <&dmac1 9>,
35		<&dmac1 4>;
36	dma-names = "rx", "tx";
37};
38
39spi1: spi@b0170000 {
40	compatible = "sirf,prima2-spi";
41	dmas = <&dmac0 12>,
42		<&dmac0 13>;
43	dma-names = "rx", "tx";
44};
45