Thread (6 messages) 6 messages, 3 authors, 2014-02-18
STALE4512d REVIEWED: 7 (7M)
Revisions (7)
  1. v3 [diff vs current]
  2. v4 [diff vs current]
  3. v4 [diff vs current]
  4. v5 [diff vs current]
  5. v5 [diff vs current]
  6. v6 [diff vs current]
  7. v6 current

[PATCH v6 2/3] serial: fsl_lpuart: add DMA support

From: mark.rutland@arm.com (Mark Rutland)
Date: 2014-02-17 10:37:06
Also in: linux-serial

On Mon, Feb 17, 2014 at 05:28:07AM +0000, Yuan Yao wrote:
quoted hunk ↗ jump to hunk
Add dma support for lpuart. This function depend on DMA driver.
You can turn on it by write both the dmas and dma-name properties in dts node.

Signed-off-by: Yuan Yao <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
 .../devicetree/bindings/serial/fsl-lpuart.txt      |  19 +-
 drivers/tty/serial/fsl_lpuart.c                    | 430 ++++++++++++++++++++-
 2 files changed, 433 insertions(+), 16 deletions(-)
diff --git a/Documentation/devicetree/bindings/serial/fsl-lpuart.txt b/Documentation/devicetree/bindings/serial/fsl-lpuart.txt
index 6fd1dd1..6e1cbbf 100644
--- a/Documentation/devicetree/bindings/serial/fsl-lpuart.txt
+++ b/Documentation/devicetree/bindings/serial/fsl-lpuart.txt
@@ -5,10 +5,19 @@ Reqiuired properties:
 - reg : Address and length of the register set for the device
 - interrupts : Should contain uart interrupt

+Optional properties:
+- dmas: A list of two dma specifiers, one for each entry in dma-names.
+- dma-names: should contain "tx" and "rx".
+
+Note: Optional properties for DMA support. Write them both or both not.
+
 Example:

 uart0: serial at 40027000 {
-              compatible = "fsl,vf610-lpuart";
-              reg = <0x40027000 0x1000>;
-              interrupts = <0 61 0x00>;
-       };
+               compatible = "fsl,vf610-lpuart";
+               reg = <0x40027000 0x1000>;
+               interrupts = <0 61 0x00>;
+               dmas = <&edma0 0 2>,
+                       <&edma0 0 3>;
+               dma-names = "rx","tx";
+       };
For the binding:

Acked-by: Mark Rutland <mark.rutland@arm.com>

Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help