diff options
author | Alex Smith <alex.smith@imgtec.com> | 2015-03-18 12:16:35 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2015-03-31 23:13:33 -0400 |
commit | c8307106f5fa53b8fe8763b488d629e3cce9fae3 (patch) | |
tree | e1348e8e38562e15ae7167c6402802108a8d3fba /Documentation | |
parent | 381a3c4a33bf33943ed3791bd8797d8d8490b4fd (diff) |
dt-bindings: dma: Add binding for jz4780-dma
Add device tree bindings for the DMA controller on JZ4780 SoCs, used by
the dma-jz4780 driver.
Signed-off-by: Alex Smith <alex.smith@imgtec.com>
Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/dma/jz4780-dma.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/dma/jz4780-dma.txt b/Documentation/devicetree/bindings/dma/jz4780-dma.txt new file mode 100644 index 000000000000..f25feee62b15 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/jz4780-dma.txt | |||
@@ -0,0 +1,56 @@ | |||
1 | * Ingenic JZ4780 DMA Controller | ||
2 | |||
3 | Required properties: | ||
4 | |||
5 | - compatible: Should be "ingenic,jz4780-dma" | ||
6 | - reg: Should contain the DMA controller registers location and length. | ||
7 | - interrupts: Should contain the interrupt specifier of the DMA controller. | ||
8 | - interrupt-parent: Should be the phandle of the interrupt controller that | ||
9 | - clocks: Should contain a clock specifier for the JZ4780 PDMA clock. | ||
10 | - #dma-cells: Must be <2>. Number of integer cells in the dmas property of | ||
11 | DMA clients (see below). | ||
12 | |||
13 | Optional properties: | ||
14 | |||
15 | - ingenic,reserved-channels: Bitmask of channels to reserve for devices that | ||
16 | need a specific channel. These channels will only be assigned when explicitly | ||
17 | requested by a client. The primary use for this is channels 0 and 1, which | ||
18 | can be configured to have special behaviour for NAND/BCH when using | ||
19 | programmable firmware. | ||
20 | |||
21 | Example: | ||
22 | |||
23 | dma: dma@13420000 { | ||
24 | compatible = "ingenic,jz4780-dma"; | ||
25 | reg = <0x13420000 0x10000>; | ||
26 | |||
27 | interrupt-parent = <&intc>; | ||
28 | interrupts = <10>; | ||
29 | |||
30 | clocks = <&cgu JZ4780_CLK_PDMA>; | ||
31 | |||
32 | #dma-cells = <2>; | ||
33 | |||
34 | ingenic,reserved-channels = <0x3>; | ||
35 | }; | ||
36 | |||
37 | DMA clients must use the format described in dma.txt, giving a phandle to the | ||
38 | DMA controller plus the following 2 integer cells: | ||
39 | |||
40 | 1. Request type: The DMA request type for transfers to/from the device on | ||
41 | the allocated channel, as defined in the SoC documentation. | ||
42 | |||
43 | 2. Channel: If set to 0xffffffff, any available channel will be allocated for | ||
44 | the client. Otherwise, the exact channel specified will be used. The channel | ||
45 | should be reserved on the DMA controller using the ingenic,reserved-channels | ||
46 | property. | ||
47 | |||
48 | Example: | ||
49 | |||
50 | uart0: serial@10030000 { | ||
51 | ... | ||
52 | dmas = <&dma 0x14 0xffffffff | ||
53 | &dma 0x15 0xffffffff>; | ||
54 | dma-names = "tx", "rx"; | ||
55 | ... | ||
56 | }; | ||