From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: IMX6 USDHC card detection
Date: Sat, 5 Oct 2013 10:35:27 +0100 [thread overview]
Message-ID: <20131005093527.GU12758@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20131005092000.GL2734@S2101-09.ap.freescale.net>
On Sat, Oct 05, 2013 at 05:20:01PM +0800, Shawn Guo wrote:
> DATA3 as Card Detection Pin:
> If this bit is set, DATA3 should be pulled down to act as a card
> detection pin. Be cautious when using this feature, because DATA3 is
> also a chip-select for the SPI mode. A pull-down on this pin and CMD0
> may set the card into the SPI mode, which the uSDHC does not support.
The issue there is if the pull-down is too strong.
DATA3 is pulled up by the SD card via a 50k internal resistor. If the
IMX6 is programmed to pull down via 100k, that will result in 2/3s of
the card supply on DATA3. That should be fine given the card thresholds:
Min Max
Input High Voltage VIH 0.625*VDD VDD+0.3 V
Input Low Voltage VIL VSS-0.3 0.25*VDD V
Of course, if a board has an additional external pull-down resistor on
DAT3, that will lower the DATA3 voltage level, so that's where a problem
could be.
Would you be happy if I added new pinctrl entries to imx6qdl.dtsi which
pulled down the DATA3 line - that way, existing DT setups will not be
affected, and they can switch over if they wish to using controller
based card detection.
Thanks.
next prev parent reply other threads:[~2013-10-05 9:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 19:36 IMX6 USDHC card detection Russell King - ARM Linux
2013-10-04 16:07 ` Fabio Estevam
2013-10-05 9:20 ` Shawn Guo
2013-10-05 9:35 ` Russell King - ARM Linux [this message]
2013-10-05 10:11 ` Shawn Guo
2013-10-05 14:24 ` Fabio Estevam
2013-10-05 8:45 ` Shawn Guo
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=20131005093527.GU12758@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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).