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


Groups > linux.kernel > #1524817

Re: [PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins

From klaus.goger@theobroma-systems.com
Newsgroups linux.kernel
Subject Re: [PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins
Date 2016-11-17 22:20 +0100
Message-ID <sECga-63q-23@gated-at.bofh.it> (permalink)
References <sErkK-7f8-45@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2016-11-17 10:34, Chen-Yu Tsai wrote:
> Given that MMC starts in open-drain mode and the pull-ups are required,
> it's best to enable it for all the pin settings.

It's even more complicated than that with MMC. It starts in open-drain 
mode for
CMD during initialization but changes to push-pull afterwards. The card 
has
internal pull-ups to prevent bus floating during setup and will disable 
them
after switching to 4bit mode (or 8bit for eMMC when available).
But even after switching to push-pull drivers there are states the bus 
would
float and pull ups have to ensure a high level on the bus.

See JESD84-A441 chapter 7.15 ff as reference.

   The difference between the P-bit and Z-bit is that a P-bit is actively 
driven
   to HIGH by the card respectively host output driver, while Z-bit is 
driven to
  (respectively kept) HIGH by the pull-up resistors Rcmd respectively 
Rdat.


Enabling the pull ups on the CPU would be the right choice considering 
that
most boards will not have external pull-ups. Even if they would have 
one,
adding the internal in parallel would work in almost all cases and the
increase in power consumption would be negligible.

Cheers,
Klaus

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


Thread

[PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins Chen-Yu Tsai <wens@csie.org> - 2016-11-17 10:40 +0100
  Re: [PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-11-17 21:50 +0100
  Re: [PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins klaus.goger@theobroma-systems.com - 2016-11-17 22:20 +0100
    Re: [PATCH] ARM: dts: sunxi: Explicitly enable pull-ups for MMC pins Linus Walleij <linus.walleij@linaro.org> - 2016-11-18 10:20 +0100

csiph-web