devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
To: Ludovic Desroches
	<ludovic.desroches-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org
Subject: Re: [PATCH] ARM: at91: sama5d3: add usart dma configurations
Date: Tue, 12 Aug 2014 19:08:53 +0200	[thread overview]
Message-ID: <53EA4A25.1040707@atmel.com> (raw)
In-Reply-To: <1407854277-328-1-git-send-email-ludovic.desroches-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>

On 12/08/2014 16:37, Ludovic Desroches :
> Add the DMA configuration for USARTs mainly because it is not obvious to
> add the FIFO flag which is needed for rx.

Indeed.

> Signed-off-by: Ludovic Desroches <ludovic.desroches-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>

Acked-by: Nicolas Ferre <nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>

Thanks, best regards,

> ---
>  arch/arm/boot/dts/sama5d3.dtsi |   15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi
> index e0b15a6..829c162 100644
> --- a/arch/arm/boot/dts/sama5d3.dtsi
> +++ b/arch/arm/boot/dts/sama5d3.dtsi
> @@ -177,6 +177,9 @@
>  				compatible = "atmel,at91sam9260-usart";
>  				reg = <0xf001c000 0x100>;
>  				interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>;
> +				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(3)>,
> +				       <&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
> +				dma-names = "tx", "rx";
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&pinctrl_usart0>;
>  				clocks = <&usart0_clk>;
> @@ -188,6 +191,9 @@
>  				compatible = "atmel,at91sam9260-usart";
>  				reg = <0xf0020000 0x100>;
>  				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>;
> +				dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(5)>,
> +				       <&dma0 2 (AT91_DMA_CFG_PER_ID(6) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
> +				dma-names = "tx", "rx";
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&pinctrl_usart1>;
>  				clocks = <&usart1_clk>;
> @@ -333,6 +339,9 @@
>  				compatible = "atmel,at91sam9260-usart";
>  				reg = <0xf8020000 0x100>;
>  				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
> +				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(7)>,
> +				       <&dma1 2 (AT91_DMA_CFG_PER_ID(8) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
> +				dma-names = "tx", "rx";
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&pinctrl_usart2>;
>  				clocks = <&usart2_clk>;
> @@ -344,6 +353,9 @@
>  				compatible = "atmel,at91sam9260-usart";
>  				reg = <0xf8024000 0x100>;
>  				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
> +				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(9)>,
> +				       <&dma1 2 (AT91_DMA_CFG_PER_ID(10) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
> +				dma-names = "tx", "rx";
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&pinctrl_usart3>;
>  				clocks = <&usart3_clk>;
> @@ -410,6 +422,9 @@
>  				compatible = "atmel,at91sam9260-usart";
>  				reg = <0xffffee00 0x200>;
>  				interrupts = <2 IRQ_TYPE_LEVEL_HIGH 7>;
> +				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(13)>,
> +				       <&dma1 2 (AT91_DMA_CFG_PER_ID(14) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
> +				dma-names = "tx", "rx";
>  				pinctrl-names = "default";
>  				pinctrl-0 = <&pinctrl_dbgu>;
>  				clocks = <&dbgu_clk>;
> 


-- 
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2014-08-12 17:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-12 14:37 [PATCH] ARM: at91: sama5d3: add usart dma configurations Ludovic Desroches
     [not found] ` <1407854277-328-1-git-send-email-ludovic.desroches-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>
2014-08-12 17:08   ` Nicolas Ferre [this message]

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=53EA4A25.1040707@atmel.com \
    --to=nicolas.ferre-aife0yeh4naavxtiumwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=ludovic.desroches-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org \
    --cc=plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.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).