Re: How to support SDIO wifi/bt in DT

2014-02-05 Thread Mark Brown
On Fri, Jan 17, 2014 at 11:44:23AM +0100, Andrew Lunn wrote: > I've not looked at regulators, but i would hope it also does reference > counting of a regulators users. Yes, it does. signature.asc Description: Digital signature

Re: How to support SDIO wifi/bt in DT

2014-01-19 Thread Olof Johansson
On Sun, Jan 19, 2014 at 3:30 PM, Olof Johansson wrote: > On Mon, Jan 20, 2014 at 12:09:25AM +0100, Alexandre Belloni wrote: >> On Sun, Jan 19, 2014 at 11:29:55AM -0800, Olof Johansson wrote : >> > The "multi-slot" concept I was talking about was one host controller >> > for several physical slots.

Re: How to support SDIO wifi/bt in DT

2014-01-19 Thread Olof Johansson
On Mon, Jan 20, 2014 at 12:09:25AM +0100, Alexandre Belloni wrote: > On Sun, Jan 19, 2014 at 11:29:55AM -0800, Olof Johansson wrote : > > The "multi-slot" concept I was talking about was one host controller > > for several physical slots. Seems like at91 implements _and_ uses this > > but nobody el

Re: How to support SDIO wifi/bt in DT

2014-01-19 Thread Olof Johansson
On Sun, Jan 19, 2014 at 09:28:53PM +0100, Arnd Bergmann wrote: > On Sunday 19 January 2014, Olof Johansson wrote: > > The "multi-slot" concept I was talking about was one host controller > > for several physical slots. Seems like at91 implements and uses this > > but nobody else. However, it seems

Re: How to support SDIO wifi/bt in DT

2014-01-19 Thread Alexandre Belloni
On Sun, Jan 19, 2014 at 11:29:55AM -0800, Olof Johansson wrote : > The "multi-slot" concept I was talking about was one host controller > for several physical slots. Seems like at91 implements _and_ uses this > but nobody else. However, it seems that they allocate one mmc host per > slot, so the sa

Re: How to support SDIO wifi/bt in DT

2014-01-19 Thread Arnd Bergmann
On Sunday 19 January 2014, Olof Johansson wrote: > The "multi-slot" concept I was talking about was one host controller > for several physical slots. Seems like at91 implements and uses this > but nobody else. However, it seems that they allocate one mmc host per > slot, so the same model still wor

Re: How to support SDIO wifi/bt in DT

2014-01-19 Thread Olof Johansson
On Fri, Jan 17, 2014 at 8:58 AM, Nicolas Pitre wrote: > On Fri, 17 Jan 2014, Rob Herring wrote: > >> On Thu, Jan 16, 2014 at 9:08 PM, Nicolas Pitre wrote: >> > On Thu, 16 Jan 2014, Olof Johansson wrote: >> > >> >> "for SDIO slots" is somewhat misleading; nearly all controllers only >> >> do one s

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Nicolas Pitre
On Fri, 17 Jan 2014, Rob Herring wrote: > On Thu, Jan 16, 2014 at 9:08 PM, Nicolas Pitre wrote: > > On Thu, 16 Jan 2014, Olof Johansson wrote: > > > >> "for SDIO slots" is somewhat misleading; nearly all controllers only > >> do one slot/device per controller. The designware controller can do > >

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Rob Herring
On Thu, Jan 16, 2014 at 9:08 PM, Nicolas Pitre wrote: > On Thu, 16 Jan 2014, Olof Johansson wrote: > >> "for SDIO slots" is somewhat misleading; nearly all controllers only >> do one slot/device per controller. The designware controller can do >> multiple slots, and that adds a bit of driver and b

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Arnd Bergmann
On Friday 17 January 2014, Nicolas Pitre wrote: > On Thu, 16 Jan 2014, Olof Johansson wrote: > > > "for SDIO slots" is somewhat misleading; nearly all controllers only > > do one slot/device per controller. The designware controller can do > > multiple slots, and that adds a bit of driver and bind

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Andrew Lunn
> The TI wilink chips (TiWi, wl12xx, wl18xx) have wifi on SDIO and BT on > UART but they share the same clock. So, the next question would be what > if I just want to enable one or the other (and take that decision at > runtime) ? At least for the clock is it not an issue. The generic clock framew

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Alexandre Belloni
On Fri, Jan 17, 2014 at 06:06:41PM +0800, Chen-Yu Tsai wrote : > On Fri, Jan 17, 2014 at 5:39 PM, Alexandre Belloni > wrote: > > Maybe it is not completely related but I think it needs to be thought > > about while you are it: > > > > The TI wilink chips (TiWi, wl12xx, wl18xx) have wifi on SDIO an

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Chen-Yu Tsai
On Fri, Jan 17, 2014 at 5:39 PM, Alexandre Belloni wrote: > On Thu, Jan 16, 2014 at 12:00:47PM -0800, Olof Johansson wrote : >> On Thu, Jan 16, 2014 at 11:58 AM, Russell King - ARM Linux >> wrote: >> > On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote: >> >> We've dealt with it with

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Alexandre Belloni
On Thu, Jan 16, 2014 at 12:00:47PM -0800, Olof Johansson wrote : > On Thu, Jan 16, 2014 at 11:58 AM, Russell King - ARM Linux > wrote: > > On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote: > >> We've dealt with it with local code in our tree for Chrome OS, and I > >> suspect everyone

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Nicolas Ferre
On 17/01/2014 10:02, Alexandre Belloni : > On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote : >> "for SDIO slots" is somewhat misleading; nearly all controllers only >> do one slot/device per controller. The designware controller can do >> multiple slots, and that adds a bit of driver

