diff options
author | Vinod Koul <vinod.koul@intel.com> | 2015-08-23 18:54:39 +0530 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-08-23 18:54:39 +0530 |
commit | b2b48ac4c584ae31eb23ad1f86964cc6e52eaa54 (patch) | |
tree | 9e973522bc1f407be44afdee3743b227c945007d /Documentation | |
parent | 76891cc8c4930e21b9bce226524f1b57756bc25e (diff) | |
parent | ed9c87b33147e5b007e66a282b9c8c307fbf8bf9 (diff) | |
download | linux-stable-b2b48ac4c584ae31eb23ad1f86964cc6e52eaa54.tar.gz linux-stable-b2b48ac4c584ae31eb23ad1f86964cc6e52eaa54.tar.bz2 linux-stable-b2b48ac4c584ae31eb23ad1f86964cc6e52eaa54.zip |
Merge branch 'topic/zxdma' into for-linus
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/dma/zxdma.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/dma/zxdma.txt b/Documentation/devicetree/bindings/dma/zxdma.txt new file mode 100644 index 000000000000..3207ceb04d0b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/zxdma.txt @@ -0,0 +1,38 @@ +* ZTE ZX296702 DMA controller + +Required properties: +- compatible: Should be "zte,zx296702-dma" +- reg: Should contain DMA registers location and length. +- interrupts: Should contain one interrupt shared by all channel +- #dma-cells: see dma.txt, should be 1, para number +- dma-channels: physical channels supported +- dma-requests: virtual channels supported, each virtual channel + have specific request line +- clocks: clock required + +Example: + +Controller: + dma: dma-controller@0x09c00000{ + compatible = "zte,zx296702-dma"; + reg = <0x09c00000 0x1000>; + clocks = <&topclk ZX296702_DMA_ACLK>; + interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; + #dma-cells = <1>; + dma-channels = <24>; + dma-requests = <24>; + }; + +Client: +Use specific request line passing from dmax +For example, spdif0 tx channel request line is 4 + spdif0: spdif0@0b004000 { + #sound-dai-cells = <0>; + compatible = "zte,zx296702-spdif"; + reg = <0x0b004000 0x1000>; + clocks = <&lsp0clk ZX296702_SPDIF0_DIV>; + clock-names = "tx"; + interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&dma 4>; + dma-names = "tx"; + } |