From: Oleksij Rempel <linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: propper support of 5 wire SPI (SPI_READY signal)
Date: Sat, 20 Feb 2016 22:40:52 +0100 [thread overview]
Message-ID: <56C8DD64.1070700@rempel-privat.de> (raw)
In-Reply-To: <20160220195641.GE18327-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]
Am 20.02.2016 um 20:56 schrieb Mark Brown:
> On Fri, Feb 19, 2016 at 10:08:46AM +0100, Oleksij Rempel wrote:
>
>> i'm working on a project which depends on 5 Wire SPI communication. It
>> is probably identical to spi-davinci.c with SPI_READY signal. Only
>> difference is that SPI_READY is not supported by hardware, in this case
>> GPIO input is used.
>
>> Currently this project implements SPI_READY and CS on top of spidev
>> driver. What makes it really ugly, slow and complicated.
>
>> My question is, are there any better, upstreamable way to implement it?
>> For example directly insight of spi framework? Any suggestions and
>> comments are welcome.
>
> Unless the hardware support SPI_READY a GPIO is going to be as good as
> it gets I think, someone else might have better ideas but nothing
> springs to mind for me. I'd be OK with a GPIO based implementation in
> the core for systems that don't have hardware support for it but I don't
> see anything that'd be fundamentally better in terms of system
> performance right now.
>
Ok, i'm working on it.
I would need some naming suggestions (we call our protokol SSI). It
looks like the protocol used by us has some differences with Davinci.
The Dav. using SPI_READY line only
to allow or pause transmission (fix me if i'm wrong)
We call it Request line and use it to: Ready to Receive; Receive
Finished; and Request data shift by slave.
In this case probably spi framework need to be extended with kind of
request call back. If data is currently not transmitted and Req line is
not used for flow control, then call driver specific function to
initiate data shift.
--
Regards,
Oleksij
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]
next prev parent reply other threads:[~2016-02-20 21:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-19 9:08 propper support of 5 wire SPI (SPI_READY signal) Oleksij Rempel
[not found] ` <56C6DB9E.5080905-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
2016-02-20 19:56 ` Mark Brown
[not found] ` <20160220195641.GE18327-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-02-20 21:40 ` Oleksij Rempel [this message]
[not found] ` <56C8DD64.1070700-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
2016-02-22 11:09 ` Mark Brown
[not found] ` <20160222110948.GE18327-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-02-22 11:42 ` Oleksij Rempel
[not found] ` <56CAF443.8010705-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>
2016-03-12 7:21 ` Mark Brown
[not found] ` <20160312072132.GA3898-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-03-13 14:18 ` Oleksij Rempel
2016-02-22 9:21 ` Geert Uytterhoeven
[not found] ` <CAMuHMdW0P-uNBA94jvvVQqXH2c4DY45U4GnYufkPDQAqZm7u9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 11:30 ` Oleksij Rempel
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=56C8DD64.1070700@rempel-privat.de \
--to=linux-yek0n+yfykbzxqdaratxbw@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.