Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1157635

[PATCH v5 8/9] mfd: cros_ec: spi: Add a DT property to delay asserting the CS

From Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Newsgroups linux.kernel
Subject [PATCH v5 8/9] mfd: cros_ec: spi: Add a DT property to delay asserting the CS
Date 2015-06-03 15:10 +0200
Message-ID <pxgAI-1Uo-49@gated-at.bofh.it> (permalink)
References <pxgAF-1Uo-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Alexandru M Stan <amstan@chromium.org>

Some ECs need a little time for waking up before they can accept
SPI data at a high speed. Add a "google,cros-ec-spi-pre-delay"
property to the DT binding to configure this.

If this property isn't set, then no delay will be added. However,
if set it will cause a delay equal to the value passed to it to
be inserted at the beginning of a transaction.

Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Lee Jones <lee.jones@linaro.org>
---

Changes since v4: None.

Changes since v3:
 - Split DT binding and driver change as suggested by Lee Jones.
 - Add tested-by tag from Heiko Stuebner
 - Add acked-by tag from Lee Jones.

Changes since v2: None

Changes since v1: None, new patch
---
 Documentation/devicetree/bindings/mfd/cros-ec.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/devicetree/bindings/mfd/cros-ec.txt b/Documentation/devicetree/bindings/mfd/cros-ec.txt
index dcf404d16067..e03a61c54954 100644
--- a/Documentation/devicetree/bindings/mfd/cros-ec.txt
+++ b/Documentation/devicetree/bindings/mfd/cros-ec.txt
@@ -18,6 +18,10 @@ Required properties (SPI):
 - reg: SPI chip select
 
 Optional properties (SPI):
+- google,cros-ec-spi-pre-delay: Some implementations of the EC need a little
+  time to wake up from sleep before they can receive SPI transfers at a high
+  clock rate. This property specifies the delay, in usecs, between the
+  assertion of the CS to the start of the first clock pulse.
 - google,cros-ec-spi-msg-delay: Some implementations of the EC require some
   additional processing time in order to accept new transactions. If the delay
   between transactions is not long enough the EC may not be able to respond
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5 0/9] mfd: cros_ec: Add multi EC and proto v3 support Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 2/9] mfd: cros_ec: rev cros_ec_commands.h Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 3/9] mfd: cros_ec: Move protocol helpers out of the MFD driver Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 7/9] mfd: cros_ec: Support multiple EC in a system Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 8/9] mfd: cros_ec: spi: Add a DT property to delay asserting the CS Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 9/9] mfd: cros_ec: spi: Add delay for asserting CS Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 1/9] mfd: cros_ec: Use a zero-length array for command data Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200
  [PATCH v5 6/9] mfd: cros_ec: Add DT property to define ChromeOS EC name Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-03 15:10 +0200

csiph-web