linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] at91: sam9x5 dt: add usart dma definitions to dt
Date: Tue, 21 Oct 2014 18:38:51 +0200	[thread overview]
Message-ID: <54468C1B.9070500@atmel.com> (raw)
In-Reply-To: <20141014122423.GA2797@ldesroches-Latitude-E6320>

On 14/10/2014 14:24, Ludovic Desroches :
> On Mon, Oct 13, 2014 at 11:02:16AM +0200, Jiri Prchal wrote:
>> This patch adds usart dma definitions to both dtsi for sam9x5 chips. Without
>> usage of dma it's unable to catch all bytes on usart receiver.
>>
>> Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>


Stacked on top of at91-3.19-dt. Thanks!

>> v2: Add only definitions, enable them in board file.
>> ---
>>  arch/arm/boot/dts/at91sam9x5.dtsi        | 12 ++++++++++++
>>  arch/arm/boot/dts/at91sam9x5_usart3.dtsi |  3 +++
>>  2 files changed, 15 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi
>> index 726274f..bbb3ba6 100644
>> --- a/arch/arm/boot/dts/at91sam9x5.dtsi
>> +++ b/arch/arm/boot/dts/at91sam9x5.dtsi
>> @@ -860,6 +860,9 @@
>>  				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
>>  				pinctrl-names = "default";
>>  				pinctrl-0 = <&pinctrl_dbgu>;
>> +				dmas = <&dma1 1 AT91_DMA_CFG_PER_ID(8)>,
>> +				       <&dma1 1 (AT91_DMA_CFG_PER_ID(9) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
>> +				dma-names = "tx", "rx";
>>  				clocks = <&mck>;
>>  				clock-names = "usart";
>>  				status = "disabled";
>> @@ -871,6 +874,9 @@
>>  				interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>;
>>  				pinctrl-names = "default";
>>  				pinctrl-0 = <&pinctrl_usart0>;
>> +				dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(3)>,
>> +				       <&dma0 1 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
>> +				dma-names = "tx", "rx";
>>  				clocks = <&usart0_clk>;
>>  				clock-names = "usart";
>>  				status = "disabled";
>> @@ -882,6 +888,9 @@
>>  				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
>>  				pinctrl-names = "default";
>>  				pinctrl-0 = <&pinctrl_usart1>;
>> +				dmas = <&dma0 1 AT91_DMA_CFG_PER_ID(5)>,
>> +				       <&dma0 1 (AT91_DMA_CFG_PER_ID(6) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
>> +				dma-names = "tx", "rx";
>>  				clocks = <&usart1_clk>;
>>  				clock-names = "usart";
>>  				status = "disabled";
>> @@ -893,6 +902,9 @@
>>  				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
>>  				pinctrl-names = "default";
>>  				pinctrl-0 = <&pinctrl_usart2>;
>> +				dmas = <&dma1 1 AT91_DMA_CFG_PER_ID(12)>,
>> +				       <&dma1 1 (AT91_DMA_CFG_PER_ID(13) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
>> +				dma-names = "tx", "rx";
>>  				clocks = <&usart2_clk>;
>>  				clock-names = "usart";
>>  				status = "disabled";
>> diff --git a/arch/arm/boot/dts/at91sam9x5_usart3.dtsi b/arch/arm/boot/dts/at91sam9x5_usart3.dtsi
>> index 140217a5..43bb5b5 100644
>> --- a/arch/arm/boot/dts/at91sam9x5_usart3.dtsi
>> +++ b/arch/arm/boot/dts/at91sam9x5_usart3.dtsi
>> @@ -57,6 +57,9 @@
>>  				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
>>  				pinctrl-names = "default";
>>  				pinctrl-0 = <&pinctrl_usart3>;
>> +				dmas = <&dma1 1 AT91_DMA_CFG_PER_ID(14)>,
>> +				       <&dma1 1 (AT91_DMA_CFG_PER_ID(15) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
>> +				dma-names = "tx", "rx";
>>  				clocks = <&usart3_clk>;
>>  				clock-names = "usart";
>>  				status = "disabled";
>> -- 
>> 1.9.1
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel at lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 


-- 
Nicolas Ferre

  reply	other threads:[~2014-10-21 16:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-13  9:02 [PATCH] at91: sam9x5 dt: add usart dma definitions to dt Jiri Prchal
2014-10-14 12:24 ` Ludovic Desroches
2014-10-21 16:38   ` Nicolas Ferre [this message]
     [not found]     ` <54477097.1050909@aksignal.cz>
2014-12-17 20:16       ` at91: dt: dma usage Alexandre Belloni
2014-12-17 21:49         ` Arnd Bergmann
2015-01-09 15:42           ` Ludovic Desroches
  -- strict thread matches above, loose matches on Subject: below --
2014-10-10  6:35 [PATCH] at91: sam9x5 dt: add usart dma definitions to dt Jiri Prchal
2014-10-10  8:12 ` Ludovic Desroches
2014-10-10  8:39   ` Nicolas Ferre
2014-10-10  9:22     ` Jiří Prchal

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=54468C1B.9070500@atmel.com \
    --to=nicolas.ferre@atmel.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).