Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-23 Thread Thomas Abraham
On 22 August 2012 22:39, Mitch Bradley wrote: > Sorry to interject on a topic that seems to have already been decided, > but I'm confused by one thing and would like clarification. I > understand that you need to use a GPIO-style specifier as a surrogate > for a pinmux specification - that much i

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Mitch Bradley
Hi Thomas, On 8/22/2012 2:04 AM, Thomas Abraham wrote: > On 22 August 2012 16:38, Chris Ball wrote: >> Hi Thomas, >> >> On Wed, Aug 22 2012, Thomas Abraham wrote: This matches Mitch's last suggestion exactly -- I think we're all agreed on these properties now. The only remaining questi

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Thomas Abraham
On 22 August 2012 20:24, Chris Ball wrote: > Hi Thomas, > > On Wed, Aug 22 2012, Thomas Abraham wrote: >>> none -> currently "samsung,sdhci-cd-internal" >>> broken-cd -> currently "samsung,sdhci-cd-none" >>> cd-gpios -> currently "samsung,sdhci-cd-gpios" >>> non-removable -> curr

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Chris Ball
Hi Stephen, On Wed, Aug 22 2012, Stephen Warren wrote: > On 08/22/2012 04:17 AM, Chris Ball wrote: >> Hi, >> >> On Wed, Aug 22 2012, Shawn Guo wrote: >>> The following is what I have on my mind. >>> >>> broken-cd cd-gpiosimplication >>> --- >>> no

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Stephen Warren
On 08/22/2012 04:17 AM, Chris Ball wrote: > Hi, > > On Wed, Aug 22 2012, Shawn Guo wrote: >> The following is what I have on my mind. >> >> broken-cdcd-gpiosimplication >> --- >> no no SDHCI CD >> no yes

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Chris Ball
Hi Thomas, On Wed, Aug 22 2012, Thomas Abraham wrote: >> none -> currently "samsung,sdhci-cd-internal" >> broken-cd -> currently "samsung,sdhci-cd-none" >> cd-gpios -> currently "samsung,sdhci-cd-gpios" >> non-removable -> currently "samsung,sdhci-cd-permanent" >> cd-gpios + sams

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Chris Ball
Hi Shawn, On Wed, Aug 22 2012, Shawn Guo wrote: > mmc: sdhci: Always pass clock request value zero to set_clock host op > > To allow the set_clock host op to disable the SDCLK source when not > needed, always call the host op when the requested clock speed is > zero. Do this even

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Shawn Guo
Hi Chris, On Tue, Aug 21, 2012 at 10:48:43AM -0400, Chris Ball wrote: > Aside: the bindings do not match the code. The bindings document says > to use "fsl,cd-internal", and imx51-babbage.dts does so -- but the code > doesn't check for "fsl,cd-internal", it checks for "fsl,cd-controller": > >

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Thomas Abraham
On 22 August 2012 16:38, Chris Ball wrote: > Hi Thomas, > > On Wed, Aug 22 2012, Thomas Abraham wrote: >>> This matches Mitch's last suggestion exactly -- I think we're all agreed >>> on these properties now. The only remaining question is how to handle >>> the pinctrl for CD in Thomas's case. >>

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Chris Ball
Hi Thomas, On Wed, Aug 22 2012, Thomas Abraham wrote: >> This matches Mitch's last suggestion exactly -- I think we're all agreed >> on these properties now. The only remaining question is how to handle >> the pinctrl for CD in Thomas's case. > > Hi Chris, > > For sdhci-s3c driver, the 'broken-cd

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Thomas Abraham
On 22 August 2012 15:47, Chris Ball wrote: > Hi, > > On Wed, Aug 22 2012, Shawn Guo wrote: >> The following is what I have on my mind. >> >> broken-cd cd-gpiosimplication >> --- >> nono SDHCI CD >> noyes

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-22 Thread Chris Ball
Hi, On Wed, Aug 22 2012, Shawn Guo wrote: > The following is what I have on my mind. > > broken-cd cd-gpiosimplication > --- > nono SDHCI CD > noyes GPIO CD > yes no NO CD /

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Shawn Guo
On Tue, Aug 21, 2012 at 10:48:43AM -0400, Chris Ball wrote: > Aside: the bindings do not match the code. The bindings document says > to use "fsl,cd-internal", and imx51-babbage.dts does so -- but the code > doesn't check for "fsl,cd-internal", it checks for "fsl,cd-controller": > > if (o

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Shawn Guo
On Tue, Aug 21, 2012 at 11:03:59PM +0530, Thomas Abraham wrote: > Ok, I agree with Rob. I was mixing pin muxing here. So if we have > 'cd-gpios' and 'broken-cd' as generic bindings, would the following be > valid? > > [A] cd-gpios not present , broken-cd not present : This means that > there is n

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Mitch Bradley
On 8/21/2012 7:33 AM, Thomas Abraham wrote: > On 21 August 2012 21:31, Rob Herring wrote: >> On 08/21/2012 10:18 AM, Chris Ball wrote: >>> Hi, >>> >>> On Tue, Aug 21 2012, Rob Herring wrote: > cd-gpios and cd-external can be present on the same node. if broken-cd > is present, it must be

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Thomas Abraham
On 21 August 2012 21:31, Rob Herring wrote: > On 08/21/2012 10:18 AM, Chris Ball wrote: >> Hi, >> >> On Tue, Aug 21 2012, Rob Herring wrote: cd-gpios and cd-external can be present on the same node. if broken-cd is present, it must be the only one of these nodes used. >>> >>> I don't se

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Rob Herring
On 08/21/2012 10:18 AM, Chris Ball wrote: > Hi, > > On Tue, Aug 21 2012, Rob Herring wrote: >>> cd-gpios and cd-external can be present on the same node. if broken-cd >>> is present, it must be the only one of these nodes used. >> >> I don't see the point of cd-external. Either you just use the C

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Thomas Abraham
On 21 August 2012 20:33, Rob Herring wrote: > On 08/21/2012 09:48 AM, Chris Ball wrote: >> Hi, adding Shawn and Wolfram, > > snip... > >> Rob Herring said: >>> This makes the most sense to me. However, I prefer broken-cd over >>> cd-internal. The binding should add properties for exceptions, not S

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Chris Ball
Hi, On Tue, Aug 21 2012, Rob Herring wrote: >> cd-gpios and cd-external can be present on the same node. if broken-cd >> is present, it must be the only one of these nodes used. > > I don't see the point of cd-external. Either you just use the CD > interrupt defined within the SDHCI or you have a

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Rob Herring
On 08/21/2012 09:48 AM, Chris Ball wrote: > Hi, adding Shawn and Wolfram, snip... > Rob Herring said: >> This makes the most sense to me. However, I prefer broken-cd over >> cd-internal. The binding should add properties for exceptions, not SDHCI >> spec compliant implementations. > > Agreed, I

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Chris Ball
Hi, adding Shawn and Wolfram, On Tue, Aug 21 2012, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Chris Ball wrote: >> How about this? >> >> broken-cd: No CD available, use polling. >> >> cd-gpios: The CD pin on the host is working and brought out to a GPIO. >> >> external-cd-gpios: The CD p

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Rob Herring
On 08/21/2012 07:08 AM, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Chris Ball wrote: >> How about this? >> >> broken-cd: No CD available, use polling. >> >> cd-gpios: The CD pin on the host is working and brought out to a GPIO. >> >> external-cd-gpios: The CD pin on the host is broken, but t

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Thomas Abraham
On 21 August 2012 17:26, Chris Ball wrote: > Hi, > > On Tue, Aug 21 2012, Thomas Abraham wrote: >> I am trying to have a way to represent a gpio line as card detect line >> that is not connected to the card-detect pad of the mmc controller but >> instead used as a gpio interrupt line or polled gpi

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Chris Ball wrote: > How about this? > > broken-cd: No CD available, use polling. > > cd-gpios: The CD pin on the host is working and brought out to a GPIO. > > external-cd-gpios: The CD pin on the host is broken, but there's an >independent external

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Chris Ball
Hi, On Tue, Aug 21 2012, Thomas Abraham wrote: > I am trying to have a way to represent a gpio line as card detect line > that is not connected to the card-detect pad of the mmc controller but > instead used as a gpio interrupt line or polled gpio line. > > 'broken-cd' would imply that the card-de

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Thomas Abraham
On 21 August 2012 16:31, Arnd Bergmann wrote: > > On Tuesday 21 August 2012, Thomas Abraham wrote: > > diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt > > b/Documentation/devicetree/bindings/mmc/mmc.txt > > index 8a6811f..1aa527a 100644 > > --- a/Documentation/devicetree/bindings/mmc/mm

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Chris Ball
Hi, On Tue, Aug 21 2012, Arnd Bergmann wrote: > On Tuesday 21 August 2012, Thomas Abraham wrote: >> diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt >> b/Documentation/devicetree/bindings/mmc/mmc.txt >> index 8a6811f..1aa527a 100644 >> --- a/Documentation/devicetree/bindings/mmc/mmc.txt

Re: [PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Arnd Bergmann
On Tuesday 21 August 2012, Thomas Abraham wrote: > diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt > b/Documentation/devicetree/bindings/mmc/mmc.txt > index 8a6811f..1aa527a 100644 > --- a/Documentation/devicetree/bindings/mmc/mmc.txt > +++ b/Documentation/devicetree/bindings/mmc/mmc.tx

[PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Thomas Abraham
'broken-cd' binding lets mmc controller device node to indicate that the card detect line is broken. Signed-off-by: Thomas Abraham --- The 'broken-cd' DT binding for MMC controllers is picked up from the OLPC project git repo and was originally conceived by Chris Ball . Documentation/devicetree

[PATCH] mmc: dt: Add 'broken-cd' DT binding

2012-08-21 Thread Thomas Abraham
'broken-cd' binding lets mmc controller device node to indicate that the card detect line is broken. Signed-off-by: Thomas Abraham --- The 'broken-cd' DT binding for MMC controllers is picked up from the OLPC project git repo and was originally conceived by Chris Ball . Documentation/devicetree