Re: Powering OMAP's pins

2012-09-28 Thread Tomi Valkeinen
On Thu, 2012-09-27 at 11:51 -0700, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [120927 11:45]: * Tomi Valkeinen tomi.valkei...@ti.com [120927 00:20]: I could be mistaken how to HW works (but it does work like that for dss), but sounds to me that uart and gpio drivers (and

Re: Powering OMAP's pins

2012-09-28 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [120927 23:15]: On Thu, 2012-09-27 at 11:51 -0700, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [120927 11:45]: * Tomi Valkeinen tomi.valkei...@ti.com [120927 00:20]: I could be mistaken how to HW works (but it does work like that for

Re: Powering OMAP's pins

2012-09-27 Thread Tomi Valkeinen
On Wed, 2012-09-26 at 11:59 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120926 00:06]: So if I want to use parallel dss output, which uses dss_data0 pin, omapdss driver needs to enable vdda_dsi on omap3430, even though there's no other use for vdda_dsi in the

Re: Powering OMAP's pins

2012-09-27 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [120927 00:20]: On Wed, 2012-09-26 at 11:59 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120926 00:06]: So if I want to use parallel dss output, which uses dss_data0 pin, omapdss driver needs to enable vdda_dsi on omap3430,

Re: Powering OMAP's pins

2012-09-27 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [120927 11:45]: * Tomi Valkeinen tomi.valkei...@ti.com [120927 00:20]: I could be mistaken how to HW works (but it does work like that for dss), but sounds to me that uart and gpio drivers (and perhaps some others, I didn't go through all the pins) need

Re: Powering OMAP's pins

2012-09-26 Thread Tomi Valkeinen
On Tue, 2012-09-25 at 12:07 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120925 10:06]: On Tue, 2012-09-25 at 08:38 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120925 03:22]: Hi Tony, Each pin of OMAP requires a particular power to

Re: Powering OMAP's pins

2012-09-26 Thread Linus Walleij
On Tue, Sep 25, 2012 at 7:05 PM, Tomi Valkeinen tomi.valkei...@ti.com wrote: So when I call pm_runtime_get in the omapdss driver, I imagine that the runtime PM and pinctrl would together handle muxing the pins for omapdss's use, and also enable the relevant regulators to make the pins usable.

Re: Powering OMAP's pins

2012-09-26 Thread Tomi Valkeinen
On Wed, 2012-09-26 at 13:46 +0200, Linus Walleij wrote: On Tue, Sep 25, 2012 at 7:05 PM, Tomi Valkeinen tomi.valkei...@ti.com wrote: So when I call pm_runtime_get in the omapdss driver, I imagine that the runtime PM and pinctrl would together handle muxing the pins for omapdss's use, and

Re: Powering OMAP's pins

2012-09-26 Thread Linus Walleij
On Wed, Sep 26, 2012 at 2:56 PM, Tomi Valkeinen tomi.valkei...@ti.com wrote: [Me] You can very well do clocks and regulators in these functions as well. That's not really what I mean. The regulators in question are OMAP version specific, so the driver shouldn't know which regulators are

Re: Powering OMAP's pins

2012-09-26 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [120926 00:06]: On Tue, 2012-09-25 at 12:07 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120925 10:06]: On Tue, 2012-09-25 at 08:38 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120925 03:22]: Hi

Re: Powering OMAP's pins

2012-09-26 Thread Tony Lindgren
* Linus Walleij linus.wall...@linaro.org [120926 06:28]: On Wed, Sep 26, 2012 at 2:56 PM, Tomi Valkeinen tomi.valkei...@ti.com wrote: [Me] You can very well do clocks and regulators in these functions as well. That's not really what I mean. The regulators in question are OMAP version

Powering OMAP's pins

2012-09-25 Thread Tomi Valkeinen
Hi Tony, Each pin of OMAP requires a particular power to be enabled for the pin to function (Ball Characteristics table from data manual). Is there a plan how this is managed with pinctrl? Currently each driver needs to make sure the correct regulators are enabled for the pins it uses, which is

Re: Powering OMAP's pins

2012-09-25 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [120925 03:22]: Hi Tony, Each pin of OMAP requires a particular power to be enabled for the pin to function (Ball Characteristics table from data manual). Is there a plan how this is managed with pinctrl? Currently each driver needs to make sure the

Re: Powering OMAP's pins

2012-09-25 Thread Tomi Valkeinen
On Tue, 2012-09-25 at 08:38 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120925 03:22]: Hi Tony, Each pin of OMAP requires a particular power to be enabled for the pin to function (Ball Characteristics table from data manual). Is there a plan how this is managed

Re: Powering OMAP's pins

2012-09-25 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [120925 10:06]: On Tue, 2012-09-25 at 08:38 -0700, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [120925 03:22]: Hi Tony, Each pin of OMAP requires a particular power to be enabled for the pin to function (Ball Characteristics