All of lore.kernel.org
 help / color / mirror / Atom feed
From: apronin@chromium.org
To: Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
	Andrey Pronin <apronin@chromium.org>
Subject: [PATCH 2/4] spi: Document option to wake a device by toggling CS
Date: Wed, 29 Jun 2016 20:54:25 -0700	[thread overview]
Message-ID: <1467258867-117727-2-git-send-email-apronin@chromium.org> (raw)
In-Reply-To: <1467258867-117727-1-git-send-email-apronin@chromium.org>

From: Andrey Pronin <apronin@chromium.org>

Some SPI devices may go to sleep after a period of inactivity
on SPI. For such devices, if enough time has passed since the
last SPI transaction, toggle CS and wait for the device to
start before communicating with it.

Signed-off-by: Andrey Pronin <apronin@chromium.org>
---
 Documentation/devicetree/bindings/spi/spi-bus.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/spi/spi-bus.txt b/Documentation/devicetree/bindings/spi/spi-bus.txt
index 42d5954..1b7ffd4 100644
--- a/Documentation/devicetree/bindings/spi/spi-bus.txt
+++ b/Documentation/devicetree/bindings/spi/spi-bus.txt
@@ -63,6 +63,13 @@ contain the following properties.
                       used for MISO. Defaults to 1 if not present.
 - spi-rx-delay-us  - (optional) Microsecond delay after a read transfer.
 - spi-tx-delay-us  - (optional) Microsecond delay after a write transfer.
+- cs-wake-after-sleep - (optional) Device may go to sleep after a period
+		of SPI inactivity. If this flag is set, toggle CS and
+		wait for it to wake before communicating to it.
+- cs-sleep-delay  - (optional) Delay after which the device may go to
+		sleep if there was no SPI activity (msec).
+- cs-wake-duration - (optional) Time it takes the device to wake up after
+		toggling CS if it went to sleep (msec).
 
 Some SPI controllers and devices support Dual and Quad SPI transfer mode.
 It allows data in the SPI system to be transferred in 2 wires(DUAL) or 4 wires(QUAD).
-- 
2.6.6

  reply	other threads:[~2016-06-30  3:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-30  3:54 [PATCH 1/4] spi: Add option to wake a device by toggling CS apronin
2016-06-30  3:54 ` apronin-F7+t8E8rja9g9hUCZPvPmw
2016-06-30  3:54 ` apronin [this message]
2016-06-30  7:12   ` [PATCH 2/4] spi: Document " Geert Uytterhoeven
2016-07-01  4:32     ` Doug Anderson
2016-07-01  4:32       ` Doug Anderson
2016-06-30  3:54 ` [PATCH 3/4] spi: Add option to insert delay between transactions apronin
2016-07-01  4:44   ` Doug Anderson
2016-07-01  4:44     ` Doug Anderson
2016-07-01  8:16   ` Mark Brown
2016-06-30  3:54 ` [PATCH 4/4] spi: Document " apronin
2016-06-30  7:12   ` Geert Uytterhoeven
2016-06-30  7:12     ` Geert Uytterhoeven
2016-07-01  4:45     ` Doug Anderson
2016-07-01  4:45       ` Doug Anderson
2016-07-01  4:23 ` [PATCH 1/4] spi: Add option to wake a device by toggling CS Doug Anderson
2016-07-01  4:23   ` Doug Anderson
2016-07-01  8:21   ` Mark Brown
2016-07-01 17:05     ` Doug Anderson
2016-07-01 17:05       ` Doug Anderson
2016-07-01 17:17       ` Mark Brown
2016-07-01 17:17         ` Mark Brown
2016-07-02  2:02         ` Andrey Pronin
2016-07-01  8:02 ` Mark Brown
2016-07-01  8:02   ` Mark Brown
2016-07-02  1:45   ` Andrey Pronin
2016-07-02  1:45     ` Andrey Pronin

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=1467258867-117727-2-git-send-email-apronin@chromium.org \
    --to=apronin@chromium.org \
    --cc=broonie@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.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.