Skip to content

Commit 762b37f

Browse files
mkumardvinodkoul
authored andcommitted
dt-bindings: dma: Support channel page to nvidia,tegra210-adma
Multiple ADMA Channel page hardware support has been added from TEGRA186 and onwards. Update the DT binding to use any of the ADMA channel page address space region. Signed-off-by: Mohan Kumar D <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent d0301fd commit 762b37f

File tree

1 file changed

+56
-4
lines changed

1 file changed

+56
-4
lines changed

Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ description: |
1313
maintainers:
1414
- Jon Hunter <[email protected]>
1515

16-
allOf:
17-
- $ref: dma-controller.yaml#
18-
1916
properties:
2017
compatible:
2118
oneOf:
@@ -29,7 +26,19 @@ properties:
2926
- const: nvidia,tegra186-adma
3027

3128
reg:
32-
maxItems: 1
29+
description:
30+
The 'page' region describes the address space of the page
31+
used for accessing the DMA channel registers. The 'global'
32+
region describes the address space of the global DMA registers.
33+
In the absence of the 'reg-names' property, there must be a
34+
single entry that covers the address space of the global DMA
35+
registers and the DMA channel registers.
36+
minItems: 1
37+
maxItems: 2
38+
39+
reg-names:
40+
minItems: 1
41+
maxItems: 2
3342

3443
interrupts:
3544
description: |
@@ -63,6 +72,49 @@ required:
6372
- clocks
6473
- clock-names
6574

75+
allOf:
76+
- $ref: dma-controller.yaml#
77+
- if:
78+
properties:
79+
compatible:
80+
contains:
81+
enum:
82+
- nvidia,tegra210-adma
83+
then:
84+
properties:
85+
reg:
86+
items:
87+
- description: Full address space range of DMA registers.
88+
89+
- if:
90+
properties:
91+
compatible:
92+
contains:
93+
enum:
94+
- nvidia,tegra186-adma
95+
then:
96+
anyOf:
97+
- properties:
98+
reg:
99+
items:
100+
- description: Full address space range of DMA registers.
101+
- properties:
102+
reg:
103+
items:
104+
- description: Channel Page address space range of DMA registers.
105+
reg-names:
106+
items:
107+
- const: page
108+
- properties:
109+
reg:
110+
items:
111+
- description: Channel Page address space range of DMA registers.
112+
- description: Global Page address space range of DMA registers.
113+
reg-names:
114+
items:
115+
- const: page
116+
- const: global
117+
66118
additionalProperties: false
67119

68120
examples:

0 commit comments

Comments
 (0)