From: Grygorii Strashko <grygorii.strashko-l0cyMroinI0@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: santosh.shilimkar-l0cyMroinI0@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
m-karicheri2-l0cyMroinI0@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org
Subject: Re: [PATCH 2/2] spi: davinci: support adding delay between transmission
Date: Fri, 22 Aug 2014 16:33:09 +0300 [thread overview]
Message-ID: <53F74695.3010902@ti.com> (raw)
In-Reply-To: <20140821182035.GM24407-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
Hi Mark,
On 08/21/2014 09:20 PM, Mark Brown wrote:
> On Thu, Aug 21, 2014 at 06:25:06PM +0300, Grygorii Strashko wrote:
>
>> +- ti,davinci-spi-wdelay : delay between transmissions.
>
> I don't understand why this is here - there is already standard support
> in the SPI core for client drivers specifying inter-transfer delays. If
> there is a need to provide platform configuration for this in addition
> to that then it should also be a standard property, there is nothing
> device specific about these.
Sorry, may be I've missed smth, because I was not able to find such common
property in SPI bindings document and code. Could you point me on, pls?
In our case it's hardware delay applied between transmissions:
"Delay in between transmissions. Idle time that will be applied at
the end of the current transmission if the bit WDEL is
set in the current buffer. The delay to be applied is equal to:
WDELAY × PSPI module clock + 2 × PSPI module clock
PSPI module clock -> Period of SPI module clock"
>
>> +- ti,davinci-spi-odd-parity : odd partity enabled
>> + OR
>> + ti,davinci-spi-even-parity : even parity enabled
>
> What do these mean?
Supported by OMAP-L138/da830:
"
SPIFMTn[23].PARPOL - Parity polarity: even or odd. PARPOL can be modified in privilege mode only.
0 An even parity flag is added at the end of the transmit data stream.
1 An odd parity flag is added at the end of the transmit data stream.
SPIFMTn[22].PARENA - Parity enable.
0 - No parity generation/ verification is performed.
1 - A parity is transmitted at the end of each transmit data stream. At the end of a transfer the parity
generator compares the received parity bit with the locally calculated parity flag. If the parity bits do
not match the PARERR flag is set in the corresponding control field. The parity type (even or odd)
can be selected via the PARPOL bit.
"
>
>> +- ti,davinci-spi-io-type: io type (check platform_data/spi-davinci.h)
>
> The bindings should be independent of the kernel, the values need to be
> included here (and the defines moved to include/dt-bindings so they can
> be used when writing DTs).
Allowed values here are:
#define SPI_IO_TYPE_INTR 0
#define SPI_IO_TYPE_POLL 1
#define SPI_IO_TYPE_DMA 2
I'll update.
>
>> +- ti,davinci-spi-disable-timer: disable CS timer (SPIFMTn)
>> +- ti,davinci-spi-c2t-delay: c2t delay
>> +- ti,davinci-spi-t2c-delay: t2c delay
>> +- ti,davinci-spi-t2e-delay: t2e delay
>> +- ti,davinci-spi-c2e-delay: c2e delay
>
> What are all these timers/delays - at least some reference to the
> datasheet please?
>
Sorry, I'll update bindings with links on datasheet.
Keystone 2:
http://www.ti.com/lit/ug/sprugp2a/sprugp2a.pdf
Davinci:
dm644x - http://www.ti.com/lit/ug/sprue32a/sprue32a.pdf
OMAP-L138/da830 - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf
Regards,
-grygorii
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-08-22 13:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-21 15:25 [PATCH 0/2] spi: davinci: fixes and updates Grygorii Strashko
[not found] ` <1408634706-5762-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2014-08-21 15:25 ` [PATCH 1/2] spi: davinci: fix SPI_NO_CS functionality Grygorii Strashko
[not found] ` <1408634706-5762-2-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2014-08-21 18:10 ` Mark Brown
2014-08-21 15:25 ` [PATCH 2/2] spi: davinci: support adding delay between transmission Grygorii Strashko
[not found] ` <1408634706-5762-3-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2014-08-21 18:20 ` Mark Brown
[not found] ` <20140821182035.GM24407-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-08-22 13:33 ` Grygorii Strashko [this message]
[not found] ` <53F74695.3010902-l0cyMroinI0@public.gmane.org>
2014-08-22 15:06 ` Mark Brown
[not found] ` <20140822150644.GX24407-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-09-05 14:21 ` Grygorii Strashko
[not found] ` <5409C704.5070303-l0cyMroinI0@public.gmane.org>
2014-09-06 14:31 ` Mark Brown
[not found] ` <20140906143113.GI2601-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-09-08 13:30 ` Grygorii Strashko
[not found] ` <540DAF91.6090002-l0cyMroinI0@public.gmane.org>
2014-09-08 14:39 ` Mark Brown
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=53F74695.3010902@ti.com \
--to=grygorii.strashko-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=m-karicheri2-l0cyMroinI0@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).