devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Documentation: mmc: add optional cd-delay-ms property
@ 2018-04-12  1:20 Shawn Lin
  2018-04-12  1:20 ` [PATCH 2/2] mmc: core: Add tunable delay before detecting card after card is inserted Shawn Lin
  0 siblings, 1 reply; 9+ messages in thread
From: Shawn Lin @ 2018-04-12  1:20 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: Rob Herring, Adrian Hunter, linux-mmc, devicetree, Shawn Lin

slot-gpio uses a fixed delay, 200ms, before detecting card after the card
is inserted. 200ms doesn't work for some platforms, so some host drivers
added their own properties for parsing that from DT, for instance,
dw_mmc and pxamci. That being said, it should also be tunable when using
slog-gpio.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 Documentation/devicetree/bindings/mmc/mmc.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt
index 467cd7b..215b9a2 100644
--- a/Documentation/devicetree/bindings/mmc/mmc.txt
+++ b/Documentation/devicetree/bindings/mmc/mmc.txt
@@ -19,6 +19,8 @@ Optional properties:
 - wp-gpios: Specify GPIOs for write protection, see gpio binding
 - cd-inverted: when present, polarity on the CD line is inverted. See the note
   below for the case, when a GPIO is used for the CD line
+- cd-delay-ms: Set delay time before detecting card after card insert interrupt.
+  It's only valid when cd-gpios is present.
 - wp-inverted: when present, polarity on the WP line is inverted. See the note
   below for the case, when a GPIO is used for the WP line
 - disable-wp: When set no physical WP line is present. This property should
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-04-13  1:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-12  1:20 [PATCH 1/2] Documentation: mmc: add optional cd-delay-ms property Shawn Lin
2018-04-12  1:20 ` [PATCH 2/2] mmc: core: Add tunable delay before detecting card after card is inserted Shawn Lin
2018-04-12  6:32   ` Ulf Hansson
2018-04-12  7:34     ` Shawn Lin
2018-04-12  7:58       ` Ulf Hansson
2018-04-12  8:14         ` Shawn Lin
2018-04-12 11:31           ` Ulf Hansson
2018-04-12 11:47           ` Linus Walleij
2018-04-13  1:26             ` Shawn Lin

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).