Skip to content

Commit 22228b9

Browse files
Fabrizio Castrovinodkoul
authored andcommitted
dt-bindings: dma: rz-dmac: Document RZ/V2H(P) family of SoCs
Document the Renesas RZ/V2H(P) family of SoCs DMAC block. The Renesas RZ/V2H(P) DMAC is very similar to the one found on the Renesas RZ/G2L family of SoCs, but there are some differences: * It only uses one register area * It only uses one clock * It only uses one reset * Instead of using MID/IRD it uses REQ No * It is connected to the Interrupt Control Unit (ICU) Signed-off-by: Fabrizio Castro <[email protected]> Acked-by: Conor Dooley <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent ec52f10 commit 22228b9

File tree

1 file changed

+82
-19
lines changed

1 file changed

+82
-19
lines changed

Documentation/devicetree/bindings/dma/renesas,rz-dmac.yaml

Lines changed: 82 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,23 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
items:
15-
- enum:
16-
- renesas,r7s72100-dmac # RZ/A1H
17-
- renesas,r9a07g043-dmac # RZ/G2UL and RZ/Five
18-
- renesas,r9a07g044-dmac # RZ/G2{L,LC}
19-
- renesas,r9a07g054-dmac # RZ/V2L
20-
- renesas,r9a08g045-dmac # RZ/G3S
21-
- const: renesas,rz-dmac
14+
oneOf:
15+
- items:
16+
- enum:
17+
- renesas,r7s72100-dmac # RZ/A1H
18+
- renesas,r9a07g043-dmac # RZ/G2UL and RZ/Five
19+
- renesas,r9a07g044-dmac # RZ/G2{L,LC}
20+
- renesas,r9a07g054-dmac # RZ/V2L
21+
- renesas,r9a08g045-dmac # RZ/G3S
22+
- const: renesas,rz-dmac
23+
24+
- const: renesas,r9a09g057-dmac # RZ/V2H(P)
2225

2326
reg:
2427
items:
2528
- description: Control and channel register block
2629
- description: DMA extended resource selector block
30+
minItems: 1
2731

2832
interrupts:
2933
maxItems: 17
@@ -52,6 +56,7 @@ properties:
5256
items:
5357
- description: DMA main clock
5458
- description: DMA register access clock
59+
minItems: 1
5560

5661
clock-names:
5762
items:
@@ -61,10 +66,10 @@ properties:
6166
'#dma-cells':
6267
const: 1
6368
description:
64-
The cell specifies the encoded MID/RID values of the DMAC port
65-
connected to the DMA client and the slave channel configuration
66-
parameters.
67-
bits[0:9] - Specifies MID/RID value
69+
The cell specifies the encoded MID/RID or the REQ No values of
70+
the DMAC port connected to the DMA client and the slave channel
71+
configuration parameters.
72+
bits[0:9] - Specifies the MID/RID or the REQ No value
6873
bit[10] - Specifies DMA request high enable (HIEN)
6974
bit[11] - Specifies DMA request detection type (LVL)
7075
bits[12:14] - Specifies DMAACK output mode (AM)
@@ -80,12 +85,26 @@ properties:
8085
items:
8186
- description: Reset for DMA ARESETN reset terminal
8287
- description: Reset for DMA RST_ASYNC reset terminal
88+
minItems: 1
8389

8490
reset-names:
8591
items:
8692
- const: arst
8793
- const: rst_async
8894

95+
renesas,icu:
96+
description:
97+
It must contain the phandle to the ICU and the index of the DMAC as seen
98+
from the ICU.
99+
$ref: /schemas/types.yaml#/definitions/phandle-array
100+
items:
101+
- items:
102+
- description: Phandle to the ICU node.
103+
- description:
104+
The number of the DMAC as seen from the ICU, i.e. parameter k from
105+
register ICU_DMkSELy. This may differ from the actual DMAC instance
106+
number.
107+
89108
required:
90109
- compatible
91110
- reg
@@ -98,27 +117,71 @@ allOf:
98117
- $ref: dma-controller.yaml#
99118

100119
- if:
101-
not:
102-
properties:
103-
compatible:
104-
contains:
105-
enum:
106-
- renesas,r7s72100-dmac
120+
properties:
121+
compatible:
122+
contains:
123+
enum:
124+
- renesas,r9a07g043-dmac
125+
- renesas,r9a07g044-dmac
126+
- renesas,r9a07g054-dmac
127+
- renesas,r9a08g045-dmac
107128
then:
129+
properties:
130+
reg:
131+
minItems: 2
132+
clocks:
133+
minItems: 2
134+
resets:
135+
minItems: 2
136+
137+
renesas,icu: false
138+
108139
required:
109140
- clocks
110141
- clock-names
111142
- power-domains
112143
- resets
113144
- reset-names
114145

115-
else:
146+
- if:
147+
properties:
148+
compatible:
149+
contains:
150+
const: renesas,r7s72100-dmac
151+
then:
116152
properties:
153+
reg:
154+
minItems: 2
155+
117156
clocks: false
118157
clock-names: false
119158
power-domains: false
120159
resets: false
121160
reset-names: false
161+
renesas,icu: false
162+
163+
- if:
164+
properties:
165+
compatible:
166+
contains:
167+
const: renesas,r9a09g057-dmac
168+
then:
169+
properties:
170+
reg:
171+
maxItems: 1
172+
clocks:
173+
maxItems: 1
174+
resets:
175+
maxItems: 1
176+
177+
clock-names: false
178+
reset-names: false
179+
180+
required:
181+
- clocks
182+
- power-domains
183+
- renesas,icu
184+
- resets
122185

123186
additionalProperties: false
124187

0 commit comments

Comments
 (0)