Re: How to support SDIO wifi/bt in DT

2014-01-17 Thread Alexandre Belloni
On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote : > "for SDIO slots" is somewhat misleading; nearly all controllers only > do one slot/device per controller. The designware controller can do > multiple slots, and that adds a bit of driver and binding complexity > for something that s

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Nicolas Pitre
On Thu, 16 Jan 2014, Olof Johansson wrote: > "for SDIO slots" is somewhat misleading; nearly all controllers only > do one slot/device per controller. The designware controller can do > multiple slots, and that adds a bit of driver and binding complexity > for something that seemingly not a single

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Marcel Holtmann
Hi Arnd, >>> b) We need to add a way to attach a device_node to an sdio_func, >>> so that a function driver can find additional DT properties. >>> This part should be relatively simple once (a) is done and >>> should only need a little code but no new binding. The code >>> would be similar to what

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Olof Johansson
On Thu, Jan 16, 2014 at 1:46 PM, Arnd Bergmann wrote: > On Thursday 16 January 2014 09:15:17 Olof Johansson wrote: >> >> > b) We need to add a way to attach a device_node to an sdio_func, >> > so that a function driver can find additional DT properties. >> > This part should be relatively simple o

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Arnd Bergmann
On Thursday 16 January 2014 09:15:17 Olof Johansson wrote: > > > b) We need to add a way to attach a device_node to an sdio_func, > > so that a function driver can find additional DT properties. > > This part should be relatively simple once (a) is done and > > should only need a little code but n

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Russell King - ARM Linux
On Thu, Jan 16, 2014 at 12:00:47PM -0800, Olof Johansson wrote: > On Thu, Jan 16, 2014 at 11:58 AM, Russell King - ARM Linux > wrote: > > On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote: > >> We've dealt with it with local code in our tree for Chrome OS, and I > >> suspect everyone

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Olof Johansson
On Thu, Jan 16, 2014 at 11:58 AM, Russell King - ARM Linux wrote: > On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote: >> We've dealt with it with local code in our tree for Chrome OS, and I >> suspect everyone else has too. It's definitely time to solve >> generically. > > As there's

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Russell King - ARM Linux
On Thu, Jan 16, 2014 at 09:15:17AM -0800, Olof Johansson wrote: > We've dealt with it with local code in our tree for Chrome OS, and I > suspect everyone else has too. It's definitely time to solve > generically. As there's no code for any Cubox-i or Hummingboard (they're both purely DT), what thi

Re: How to support SDIO wifi/bt in DT

2014-01-16 Thread Olof Johansson
[adding devicetree and mmc lists] On Thu, Jan 16, 2014 at 6:02 AM, Arnd Bergmann wrote: > On Thursday 16 January 2014 13:36:49 Russell King - ARM Linux wrote: > >> >> The Wifi/BT chip can only be detected via probing the SDIO connection, and >> only when the device has been powered up and release