GNU Linux-libre 4.19.264-gnu1
[releases.git] / Documentation / devicetree / bindings / dma / nvidia,tegra210-adma.txt
1 * NVIDIA Tegra Audio DMA (ADMA) controller
2
3 The Tegra Audio DMA controller that is used for transferring data
4 between system memory and the Audio Processing Engine (APE).
5
6 Required properties:
7 - compatible: Must be "nvidia,tegra210-adma".
8 - reg: Should contain DMA registers location and length. This should be
9   a single entry that includes all of the per-channel registers in one
10   contiguous bank.
11 - interrupts: Should contain all of the per-channel DMA interrupts in
12   ascending order with respect to the DMA channel index.
13 - clocks: Must contain one entry for the ADMA module clock
14   (TEGRA210_CLK_D_AUDIO).
15 - clock-names: Must contain the name "d_audio" for the corresponding
16   'clocks' entry.
17 - #dma-cells : Must be 1. The first cell denotes the receive/transmit
18   request number and should be between 1 and the maximum number of
19   requests supported. This value corresponds to the RX/TX_REQUEST_SELECT
20   fields in the ADMA_CHn_CTRL register.
21
22
23 Example:
24
25 adma: dma@702e2000 {
26         compatible = "nvidia,tegra210-adma";
27         reg = <0x0 0x702e2000 0x0 0x2000>;
28         interrupt-parent = <&tegra_agic>;
29         interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
30                      <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
31                      <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>,
32                      <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>,
33                      <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>,
34                      <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
35                      <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>,
36                      <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
37                      <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>,
38                      <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>,
39                      <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
40                      <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>,
41                      <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
42                      <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
43                      <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
44                      <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
45                      <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
46                      <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>,
47                      <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>,
48                      <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>,
49                      <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>,
50                      <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
51         clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>;
52         clock-names = "d_audio";
53         #dma-cells = <1>;
54 };