How to support SDIO wifi/bt in DT
From: andrew@lunn.ch (Andrew Lunn)
Date: 2014-01-17 10:44:23
Also in:
linux-devicetree, linux-mmc
From: andrew@lunn.ch (Andrew Lunn)
Date: 2014-01-17 10:44:23
Also in:
linux-devicetree, linux-mmc
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 framework does "reference" counting. It will only turn the clock off when all users have said to turn it off. So put a phandle to the clock in all nodes which use it. I've not looked at regulators, but i would hope it also does reference counting of a regulators users. Andrew