From: Shawn Guo Subject: Re: [PATCH] mmc: dt: Add card-detection properties to core binding. Date: Fri, 24 Aug 2012 13:44:51 +0800 Message-ID: <20120824054449.GP24242@S2101-09.ap.freescale.net> References: <87pq6k46jg.fsf@octavius.laptop.org> <5033B0F0.7050506@gmail.com> <20120822055151.GT24242@S2101-09.ap.freescale.net> <877gsr5iz1.fsf@octavius.laptop.org> <87y5l7421h.fsf@octavius.laptop.org> <87393f3rkj.fsf@octavius.laptop.org> <874nnu245s.fsf_-_@octavius.laptop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:39005 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753275Ab2HXFoW (ORCPT ); Fri, 24 Aug 2012 01:44:22 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr13so2795592pbb.19 for ; Thu, 23 Aug 2012 22:44:21 -0700 (PDT) Content-Disposition: inline In-Reply-To: <874nnu245s.fsf_-_@octavius.laptop.org> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Chris Ball Cc: Thomas Abraham , Rob Herring , Arnd Bergmann , linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-samsung-soc@vger.kernel.org, grant.likely@secretlab.ca, patches@linaro.org, Wolfram Sang On Wed, Aug 22, 2012 at 02:05:35PM -0400, Chris Ball wrote: > Signed-off-by: Chris Ball Acked-by: Shawn Guo Will move sdhci-esdhc-imx driver to this soon. Regards, Shawn > --- > Documentation/devicetree/bindings/mmc/mmc.txt | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt > index 8a6811f..8e2e0ba 100644 > --- a/Documentation/devicetree/bindings/mmc/mmc.txt > +++ b/Documentation/devicetree/bindings/mmc/mmc.txt > @@ -9,12 +9,17 @@ Interpreted by the OF core: > Required properties: > - bus-width: Number of data lines, can be <1>, <4>, or <8> > > +Card detection: > +If no property below is supplied, standard SDHCI card detect is used. > +Only one of the properties in this section should be supplied: > + - broken-cd: There is no card detection available; polling must be used. > + - cd-gpios: Specify GPIOs for card detection, see gpio binding > + - non-removable: non-removable slot (like eMMC); assume always present. > + > Optional properties: > -- cd-gpios: Specify GPIOs for card detection, see gpio binding > - wp-gpios: Specify GPIOs for write protection, see gpio binding > - cd-inverted: when present, polarity on the cd gpio line is inverted > - wp-inverted: when present, polarity on the wp gpio line is inverted > -- non-removable: non-removable slot (like eMMC) > - max-frequency: maximum operating clock frequency > > Example: > -- > Chris Ball > One Laptop Per Child