From: Murali Karicheri <m-karicheri2-l0cyMroinI0@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org,
Ian Campbell
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
santosh.shilimkar-l0cyMroinI0@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v2] spi: davinci: add support for adding delay between word's transmission
Date: Tue, 9 Sep 2014 13:09:27 -0400 [thread overview]
Message-ID: <540F3447.3020609@ti.com> (raw)
In-Reply-To: <20140909165555.GD2601-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
On 09/09/2014 12:55 PM, Mark Brown wrote:
> On Tue, Sep 09, 2014 at 07:07:31PM +0300, Grygorii Strashko wrote:
>
>> - ti,spi-c2t-delay: Chip-select-active-to-transmit-start delay
>> (SPIDELAY.C2TDELAY)
>
>> - ti,spi-t2c-delay: Transmit-end-to-chip-select-inactive delay
>> (SPIDELAY.T2CDELAY)
>
> Now I look at these they look very much like the standard delay feature
> that the SPI subsystem has already - are they?
Mark,
As Grygorii explained in previous postings (reproduced below), these
delays are handled by the SPI hardware on Keystone and affect the delay
between successive word tranmssion and has nothing to do with the delay
you are talking about. Isn't the standard delay you mention here is
between successive packets send down to the lower level driver (in this
case spi-davinci.c) ?
Murali
Below is timing diagram which shows, in general, how these new
parameters affect on words transmission over Keystone/Davinci SPI bus:
+-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+
SPI_CLK | | | | | | | | | | | | | | | |
+----------+ +-+ +-+ +-+ +-+ +---------------------------+ +-+ +-+ +-
SPI_SOMI/SIMO+-----------------+ +-----------
+----------+ word1 +---------------------------+word2
+-----------------+ +-----------
WDELAY
<--------->
+ +
SPI_CS | |
+----+ +-----------+
| | |
+-----+-----------------+--------+ +-----+------------
| | | | | |
+ + + | + +
<---> <------> <--->
C2TDELAY T2CDELAY C2TDELAY
Where:
WDELAY - Delay in between transmissions
C2TDELAY - Chip-select-active-to-transmit-start-delay
T2CDELAY - Transmit-end-to-chip-select-inactive-delay
next prev parent reply other threads:[~2014-09-09 17:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-09 16:07 [PATCH v2] spi: davinci: add support for adding delay between word's transmission Grygorii Strashko
[not found] ` <1410278851-10783-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2014-09-09 16:55 ` Mark Brown
[not found] ` <20140909165555.GD2601-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-09-09 17:09 ` Murali Karicheri [this message]
[not found] ` <540F3447.3020609-l0cyMroinI0@public.gmane.org>
2014-09-09 17:20 ` Mark Brown
[not found] ` <20140909172057.GH2601-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-09-09 18:20 ` Murali Karicheri
[not found] ` <540F44EB.8090700-l0cyMroinI0@public.gmane.org>
2014-09-09 19:58 ` Mark Brown
2014-09-10 17:02 ` Grygorii Strashko
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=540F3447.3020609@ti.com \
--to=m-karicheri2-l0cymroini0@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=santosh.shilimkar-l0cyMroinI0@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).