Skip to content

Commit b14f56b

Browse files
1991Joyzouvinodkoul
authored andcommitted
dt-bindings: dma: fsl-edma: add fsl,imx8ulp-edma compatible string
Introduce the compatible string 'fsl,imx8ulp-edma' to enable support for the i.MX8ULP's eDMA, alongside adjusting the clock numbering. The i.MX8ULP eDMA architecture features one clock for each DMA channel and an additional clock for the core controller. Given a maximum of 32 DMA channels, the maximum clock number consequently increases to 33. Signed-off-by: Joy Zou <joy.zou@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20240323-8ulp_edma-v3-4-c0e981027c05@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 9a5000c commit b14f56b

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

Documentation/devicetree/bindings/dma/fsl,edma.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ properties:
2323
- fsl,imx7ulp-edma
2424
- fsl,imx8qm-adma
2525
- fsl,imx8qm-edma
26+
- fsl,imx8ulp-edma
2627
- fsl,imx93-edma3
2728
- fsl,imx93-edma4
2829
- fsl,imx95-edma5
@@ -43,6 +44,17 @@ properties:
4344
maxItems: 64
4445

4546
"#dma-cells":
47+
description: |
48+
Specifies the number of cells needed to encode an DMA channel.
49+
50+
Encode for cells number 2:
51+
cell 0: index of dma channel mux instance.
52+
cell 1: peripheral dma request id.
53+
54+
Encode for cells number 3:
55+
cell 0: peripheral dma request id.
56+
cell 1: dma channel priority.
57+
cell 2: bitmask, defined at include/dt-bindings/dma/fsl-edma.h
4658
enum:
4759
- 2
4860
- 3
@@ -53,11 +65,11 @@ properties:
5365

5466
clocks:
5567
minItems: 1
56-
maxItems: 2
68+
maxItems: 33
5769

5870
clock-names:
5971
minItems: 1
60-
maxItems: 2
72+
maxItems: 33
6173

6274
big-endian:
6375
description: |
@@ -108,6 +120,7 @@ allOf:
108120
properties:
109121
clocks:
110122
minItems: 2
123+
maxItems: 2
111124
clock-names:
112125
items:
113126
- const: dmamux0
@@ -136,6 +149,7 @@ allOf:
136149
properties:
137150
clock:
138151
minItems: 2
152+
maxItems: 2
139153
clock-names:
140154
items:
141155
- const: dma
@@ -151,6 +165,28 @@ allOf:
151165
dma-channels:
152166
const: 32
153167

168+
- if:
169+
properties:
170+
compatible:
171+
contains:
172+
const: fsl,imx8ulp-edma
173+
then:
174+
properties:
175+
clocks:
176+
minItems: 33
177+
clock-names:
178+
minItems: 33
179+
items:
180+
oneOf:
181+
- const: dma
182+
- pattern: "^ch(0[0-9]|[1-2][0-9]|3[01])$"
183+
184+
interrupt-names: false
185+
interrupts:
186+
minItems: 32
187+
"#dma-cells":
188+
const: 3
189+
154190
unevaluatedProperties: false
155191

156192
examples:

0 commit comments

Comments
 (0)