From: Peter Griffin <peter.griffin@linaro.org>
To: linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com,
maxime.coquelin@st.com, patrice.chotard@st.com,
mturquette@linaro.org, sboyd@codeaurora.org, chris@printf.net,
ulf.hansson@linaro.org
Cc: peter.griffin@linaro.org, lee.jones@linaro.org,
peppe.cavallaro@st.com, olivier.bideau@st.com,
gabriel.fernandez@st.com, linux-mmc@vger.kernel.org,
devicetree@vger.kernel.org
Subject: [PATCH 0/4] Add sd/emmc support for stih407 family silicon
Date: Tue, 20 Jan 2015 15:32:40 +0000 [thread overview]
Message-ID: <1421767964-8798-1-git-send-email-peter.griffin@linaro.org> (raw)
Hi,
This series adds sd/emmc support to the sdhci-st.c driver for stih407
family silicon. The changes mainly involve congiguring some extra glue
registers which configure the controller.
This series also adds support for UHS modes for eMMC. To allow
UHS HS200/SD104 modes to function correctly, due to the
tight timing constriants and data tuning requirement, support
for PVT independent delay management is also added. Two types
of delay management are supported, static delay management and
dynamic delay management (dynamic delay loop), this delay
management is only available on eMMC pads on stih410 and later
silicon.
This has been tested with stih410-b2120 on eMMC and sd, at various
clock speeds. As part of this testing a bug was also found in the
upstream flexgen clock set_rate implementation.
max-frequency = 200Mhz
/dev/mmcblk0p1:
Timing buffered disk reads: 270 MB in 3.02 seconds = 89.54 MB/sec
max-frequency = 100Mhz
root@debian-armhf:~# hdparm -t /dev/mmcblk0p1
/dev/mmcblk0p1:
Timing buffered disk reads: 210 MB in 3.00 seconds = 70.00 MB/sec
max-frequency = 50Mhz
root@debian-armhf:~# hdparm -t /dev/mmcblk0p1
/dev/mmcblk0p1:
Timing buffered disk reads: 118 MB in 3.00 seconds = 39.28 MB/sec
It has also been tested on stih416-b2020 to ensure we have caused no
regressions. Finally the dt documentation has been updated to reflect
the changes in the driver code. Intrestingly it seems we are the first
upstream platform to be using some of the uhs bindings such as
sd-uhs-sdr104.
regards,
Peter.
Peter Griffin (4):
clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate
sdhci-st: Add support for stih407 family silicon.
mmc: sdhci-st: Update ST SDHCI binding documentation.
ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc.
Documentation/devicetree/bindings/mmc/sdhci-st.txt | 100 +++++-
arch/arm/boot/dts/stih407-family.dtsi | 30 ++
arch/arm/boot/dts/stih410-b2120.dts | 10 +
arch/arm/boot/dts/stihxxx-b2120.dtsi | 8 +
drivers/clk/st/clk-flexgen.c | 19 +-
drivers/mmc/host/sdhci-st.c | 351 ++++++++++++++++++++-
6 files changed, 496 insertions(+), 22 deletions(-)
--
1.9.1
next reply other threads:[~2015-01-20 15:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 15:32 Peter Griffin [this message]
[not found] ` <1421767964-8798-1-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-01-20 15:32 ` [PATCH 1/4] clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate Peter Griffin
2015-01-20 17:37 ` Mike Turquette
2015-01-20 15:32 ` [PATCH 2/4] sdhci-st: Add support for stih407 family silicon Peter Griffin
2015-01-21 10:26 ` Ulf Hansson
2015-01-20 15:32 ` [PATCH 3/4] mmc: sdhci-st: Update ST SDHCI binding documentation Peter Griffin
2015-01-20 15:32 ` [PATCH 4/4] ARM: STi: DT: STiH407: Add dt nodes for sdhci and emmc Peter Griffin
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=1421767964-8798-1-git-send-email-peter.griffin@linaro.org \
--to=peter.griffin@linaro.org \
--cc=chris@printf.net \
--cc=devicetree@vger.kernel.org \
--cc=gabriel.fernandez@st.com \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=maxime.coquelin@st.com \
--cc=mturquette@linaro.org \
--cc=olivier.bideau@st.com \
--cc=patrice.chotard@st.com \
--cc=peppe.cavallaro@st.com \
--cc=sboyd@codeaurora.org \
--cc=srinivas.kandagatla@gmail.com \
--cc=ulf.hansson@linaro.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).