Skip to content

Commit 57eeb0a

Browse files
Larisa Grigorevinodkoul
authored andcommitted
dt-bindings: dma: fsl-edma: add nxp,s32g2-edma compatible string
Introduce the compatible strings 'nxp,s32g2-edma' and 'nxp,s32g3-edma' to enable the support for the eDMAv3 present on S32G2/S32G3 platforms. The S32G2/S32G3 eDMA architecture features 32 DMA channels. Each of the two eDMA instances is integrated with two DMAMUX blocks. Another particularity of these SoCs is that the interrupts are shared between channels in the following way: - DMA Channels 0-15 share the 'tx-0-15' interrupt - DMA Channels 16-31 share the 'tx-16-31' interrupt - all channels share the 'err' interrupt Signed-off-by: Larisa Grigore <larisa.grigore@oss.nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20241219102415.1208328-4-larisa.grigore@oss.nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent e773294 commit 57eeb0a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ properties:
2626
- fsl,imx93-edma3
2727
- fsl,imx93-edma4
2828
- fsl,imx95-edma5
29+
- nxp,s32g2-edma
2930
- items:
3031
- const: fsl,ls1028a-edma
3132
- const: fsl,vf610-edma
33+
- items:
34+
- const: nxp,s32g3-edma
35+
- const: nxp,s32g2-edma
3236

3337
reg:
3438
minItems: 1
@@ -221,6 +225,36 @@ allOf:
221225
properties:
222226
power-domains: false
223227

228+
- if:
229+
properties:
230+
compatible:
231+
contains:
232+
const: nxp,s32g2-edma
233+
then:
234+
properties:
235+
clocks:
236+
minItems: 2
237+
maxItems: 2
238+
clock-names:
239+
items:
240+
- const: dmamux0
241+
- const: dmamux1
242+
interrupts:
243+
minItems: 3
244+
maxItems: 3
245+
interrupt-names:
246+
items:
247+
- const: tx-0-15
248+
- const: tx-16-31
249+
- const: err
250+
reg:
251+
minItems: 3
252+
maxItems: 3
253+
"#dma-cells":
254+
const: 2
255+
dma-channels:
256+
const: 32
257+
224258
unevaluatedProperties: false
225259

226260
examples:

0 commit comments

Comments
 (0)