From: b29396@freescale.com (Dong Aisheng)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 5/8] mmc: sdhci-esdhc-imx: add delay line setting support
Date: Fri, 18 Oct 2013 19:41:19 +0800 [thread overview]
Message-ID: <20131018114119.GF22289@shlinux2.ap.freescale.net> (raw)
In-Reply-To: <20131018115754.GF6043@S2101-09.ap.freescale.net>
On Fri, Oct 18, 2013 at 07:57:56PM +0800, Shawn Guo wrote:
> On Fri, Oct 18, 2013 at 07:30:47PM +0800, Dong Aisheng wrote:
> > On Fri, Oct 18, 2013 at 07:42:35PM +0800, Shawn Guo wrote:
> > > On Fri, Oct 18, 2013 at 06:54:18PM +0800, Dong Aisheng wrote:
> > > > The DLL(Delay Line) is newly added to assist in sampling read data.
> > > > The DLL provides the ability to programmatically select a quantized
> > > > delay (in fractions of the clock period) regardless of on-chip variations
> > > > such as process, voltage and temperature (PVT).
> > > >
> > > > This patch adds a user interface to set slave delay line via device tree.
> > > > It's usually used in high speed mode like mmc DDR mode when the signal
> > > > quality is not good caused by board design, e.g. the signal path is too long.
> > > > User can manual set delay line to find a suitable data sampling window
> > > > for card to work properly.
> > > >
> > > > Signed-off-by: Dong Aisheng <b29396@freescale.com>
> > > > ---
> > > > .../devicetree/bindings/mmc/fsl-imx-esdhc.txt | 5 +++++
> > > > drivers/mmc/host/sdhci-esdhc-imx.c | 18 ++++++++++++++++++
> > > > include/linux/platform_data/mmc-esdhc-imx.h | 1 +
> > > > 3 files changed, 24 insertions(+), 0 deletions(-)
> > > >
> > > > diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
> > > > index 1dd6225..78a45c5 100644
> > > > --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
> > > > +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
> > > > @@ -12,6 +12,11 @@ Required properties:
> > > > Optional properties:
> > > > - fsl,cd-controller : Indicate to use controller internal card detection
> > > > - fsl,wp-controller : Indicate to use controller internal write protection
> > > > +- fsl,delay-line : Specify the number of delay cells for override mode.
> > > > + This is used to set the clock delay for DLL(Delay Line) on override mode
> > > > + to select a proper data sampling window in case the clock quality is not good
> > > > + due to signal path is too long on the board.
> > > > + please refer to DLL chapter in RM for details.
> > >
> > > It might be better to reword it like:
> > >
> > > Please refer to eSDHC/uSDHC DLL_CTRL register bit field
> > > DLL_CTRL_SLV_OVERRIDE_VAL in Reference Manual for details.
> > >
> >
> > There is a DLL (Delay Line) chapter in the reference manual which
> > has more detailed descriptions on the delay line including override mode.
> > So i think it may be better to point user to the DLL chapter for understanding,
> > then naturally user will refer to register for bit defines later too.
> > Does it make sense?
>
> Okay. But "eSDHC/uSDHC chapter, DLL (Delay Line) section" please.
>
Okay, i'm fine with it.
Regards
Dong Aisheng
> Shawn
next prev parent reply other threads:[~2013-10-18 11:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-18 10:54 [PATCH v2 0/8] mmc: sdhci-esdhc-imx: add std tuning for mx6sl and DDR mode support Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 1/8] mmc: sdhci-esdhc-imx: add std tuning support for mx6sl Dong Aisheng
2013-10-18 11:33 ` Shawn Guo
2013-10-18 11:18 ` Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 2/8] mmc: sdhci-esdhc-imx: fix reading cap_1 register value " Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 3/8] mmc: sdhci: report error once the maximum tuning loops exhausted or timeout Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 4/8] mmc: sdhci-esdhc-imx: add DDR mode support for mx6 Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 5/8] mmc: sdhci-esdhc-imx: add delay line setting support Dong Aisheng
2013-10-18 11:42 ` Shawn Guo
2013-10-18 11:30 ` Dong Aisheng
2013-10-18 11:57 ` Shawn Guo
2013-10-18 11:41 ` Dong Aisheng [this message]
2013-10-18 10:54 ` [PATCH v2 6/8] mmc: sdhci-esdhc-imx: enable SDR50 tuning for imx6q/dl Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 7/8] mmc: sdhci-esdhc-imx: add preset value quirk for mx6 Dong Aisheng
2013-10-18 10:54 ` [PATCH v2 8/8] mmc: sdhci: remove unneeded call when have preset value quirk Dong Aisheng
2013-10-18 11:46 ` [PATCH v2 0/8] mmc: sdhci-esdhc-imx: add std tuning for mx6sl and DDR mode support 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=20131018114119.GF22289@shlinux2.ap.freescale.net \
--to=b29396@freescale.com \
--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).