aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRhyland Klein <rklein@nvidia.com>2013-12-09 06:36:09 -0500
committerLee Jones <lee.jones@linaro.org>2014-01-21 03:28:06 -0500
commit01e73c89cf03c020e586dc9e30d52a6e098853f6 (patch)
treedaef78c50110f4fed3218742bf8c6560e3645639 /Documentation
parentdaf93d2287ff8eb4a2f28224275fb02d623df2ab (diff)
mfd: cros ec: spi: Add delay for raising CS
The EC has specific timing it requires. Add support for an optional delay after raising CS to fix timing issues. This is configurable based on a DT property "google,cros-ec-spi-msg-delay". 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 end of a transaction. Signed-off-by: Rhyland Klein <rklein@nvidia.com> Reviewed-by: Bernie Thompson <bhthompson@chromium.org> Reviewed-by: Andrew Bresticker <abrestic@chromium.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/mfd/cros-ec.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mfd/cros-ec.txt b/Documentation/devicetree/bindings/mfd/cros-ec.txt
index 5f229c5f6da9..8009c3d87f33 100644
--- a/Documentation/devicetree/bindings/mfd/cros-ec.txt
+++ b/Documentation/devicetree/bindings/mfd/cros-ec.txt
@@ -17,6 +17,15 @@ Required properties (SPI):
17- compatible: "google,cros-ec-spi" 17- compatible: "google,cros-ec-spi"
18- reg: SPI chip select 18- reg: SPI chip select
19 19
20Optional properties (SPI):
21- google,cros-ec-spi-msg-delay: Some implementations of the EC require some
22 additional processing time in order to accept new transactions. If the delay
23 between transactions is not long enough the EC may not be able to respond
24 properly to subsequent transactions and cause them to hang. This property
25 specifies the delay, in usecs, introduced between transactions to account
26 for the time required by the EC to get back into a state in which new data
27 can be accepted.
28
20Required properties (LPC): 29Required properties (LPC):
21- compatible: "google,cros-ec-lpc" 30- compatible: "google,cros-ec-lpc"
22- reg: List of (IO address, size) pairs defining the interface uses 31- reg: List of (IO address, size) pairs defining the interface uses