forked from torvalds/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.
Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave…
…-dma Pull dmaengine updates from Vinod Koul: "Main features this time are: - BAM v1.3.0 support form qcom bam dma - support for Allwinner sun8i dma - atmels eXtended DMA Controller driver - chancnt cleanup by Maxime - fixes spread over drivers" * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (56 commits) dmaenegine: Delete a check before free_percpu() dmaengine: ioatdma: fix dma mapping errors dma: cppi41: add a delay while setting the TD bit dma: cppi41: wait longer for the HW to return the descriptor dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model dmaengine: fsl-edma: fix calculation of remaining bytes drivers/dma/pch_dma: declare pch_dma_id_table as static dmaengine: ste_dma40: fix error return code dma: imx-sdma: clarify about firmware not found error Documentation: devicetree: Fix Xilinx VDMA specification dmaengine: pl330: update author info dmaengine: clarify the issue_pending expectations dmaengine: at_xdmac: Add DMA_PRIVATE ARM: dts: at_xdmac: fix bad value of dma-cells in documentation dmaengine: at_xdmac: fix missing spin_unlock dmaengine: at_xdmac: fix a bug in transfer residue computation dmaengine: at_xdmac: fix software lockup at_xdmac_tx_status() dmaengine: at_xdmac: remove chancnt affectation dmaengine: at_xdmac: prefer usage of readl/writel_relaxed dmaengine: xdmac: fix print warning on dma_addr_t variable ...
- Loading branch information
Showing
47 changed files
with
2,415 additions
and
270 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,54 @@ | ||
* Atmel Extensible Direct Memory Access Controller (XDMAC) | ||
|
||
* XDMA Controller | ||
Required properties: | ||
- compatible: Should be "atmel,<chip>-dma". | ||
<chip> compatible description: | ||
- sama5d4: first SoC adding the XDMAC | ||
- reg: Should contain DMA registers location and length. | ||
- interrupts: Should contain DMA interrupt. | ||
- #dma-cells: Must be <1>, used to represent the number of integer cells in | ||
the dmas property of client devices. | ||
- The 1st cell specifies the channel configuration register: | ||
- bit 13: SIF, source interface identifier, used to get the memory | ||
interface identifier, | ||
- bit 14: DIF, destination interface identifier, used to get the peripheral | ||
interface identifier, | ||
- bit 30-24: PERID, peripheral identifier. | ||
|
||
Example: | ||
|
||
dma1: dma-controller@f0004000 { | ||
compatible = "atmel,sama5d4-dma"; | ||
reg = <0xf0004000 0x200>; | ||
interrupts = <50 4 0>; | ||
#dma-cells = <1>; | ||
}; | ||
|
||
|
||
* DMA clients | ||
DMA clients connected to the Atmel XDMA controller must use the format | ||
described in the dma.txt file, using a one-cell specifier for each channel. | ||
The two cells in order are: | ||
1. A phandle pointing to the DMA controller. | ||
2. Channel configuration register. Configurable fields are: | ||
- bit 13: SIF, source interface identifier, used to get the memory | ||
interface identifier, | ||
- bit 14: DIF, destination interface identifier, used to get the peripheral | ||
interface identifier, | ||
- bit 30-24: PERID, peripheral identifier. | ||
|
||
Example: | ||
|
||
i2c2: i2c@f8024000 { | ||
compatible = "atmel,at91sam9x5-i2c"; | ||
reg = <0xf8024000 0x4000>; | ||
interrupts = <34 4 6>; | ||
dmas = <&dma1 | ||
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | ||
| AT91_XDMAC_DT_PERID(6))>, | ||
<&dma1 | ||
(AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | ||
| AT91_XDMAC_DT_PERID(7))>; | ||
dma-names = "tx", "rx"; | ||
}; |
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
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.