linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: peda@lysator.liu.se (Peter Rosin)
To: linux-arm-kernel@lists.infradead.org
Subject: SAMA5D3x: I2C, USART1 and DMA.
Date: Wed, 25 Nov 2015 12:55:33 +0100	[thread overview]
Message-ID: <5655A1B5.6060307@lysator.liu.se> (raw)
In-Reply-To: <20151124165334.GA29813@finsecur.com>

Hi Sylvain,

On 2015-11-24 17:53, Sylvain Rochet wrote:
> On Tue, Nov 24, 2015 at 05:44:24PM +0100, Sylvain Rochet wrote:
>> On Tue, Nov 24, 2015 at 05:14:15PM +0100, Peter Rosin wrote:
>>> However, cutting out the "dmas" line does not improve things. So, how
>>> do I enable DMA on usart1?
>>
>> You are probably running out of available DMA channels on the DMAC0. 
>> There is 8 channels available per DMAC and this is quite a scarce 
>> resource.
>>
>> See "DMA Channels Definition" tables from the SAMA5D3 datasheet. I hope 
>> you balanced well the peripherals you are using in your design on the 
>> two DMAC to prevent running out of DMA channels.
> 
> I forgot to add that you need to explicitely enable DMA on usart as 
> explained in the Documentation/devicetree/bindings/serial/atmel-usart.txt
> documentation, this way: 
> 
> usart0: serial at f001c000 {
>         ...
>         atmel,use-dma-rx;
>         atmel,use-dma-tx;
>         ...
> }

Got it working, not dropped data yet... Thanks for the pointers!

Cheers,
Peter

      reply	other threads:[~2015-11-25 11:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 16:14 SAMA5D3x: I2C, USART1 and DMA Peter Rosin
2015-11-24 16:44 ` Sylvain Rochet
2015-11-24 16:53   ` Sylvain Rochet
2015-11-25 11:55     ` Peter Rosin [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=5655A1B5.6060307@lysator.liu.se \
    --to=peda@lysator.liu.se \
    --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).