diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-02-25 22:07:32 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-04-04 09:22:44 -0400 |
commit | 26aafa77df61c4190eae80646211ee6f07c88eaf (patch) | |
tree | 5ae896947ebde38999bd5271a8a13ad09a2b117d /Documentation/devicetree/bindings | |
parent | 0e91e434c86c84e84c46cf8bff2b5e53daee85d5 (diff) |
spi: mxs-spi: move to use generic DMA helper
With the generic DMA device tree helper supported by mxs-dma driver,
client devices only need to call dma_request_slave_channel() for
requesting a DMA channel from dmaengine.
Since mxs is a DT only platform now, along with the changes, the non-DT
case handling in probe function also gets removed.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/spi/mxs-spi.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/spi/mxs-spi.txt b/Documentation/devicetree/bindings/spi/mxs-spi.txt index e2e13957c2a4..3499b73293c2 100644 --- a/Documentation/devicetree/bindings/spi/mxs-spi.txt +++ b/Documentation/devicetree/bindings/spi/mxs-spi.txt | |||
@@ -3,8 +3,11 @@ | |||
3 | Required properties: | 3 | Required properties: |
4 | - compatible: Should be "fsl,<soc>-spi", where soc is "imx23" or "imx28" | 4 | - compatible: Should be "fsl,<soc>-spi", where soc is "imx23" or "imx28" |
5 | - reg: Offset and length of the register set for the device | 5 | - reg: Offset and length of the register set for the device |
6 | - interrupts: Should contain SSP interrupts (error irq first, dma irq second) | 6 | - interrupts: Should contain SSP ERROR interrupt |
7 | - fsl,ssp-dma-channel: APBX DMA channel for the SSP | 7 | - dmas: DMA specifier, consisting of a phandle to DMA controller node |
8 | and SSP DMA channel ID. | ||
9 | Refer to dma.txt and fsl-mxs-dma.txt for details. | ||
10 | - dma-names: Must be "rx-tx". | ||
8 | 11 | ||
9 | Optional properties: | 12 | Optional properties: |
10 | - clock-frequency : Input clock frequency to the SPI block in Hz. | 13 | - clock-frequency : Input clock frequency to the SPI block in Hz. |
@@ -17,6 +20,7 @@ ssp0: ssp@80010000 { | |||
17 | #size-cells = <0>; | 20 | #size-cells = <0>; |
18 | compatible = "fsl,imx28-spi"; | 21 | compatible = "fsl,imx28-spi"; |
19 | reg = <0x80010000 0x2000>; | 22 | reg = <0x80010000 0x2000>; |
20 | interrupts = <96 82>; | 23 | interrupts = <96>; |
21 | fsl,ssp-dma-channel = <0>; | 24 | dmas = <&dma_apbh 0>; |
25 | dma-names = "rx-tx"; | ||
22 | }; | 26 | }; |