linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: grant.likely@secretlab.ca (Grant Likely)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/3] mmc: sdhci-esdhc-imx: add device tree probe support
Date: Wed, 6 Jul 2011 09:50:30 -0600	[thread overview]
Message-ID: <20110706155030.GA5805@ponder.secretlab.ca> (raw)
In-Reply-To: <20110706154314.GC4034@S2100-06.ap.freescale.net>

On Wed, Jul 06, 2011 at 11:43:15PM +0800, Shawn Guo wrote:
> On Tue, Jul 05, 2011 at 11:54:34AM -0600, Grant Likely wrote:
> > On Tue, Jul 5, 2011 at 9:26 AM, Shawn Guo <shawn.guo@linaro.org> wrote:
> > > The patch adds device tree probe support for sdhci-esdhc-imx driver.
> > >
> > > Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> > > Cc: Wolfram Sang <w.sang@pengutronix.de>
> > > Cc: Chris Ball <cjb@laptop.org>
> > > Cc: Grant Likely <grant.likely@secretlab.ca>
> > > ---
> > > ?.../devicetree/bindings/mmc/fsl-imx-esdhc.txt ? ? ?| ? 40 ++++++++
> > > ?drivers/mmc/host/sdhci-esdhc-imx.c ? ? ? ? ? ? ? ? | ?102 +++++++++++++++++++-
> > > ?2 files changed, 137 insertions(+), 5 deletions(-)
> > > ?create mode 100644 Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
> > > new file mode 100644
> > > index 0000000..351d239
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt
> > > @@ -0,0 +1,40 @@
> > > +* Freescale Enhanced Secure Digital Host Controller (eSDHC) for i.MX
> > > +
> > > +The Enhanced Secure Digital Host Controller on Freescale i.MX family
> > > +provides an interface for MMC, SD, and SDIO types of memory cards.
> > > +
> > > +Required properties:
> > > +- compatible : Should be "fsl,<chip>-esdhc"
> > > +- reg : Should contain eSDHC registers location and length
> > > +- interrupts : Should contain eSDHC interrupt
> > > +- cd-type : String, card detection (CD) method. ?Supported values are:
> > > + ? ?"none" : No CD
> > > + ? ?"controller" : Uses eSDHC controller internal CD signal
> > > + ? ?"gpio" : Uses GPIO pin for CD
> > > + ? ?"permanent" : No CD because card is permanently wired to host
> > > +- wp-type : String, write protection (WP) method. ?Supported values are:
> > > + ? ?"none" : No WP
> > > + ? ?"controller" : Uses eSDHC controller internal WP signal
> > > + ? ?"gpio" : Uses GPIO pin for WP
> > > +- gpios : Should specify GPIOs in this order: CD GPIO, WP GPIO, if
> > > + ?properties cd-type and wp-type are "gpio".
> > 
> > Again, be explicit in your gpios property names.  Create a different
> > property for each gpio: cd-gpios and wp-gpios.
> > 
> > As for wp-type and cd-type, I think you can drop them.  Default to
> > internal controller CD and WP pins.  Use gpio if cd-gpios or wp-gpios
> > is present, and define specific properties for the no-wp, no-cd and
> > fixed-card cases.  (can you tell that I'm not a fan of the "*-type"
> > binding for this driver?)  :-)
> > 
> I would let default be no CD/WP, and define properties for
> controller internal CD/WP and wired case, if you do not see a
> problem with it.

Okay.

g.

      reply	other threads:[~2011-07-06 15:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05 15:26 [PATCH v2 0/3] Add device tree probe for sdhci-esdhc-imx Shawn Guo
2011-07-05 15:26 ` [PATCH v2 1/3] mmc: sdhci-esdhc-imx: get rid of the uses of cpu_is_mx() Shawn Guo
2011-07-05 17:47   ` Grant Likely
2011-07-05 15:26 ` [PATCH v2 2/3] mmc: sdhci-pltfm: dt device does not pass parent to sdhci_alloc_host Shawn Guo
2011-07-07 11:33   ` Sergei Shtylyov
2011-07-05 15:26 ` [PATCH v2 3/3] mmc: sdhci-esdhc-imx: add device tree probe support Shawn Guo
2011-07-05 17:54   ` Grant Likely
2011-07-06  3:31     ` Shawn Guo
2011-07-06 15:43     ` Shawn Guo
2011-07-06 15:50       ` Grant Likely [this message]

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=20110706155030.GA5805@ponder.secretlab.ca \
    --to=grant.likely@secretlab.ca \
    --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).