Skip to content

Commit 2ccf482

Browse files
Fabio Estevamvinodkoul
authored andcommitted
dt-bindings: dma: fsl,imx-dma: Document the DMA clocks
Document the IPG and AHB clocks that are needed by the DMA hardware as required properties. It is not possible to have DMA functional without the DMA clocks being turned on. Signed-off-by: Fabio Estevam <[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 e06c432 commit 2ccf482

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ properties:
2828
- description: DMA Error interrupt
2929
minItems: 1
3030

31+
clocks:
32+
maxItems: 2
33+
34+
clock-names:
35+
items:
36+
- const: ipg
37+
- const: ahb
38+
3139
"#dma-cells":
3240
const: 1
3341

@@ -42,15 +50,21 @@ required:
4250
- reg
4351
- interrupts
4452
- "#dma-cells"
53+
- clocks
54+
- clock-names
4555

4656
additionalProperties: false
4757

4858
examples:
4959
- |
60+
#include <dt-bindings/clock/imx27-clock.h>
61+
5062
dma-controller@10001000 {
5163
compatible = "fsl,imx27-dma";
5264
reg = <0x10001000 0x1000>;
5365
interrupts = <32 33>;
5466
#dma-cells = <1>;
5567
dma-channels = <16>;
68+
clocks = <&clks IMX27_CLK_DMA_IPG_GATE>, <&clks IMX27_CLK_DMA_AHB_GATE>;
69+
clock-names = "ipg", "ahb";
5670
};

0 commit comments

Comments
 (0)