forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 5
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 slave-dmaengine updates from Vinod Koul: - new drivers for: - Ingenic JZ4780 controller - APM X-Gene controller - Freescale RaidEngine device - Renesas USB Controller - remove device_alloc_chan_resources dummy handlers - sh driver cleanups for peri peri and related emmc and asoc patches as well - fixes and enhancements spread over the drivers * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (59 commits) dmaengine: dw: don't prompt for DW_DMAC_CORE dmaengine: shdmac: avoid unused variable warnings dmaengine: fix platform_no_drv_owner.cocci warnings dmaengine: pch_dma: fix memory leak on failure path in pch_dma_probe() dmaengine: at_xdmac: unlock spin lock before return dmaengine: xgene: devm_ioremap() returns NULL on error dmaengine: xgene: buffer overflow in xgene_dma_init_channels() dmaengine: usb-dmac: Fix dereferencing freed memory 'desc' dmaengine: sa11x0: report slave capabilities to upper layers dmaengine: vdma: Fix compilation warnings dmaengine: fsl_raid: statify fsl_re_chan_probe dmaengine: Driver support for FSL RaidEngine device. dmaengine: xgene_dma_init_ring_mngr() can be static Documentation: dma: Add documentation for the APM X-Gene SoC DMA device DTS binding arm64: dts: Add APM X-Gene SoC DMA device and DMA clock DTS nodes dmaengine: Add support for APM X-Gene SoC DMA engine driver dmaengine: usb-dmac: Add Renesas USB DMA Controller (USB-DMAC) driver dmaengine: renesas,usb-dmac: Add device tree bindings documentation dmaengine: edma: fixed wrongly initialized data parameter to the edma callback dmaengine: ste_dma40: fix implicit conversion ...
- Loading branch information
Showing
81 changed files
with
5,770 additions
and
775 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,47 @@ | ||
Applied Micro X-Gene SoC DMA nodes | ||
|
||
DMA nodes are defined to describe on-chip DMA interfaces in | ||
APM X-Gene SoC. | ||
|
||
Required properties for DMA interfaces: | ||
- compatible: Should be "apm,xgene-dma". | ||
- device_type: set to "dma". | ||
- reg: Address and length of the register set for the device. | ||
It contains the information of registers in the following order: | ||
1st - DMA control and status register address space. | ||
2nd - Descriptor ring control and status register address space. | ||
3rd - Descriptor ring command register address space. | ||
4th - Soc efuse register address space. | ||
- interrupts: DMA has 5 interrupts sources. 1st interrupt is | ||
DMA error reporting interrupt. 2nd, 3rd, 4th and 5th interrupts | ||
are completion interrupts for each DMA channels. | ||
- clocks: Reference to the clock entry. | ||
|
||
Optional properties: | ||
- dma-coherent : Present if dma operations are coherent | ||
|
||
Example: | ||
dmaclk: dmaclk@1f27c000 { | ||
compatible = "apm,xgene-device-clock"; | ||
#clock-cells = <1>; | ||
clocks = <&socplldiv2 0>; | ||
reg = <0x0 0x1f27c000 0x0 0x1000>; | ||
reg-names = "csr-reg"; | ||
clock-output-names = "dmaclk"; | ||
}; | ||
|
||
dma: dma@1f270000 { | ||
compatible = "apm,xgene-storm-dma"; | ||
device_type = "dma"; | ||
reg = <0x0 0x1f270000 0x0 0x10000>, | ||
<0x0 0x1f200000 0x0 0x10000>, | ||
<0x0 0x1b008000 0x0 0x2000>, | ||
<0x0 0x1054a000 0x0 0x100>; | ||
interrupts = <0x0 0x82 0x4>, | ||
<0x0 0xb8 0x4>, | ||
<0x0 0xb9 0x4>, | ||
<0x0 0xba 0x4>, | ||
<0x0 0xbb 0x4>; | ||
dma-coherent; | ||
clocks = <&dmaclk 0>; | ||
}; |
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,56 @@ | ||
* Ingenic JZ4780 DMA Controller | ||
|
||
Required properties: | ||
|
||
- compatible: Should be "ingenic,jz4780-dma" | ||
- reg: Should contain the DMA controller registers location and length. | ||
- interrupts: Should contain the interrupt specifier of the DMA controller. | ||
- interrupt-parent: Should be the phandle of the interrupt controller that | ||
- clocks: Should contain a clock specifier for the JZ4780 PDMA clock. | ||
- #dma-cells: Must be <2>. Number of integer cells in the dmas property of | ||
DMA clients (see below). | ||
|
||
Optional properties: | ||
|
||
- ingenic,reserved-channels: Bitmask of channels to reserve for devices that | ||
need a specific channel. These channels will only be assigned when explicitly | ||
requested by a client. The primary use for this is channels 0 and 1, which | ||
can be configured to have special behaviour for NAND/BCH when using | ||
programmable firmware. | ||
|
||
Example: | ||
|
||
dma: dma@13420000 { | ||
compatible = "ingenic,jz4780-dma"; | ||
reg = <0x13420000 0x10000>; | ||
|
||
interrupt-parent = <&intc>; | ||
interrupts = <10>; | ||
|
||
clocks = <&cgu JZ4780_CLK_PDMA>; | ||
|
||
#dma-cells = <2>; | ||
|
||
ingenic,reserved-channels = <0x3>; | ||
}; | ||
|
||
DMA clients must use the format described in dma.txt, giving a phandle to the | ||
DMA controller plus the following 2 integer cells: | ||
|
||
1. Request type: The DMA request type for transfers to/from the device on | ||
the allocated channel, as defined in the SoC documentation. | ||
|
||
2. Channel: If set to 0xffffffff, any available channel will be allocated for | ||
the client. Otherwise, the exact channel specified will be used. The channel | ||
should be reserved on the DMA controller using the ingenic,reserved-channels | ||
property. | ||
|
||
Example: | ||
|
||
uart0: serial@10030000 { | ||
... | ||
dmas = <&dma 0x14 0xffffffff | ||
&dma 0x15 0xffffffff>; | ||
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 was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
Documentation/devicetree/bindings/dma/renesas,usb-dmac.txt
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,37 @@ | ||
* Renesas USB DMA Controller Device Tree bindings | ||
|
||
Required Properties: | ||
- compatible: must contain "renesas,usb-dmac" | ||
- reg: base address and length of the registers block for the DMAC | ||
- interrupts: interrupt specifiers for the DMAC, one for each entry in | ||
interrupt-names. | ||
- interrupt-names: one entry per channel, named "ch%u", where %u is the | ||
channel number ranging from zero to the number of channels minus one. | ||
- clocks: a list of phandle + clock-specifier pairs. | ||
- #dma-cells: must be <1>, the cell specifies the channel number of the DMAC | ||
port connected to the DMA client. | ||
- dma-channels: number of DMA channels | ||
|
||
Example: R8A7790 (R-Car H2) USB-DMACs | ||
|
||
usb_dmac0: dma-controller@e65a0000 { | ||
compatible = "renesas,usb-dmac"; | ||
reg = <0 0xe65a0000 0 0x100>; | ||
interrupts = <0 109 IRQ_TYPE_LEVEL_HIGH | ||
0 109 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-names = "ch0", "ch1"; | ||
clocks = <&mstp3_clks R8A7790_CLK_USBDMAC0>; | ||
#dma-cells = <1>; | ||
dma-channels = <2>; | ||
}; | ||
|
||
usb_dmac1: dma-controller@e65b0000 { | ||
compatible = "renesas,usb-dmac"; | ||
reg = <0 0xe65b0000 0 0x100>; | ||
interrupts = <0 110 IRQ_TYPE_LEVEL_HIGH | ||
0 110 IRQ_TYPE_LEVEL_HIGH>; | ||
interrupt-names = "ch0", "ch1"; | ||
clocks = <&mstp3_clks R8A7790_CLK_USBDMAC1>; | ||
#dma-cells = <1>; | ||
dma-channels = <2>; | ||
}; |
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
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
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
Oops, something went wrong.