forked from grate-driver/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding devicetree support for imx-dma driver. Use driver name for function 'imx_dma_is_general_purpose' because the devicename for devicetree initialized devices is different. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
- Loading branch information
Markus Pargmann
authored and
Vinod Koul
committed
Jul 5, 2013
1 parent
8552bb4
commit 290ad0f
Showing
3 changed files
with
125 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
* Freescale Direct Memory Access (DMA) Controller for i.MX | ||
|
||
This document will only describe differences to the generic DMA Controller and | ||
DMA request bindings as described in dma/dma.txt . | ||
|
||
* DMA controller | ||
|
||
Required properties: | ||
- compatible : Should be "fsl,<chip>-dma". chip can be imx1, imx21 or imx27 | ||
- reg : Should contain DMA registers location and length | ||
- interrupts : First item should be DMA interrupt, second one is optional and | ||
should contain DMA Error interrupt | ||
- #dma-cells : Has to be 1. imx-dma does not support anything else. | ||
|
||
Optional properties: | ||
- #dma-channels : Number of DMA channels supported. Should be 16. | ||
- #dma-requests : Number of DMA requests supported. | ||
|
||
Example: | ||
|
||
dma: dma@10001000 { | ||
compatible = "fsl,imx27-dma"; | ||
reg = <0x10001000 0x1000>; | ||
interrupts = <32 33>; | ||
#dma-cells = <1>; | ||
#dma-channels = <16>; | ||
}; | ||
|
||
|
||
* DMA client | ||
|
||
Clients have to specify the DMA requests with phandles in a list. | ||
|
||
Required properties: | ||
- dmas: List of one or more DMA request specifiers. One DMA request specifier | ||
consists of a phandle to the DMA controller followed by the integer | ||
specifiying the request line. | ||
- dma-names: List of string identifiers for the DMA requests. For the correct | ||
names, have a look at the specific client driver. | ||
|
||
Example: | ||
|
||
sdhci1: sdhci@10013000 { | ||
... | ||
dmas = <&dma 7>; | ||
dma-names = "rx-tx"; | ||
... | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters