linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 2/3] serial: fsl_lpuart: add DMA support
Date: Mon, 17 Feb 2014 10:37:06 +0000	[thread overview]
Message-ID: <20140217103706.GA18920@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1392614888-10261-3-git-send-email-yao.yuan@freescale.com>

On Mon, Feb 17, 2014 at 05:28:07AM +0000, Yuan Yao wrote:
> 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 <yao.yuan@freescale.com>
> 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.

  reply	other threads:[~2014-02-17 10:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-17  5:28 [PATCH v6 0/3] serial: fsl_lpuart: add DMA support Yuan Yao
2014-02-17  5:28 ` [PATCH v6 1/3] ARM: dts: vf610: lpuart: Add eDMA support Yuan Yao
2014-02-18  3:48   ` Shawn Guo
2014-02-17  5:28 ` [PATCH v6 2/3] serial: fsl_lpuart: add DMA support Yuan Yao
2014-02-17 10:37   ` Mark Rutland [this message]
2014-02-17  5:28 ` [PATCH v6 3/3] serial: fsl_lpuart: documented the clock requirement Yuan Yao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140217103706.GA18920@e106331-lin.cambridge.arm.com \
    --to=mark.rutland@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).