xref: /freebsd/sys/contrib/device-tree/Bindings/dma/zxdma.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* ZTE ZX296702 DMA controller
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: Should be "zte,zx296702-dma"
5*c66ec88fSEmmanuel Vadot- reg: Should contain DMA registers location and length.
6*c66ec88fSEmmanuel Vadot- interrupts: Should contain one interrupt shared by all channel
7*c66ec88fSEmmanuel Vadot- #dma-cells: see dma.txt, should be 1, para number
8*c66ec88fSEmmanuel Vadot- dma-channels: physical channels supported
9*c66ec88fSEmmanuel Vadot- dma-requests: virtual channels supported, each virtual channel
10*c66ec88fSEmmanuel Vadot		have specific request line
11*c66ec88fSEmmanuel Vadot- clocks: clock required
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotExample:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotController:
16*c66ec88fSEmmanuel Vadot	dma: dma-controller@09c00000{
17*c66ec88fSEmmanuel Vadot		compatible = "zte,zx296702-dma";
18*c66ec88fSEmmanuel Vadot		reg = <0x09c00000 0x1000>;
19*c66ec88fSEmmanuel Vadot		clocks = <&topclk ZX296702_DMA_ACLK>;
20*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
21*c66ec88fSEmmanuel Vadot		#dma-cells = <1>;
22*c66ec88fSEmmanuel Vadot		dma-channels = <24>;
23*c66ec88fSEmmanuel Vadot		dma-requests = <24>;
24*c66ec88fSEmmanuel Vadot	};
25*c66ec88fSEmmanuel Vadot
26*c66ec88fSEmmanuel VadotClient:
27*c66ec88fSEmmanuel VadotUse specific request line passing from dmax
28*c66ec88fSEmmanuel VadotFor example, spdif0 tx channel request line is 4
29*c66ec88fSEmmanuel Vadot	spdif0: spdif0@b004000 {
30*c66ec88fSEmmanuel Vadot		#sound-dai-cells = <0>;
31*c66ec88fSEmmanuel Vadot		compatible = "zte,zx296702-spdif";
32*c66ec88fSEmmanuel Vadot		reg = <0x0b004000 0x1000>;
33*c66ec88fSEmmanuel Vadot		clocks = <&lsp0clk ZX296702_SPDIF0_DIV>;
34*c66ec88fSEmmanuel Vadot		clock-names = "tx";
35*c66ec88fSEmmanuel Vadot		interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
36*c66ec88fSEmmanuel Vadot		dmas = <&dma 4>;
37*c66ec88fSEmmanuel Vadot		dma-names = "tx";
38*c66ec88fSEmmanuel Vadot	}
39