Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: dma: Add documentation for ZTE DMA

This patch adds documentation for the ZTE ZX296702 SoC DMA device
DTS binding.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Jun Nie and committed by
Vinod Koul
7f37a3d8 d770e558

+38
+38
Documentation/devicetree/bindings/dma/zxdma.txt
··· 1 + * ZTE ZX296702 DMA controller 2 + 3 + Required properties: 4 + - compatible: Should be "zte,zx296702-dma" 5 + - reg: Should contain DMA registers location and length. 6 + - interrupts: Should contain one interrupt shared by all channel 7 + - #dma-cells: see dma.txt, should be 1, para number 8 + - dma-channels: physical channels supported 9 + - dma-requests: virtual channels supported, each virtual channel 10 + have specific request line 11 + - clocks: clock required 12 + 13 + Example: 14 + 15 + Controller: 16 + dma: dma-controller@0x09c00000{ 17 + compatible = "zte,zx296702-dma"; 18 + reg = <0x09c00000 0x1000>; 19 + clocks = <&topclk ZX296702_DMA_ACLK>; 20 + interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 21 + #dma-cells = <1>; 22 + dma-channels = <24>; 23 + dma-requests = <24>; 24 + }; 25 + 26 + Client: 27 + Use specific request line passing from dmax 28 + For example, spdif0 tx channel request line is 4 29 + spdif0: spdif0@0b004000 { 30 + #sound-dai-cells = <0>; 31 + compatible = "zte,zx296702-spdif"; 32 + reg = <0x0b004000 0x1000>; 33 + clocks = <&lsp0clk ZX296702_SPDIF0_DIV>; 34 + clock-names = "tx"; 35 + interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 36 + dmas = <&dma 4>; 37 + dma-names = "tx"; 38 + }