From: Vinicius Maciel <viniciusfre-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Cc: viniciusfre-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org,
wens-jdAy2FN1RRM@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH v2] ARM: spi/sun7i: Add Master Sample Data Mode for SPI
Date: Thu, 2 Mar 2017 14:00:03 -0800 (PST) [thread overview]
Message-ID: <dcd87d04-7b53-4d23-8918-359f2b327a53@googlegroups.com> (raw)
In-Reply-To: <20170302224410.31dea7a9@i7>
[-- Attachment #1.1: Type: text/plain, Size: 1603 bytes --]
Em quinta-feira, 2 de março de 2017 17:44:16 UTC-3, Siarhei Siamashka
escreveu:
> Here is a short summary. Older Allwinner A10/A13 SoCs used to have
> reserved RAZ/WI (Read-As-Zero, Writes Ignored) bits 20-31 in the
> SPI_CTL register. Newer Allwinner A20 SoC introduced some sort of
> a wacky half-cycle delay mode and used the previously reserved bit
> 20 from the SPI_CTL to enable/disable it. Now the tricky part is that
> the meaning of this new bit is inverted for some unknown reason: the
> wacky mode is activated when the bit is set to zero, while the standard
> behaviour (same as A10/A13) is preserved when this bit is set to 1. The
> reset default of this bit is 1 on A20 (normal SPI behaviour). The
> problem of the current SPI driver is that it clears bits 20-31 of
> SPI_CTL, which results in normal SPI behaviour on A10/A13, and a wacky
> half-cycle delayed mode on A20. Your bugfix just makes A20 behave in
> the same way as A10/A13.
These are the exact words I was looking for, thanks Siarhei.
And I don't really know which chip could to use this wacky half-cycle
delay mode. Anyway, maybe a new dts property could be a solution to
let user to enable or not normal mode and half-cycle mode?
Best regards,
Vinicius
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2026 bytes --]
next prev parent reply other threads:[~2017-03-02 22:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-11 3:54 [PATCH v2] ARM: spi/sun7i: Add Master Sample Data Mode for SPI Vinicius Maciel
[not found] ` <20170211035447.3819-1-viniciusfre-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-02-13 7:12 ` Maxime Ripard
2017-02-13 12:52 ` Mark Brown
[not found] ` <20170213125239.f5vsxrfwz5t6gqyp-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2017-02-26 14:10 ` Vinicius Maciel
[not found] ` <186c0f31-01d0-4a1b-889b-a390a57bd1d9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-03-02 20:44 ` Siarhei Siamashka
2017-03-02 22:00 ` Vinicius Maciel [this message]
2017-02-11 6:58 Icenowy Zheng
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=dcd87d04-7b53-4d23-8918-359f2b327a53@googlegroups.com \
--to=viniciusfre-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=wens-jdAy2FN1RRM@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).