Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-12-12 Thread Linus Walleij
On Mon, Dec 9, 2013 at 11:34 AM, boris brezillon wrote: > [Me] >> This has been suggested under the name "GPIO hogs" in the past. >> >> It would work similar to how pinctrl hogs work by associating the >> GPIO line the controller itself, using some specific string >> like gpio-input-hogs = <...>

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-12-12 Thread Linus Walleij
On Mon, Dec 9, 2013 at 11:34 AM, boris brezillon b.brezil...@overkiz.com wrote: [Me] This has been suggested under the name GPIO hogs in the past. It would work similar to how pinctrl hogs work by associating the GPIO line the controller itself, using some specific string like

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-12-09 Thread boris brezillon
Hello Linus, On 29/11/2013 14:31, Linus Walleij wrote: On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon wrote: On 29/11/2013 11:03, Linus Walleij wrote: I guess one way is to obtain this GPIO in board code and just flick it depending on which device you register. (...) The whole goal of

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-12-09 Thread boris brezillon
Hello Linus, On 29/11/2013 14:31, Linus Walleij wrote: On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon b.brezil...@overkiz.com wrote: On 29/11/2013 11:03, Linus Walleij wrote: I guess one way is to obtain this GPIO in board code and just flick it depending on which device you register.

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread boris brezillon
On 29/11/2013 14:31, Linus Walleij wrote: On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon wrote: On 29/11/2013 11:03, Linus Walleij wrote: I guess one way is to obtain this GPIO in board code and just flick it depending on which device you register. (...) The whole goal of moving from

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread Linus Walleij
On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon wrote: > On 29/11/2013 11:03, Linus Walleij wrote: >> I guess one way is to obtain this GPIO in board code and just >> flick it depending on which device you register. (...) > The whole goal of moving from board files to dt is to drop all board >

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread boris brezillon
Hello Linus, On 29/11/2013 11:03, Linus Walleij wrote: På tisdag, 26 Nov, 2013 vid 6:11 PM, skrev boris brezillon : Le 26/11/2013 14:46, Linus Walleij a écrit : But in this case it is a mechanical switch rather than a jumper? Not exactly. The functionnaly selection (spi device or mmc slot)

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread Linus Walleij
På tisdag, 26 Nov, 2013 vid 6:11 PM, skrev boris brezillon : > Le 26/11/2013 14:46, Linus Walleij a écrit : >> But in this case it is a mechanical switch rather than a jumper? > > Not exactly. > > The functionnaly selection (spi device or mmc slot) is done by the software > using to the > PB22

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread Linus Walleij
På tisdag, 26 Nov, 2013 vid 6:11 PM, skrev boris brezillon b.brezil...@overkiz.com: Le 26/11/2013 14:46, Linus Walleij a écrit : But in this case it is a mechanical switch rather than a jumper? Not exactly. The functionnaly selection (spi device or mmc slot) is done by the software using

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread boris brezillon
Hello Linus, On 29/11/2013 11:03, Linus Walleij wrote: På tisdag, 26 Nov, 2013 vid 6:11 PM, skrev boris brezillon b.brezil...@overkiz.com: Le 26/11/2013 14:46, Linus Walleij a écrit : But in this case it is a mechanical switch rather than a jumper? Not exactly. The functionnaly selection

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread Linus Walleij
On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon b.brezil...@overkiz.com wrote: On 29/11/2013 11:03, Linus Walleij wrote: I guess one way is to obtain this GPIO in board code and just flick it depending on which device you register. (...) The whole goal of moving from board files to dt is to

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-29 Thread boris brezillon
On 29/11/2013 14:31, Linus Walleij wrote: On Fri, Nov 29, 2013 at 11:30 AM, boris brezillon b.brezil...@overkiz.com wrote: On 29/11/2013 11:03, Linus Walleij wrote: I guess one way is to obtain this GPIO in board code and just flick it depending on which device you register. (...) The whole

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-26 Thread boris brezillon
Hello Linus, Sorry for the noise, my mail was filtered by several ML because of some HTML contents. Le 26/11/2013 14:46, Linus Walleij a écrit : On Thu, Nov 21, 2013 at 11:34 AM, boris brezillon wrote: On 21/11/2013 10:48, Linus Walleij wrote: No matter whether it's a switch or a GPIO

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-26 Thread Linus Walleij
On Thu, Nov 21, 2013 at 11:34 AM, boris brezillon wrote: > On 21/11/2013 10:48, Linus Walleij wrote: >> No matter whether it's a switch or a GPIO regulator it seems we >> are in violent agreement that it should not be controlled by the >> pin control states at least. >> >> Start with making it a

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-26 Thread Linus Walleij
On Thu, Nov 21, 2013 at 11:34 AM, boris brezillon b.brezil...@overkiz.com wrote: On 21/11/2013 10:48, Linus Walleij wrote: No matter whether it's a switch or a GPIO regulator it seems we are in violent agreement that it should not be controlled by the pin control states at least. Start with

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-26 Thread boris brezillon
Hello Linus, Sorry for the noise, my mail was filtered by several ML because of some HTML contents. Le 26/11/2013 14:46, Linus Walleij a écrit : On Thu, Nov 21, 2013 at 11:34 AM, boris brezillon b.brezil...@overkiz.com wrote: On 21/11/2013 10:48, Linus Walleij wrote: No matter whether

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-21 Thread boris brezillon
Hi Linus, On 21/11/2013 10:48, Linus Walleij wrote: On Wed, Nov 20, 2013 at 5:14 PM, boris brezillon wrote: On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: mmc0_slot0_switch-0 { +

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-21 Thread Linus Walleij
On Wed, Nov 20, 2013 at 5:14 PM, boris brezillon wrote: > On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: >> On 13:06 Wed 28 Aug , Boris BREZILLON wrote: >>> mmc0_slot0_switch-0 { >>> + atmel,pins = >>> +

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-21 Thread Linus Walleij
On Wed, Nov 20, 2013 at 5:14 PM, boris brezillon b.brezil...@overkiz.com wrote: On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: mmc0_slot0_switch-0 { + atmel,pins = +

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-21 Thread boris brezillon
Hi Linus, On 21/11/2013 10:48, Linus Walleij wrote: On Wed, Nov 20, 2013 at 5:14 PM, boris brezillon b.brezil...@overkiz.com wrote: On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: mmc0_slot0_switch-0 { +

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:14 Wed 20 Nov , boris brezillon wrote: > On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: > >On 13:06 Wed 28 Aug , Boris BREZILLON wrote: > >>Add slot0 of mmc0 pinctrl pins definitions: > >> - detect pin > >> - write protect pin > >> - enable slot0 pin: this pin is

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-20 Thread boris brezillon
On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an external switch which enable mmc0 slot0 or spi

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:06 Wed 28 Aug , Boris BREZILLON wrote: > Add slot0 of mmc0 pinctrl pins definitions: > - detect pin > - write protect pin > - enable slot0 pin: this pin is connected to an external switch which >enable mmc0 slot0 or spi dataflash connected to cs3 > > The mmc0 device is not

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:06 Wed 28 Aug , Boris BREZILLON wrote: Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an external switch which enable mmc0 slot0 or spi dataflash connected to cs3 The mmc0 device is not enabled, as

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-20 Thread boris brezillon
On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an external switch which enable mmc0 slot0 or spi

Re: [PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-11-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:14 Wed 20 Nov , boris brezillon wrote: On 20/11/2013 15:59, Jean-Christophe PLAGNIOL-VILLARD wrote: On 13:06 Wed 28 Aug , Boris BREZILLON wrote: Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an

[PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an external switch which enable mmc0 slot0 or spi dataflash connected to cs3 The mmc0 device is not enabled, as it depends on the choosen functionnality (spi cs3 or mmc0

[PATCH 5/9] ARM: at91/dt: add mmc0 slot0 support to at91rm9200ek board

2013-08-28 Thread Boris BREZILLON
Add slot0 of mmc0 pinctrl pins definitions: - detect pin - write protect pin - enable slot0 pin: this pin is connected to an external switch which enable mmc0 slot0 or spi dataflash connected to cs3 The mmc0 device is not enabled, as it depends on the choosen functionnality (spi cs3 or mmc0