Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-16 Thread Linus Walleij
On Mon, May 14, 2012 at 8:38 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 05/12/2012 05:49 PM, Linus Walleij wrote: We have some pinctrl drivers implementing gpiolib too already, and it's unavoidable I think, as some recent discussion about matcing struct gpio_chip and pinctrl GPIO

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-16 Thread Stephen Warren
On 05/16/2012 01:14 AM, Linus Walleij wrote: On Mon, May 14, 2012 at 8:38 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 05/12/2012 05:49 PM, Linus Walleij wrote: ... Maybe -simple isn't such a good name for this thing. Noone thinks any kind of pin control is simple in any sense of the

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-15 Thread Tony Lindgren
* Stephen Warren swar...@wwwdotorg.org [120514 11:42]: On 05/12/2012 05:49 PM, Linus Walleij wrote: On Thu, May 10, 2012 at 7:05 PM, Stephen Warren swar...@wwwdotorg.org wrote: Also, were you intending pinctrl-simple to actually be the GPIO controller itself? That'd be another case

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-14 Thread Stephen Warren
On 05/12/2012 05:49 PM, Linus Walleij wrote: On Thu, May 10, 2012 at 7:05 PM, Stephen Warren swar...@wwwdotorg.org wrote: Also, were you intending pinctrl-simple to actually be the GPIO controller itself? That'd be another case that one might consider fairly simple, but then extends to being

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-12 Thread Linus Walleij
On Thu, May 10, 2012 at 7:05 PM, Stephen Warren swar...@wwwdotorg.org wrote: Also, were you intending pinctrl-simple to actually be the GPIO controller itself? That'd be another case that one might consider fairly simple, but then extends to being gpio-simple as well as pinctrl-simple... We

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-11 Thread Stephen Warren
On 05/10/2012 11:27 AM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120510 10:09]: On 05/09/2012 02:49 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120509 13:22]: On 05/04/2012 04:08 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120504

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-11 Thread Tony Lindgren
* Stephen Warren swar...@wwwdotorg.org [120511 12:21]: The mapping of GPIO to pinctrl pins would presumably be driven solely by the HW design of the pin controller and GPIO, and not by the mux selection in the pin controller (otherwise, I'd argue this isn't a simple case that should be

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-11 Thread Stephen Warren
On 05/11/2012 01:51 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120511 12:21]: The mapping of GPIO to pinctrl pins would presumably be driven solely by the HW design of the pin controller and GPIO, and not by the mux selection in the pin controller (otherwise, I'd argue

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-10 Thread Stephen Warren
On 05/09/2012 02:49 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120509 13:22]: On 05/04/2012 04:08 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120504 11:59]: On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-09 Thread Stephen Warren
On 05/04/2012 03:57 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120504 12:27]: On 05/02/2012 11:24 AM, Tony Lindgren wrote: diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-simple.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-simple.txt ... On

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-09 Thread Stephen Warren
On 05/04/2012 04:08 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120504 11:59]: On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was thinking to do

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-09 Thread Stephen Warren
On 05/04/2012 08:04 PM, Jean-Christophe PLAGNIOL-VILLARD wrote: On 12:55 Fri 04 May , Stephen Warren wrote: On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-09 Thread Tony Lindgren
* Stephen Warren swar...@wwwdotorg.org [120509 13:22]: On 05/04/2012 04:08 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120504 11:59]: On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-09 Thread Tony Lindgren
* Linus Walleij linus.wall...@linaro.org [120509 02:13]: On Fri, May 4, 2012 at 5:03 PM, Tony Lindgren t...@atomide.com wrote: Also I think we should let the pinctrl core eventually manage the pins more too. Right now the pins are a static array in the driver, which makes things

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-09 Thread Tony Lindgren
* Stephen Warren swar...@wwwdotorg.org [120509 13:19]: On 05/04/2012 03:57 PM, Tony Lindgren wrote: * Stephen Warren swar...@wwwdotorg.org [120504 12:27]: On 05/02/2012 11:24 AM, Tony Lindgren wrote: diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-simple.txt

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Tony Lindgren
* Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120503 22:08]: In my mind in the driver we do not have to care how to list register/unregister the group. We just need to be able to do this pinctrl_register_group(...) or pinctrl_unregistewr_group(...) On at91 we have this

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:03 Fri 04 May , Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120503 22:08]: In my mind in the driver we do not have to care how to list register/unregister the group. We just need to be able to do this pinctrl_register_group(...) or

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Tony Lindgren
* Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was thinking to do like on gpio uart { pin = pioA 12 {pararms} } Hmm I assume the 12 above the gpio number? no pin number in the bank

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:34 Fri 04 May , Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was thinking to do like on gpio uart { pin = pioA 12 {pararms} } Hmm I

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Stephen Warren
On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was thinking to do like on gpio uart { pin = pioA 12 {pararms} } Hmm I assume the 12 above the gpio number? no

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Stephen Warren
On 05/02/2012 11:24 AM, Tony Lindgren wrote: Add simple pinctrl driver using device tree data. Currently this driver only works on omap2+ series of processors, where there is either an 8 or 16-bit padconf register for each pin. Support for other similar pinmux controllers could be added.

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Tony Lindgren
* Stephen Warren swar...@wwwdotorg.org [120504 12:27]: On 05/02/2012 11:24 AM, Tony Lindgren wrote: diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-simple.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-simple.txt +Required properties: +- compatible : one of:

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Tony Lindgren
* Stephen Warren swar...@wwwdotorg.org [120504 11:59]: On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was thinking to do like on gpio uart { pin = pioA 12

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-04 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:55 Fri 04 May , Stephen Warren wrote: On 05/04/2012 10:34 AM, Tony Lindgren wrote: * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120504 08:58]: On 08:03 Fri 04 May , Tony Lindgren wrote: so I was thinking to do like on gpio uart { pin = pioA 12 {pararms}

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, I really like it I was working on something simillar but can we split the group management so we can use it on other bindings Best Regards, J. On 10:24 Wed 02 May , Tony Lindgren wrote: Add simple pinctrl driver using device tree data. Currently

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-03 Thread Tony Lindgren
Hi, * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120503 00:16]: I really like it I was working on something simillar but can we split the group management so we can use it on other bindings Hmm I'm not sure I follow on the group management

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-03 Thread Stephen Warren
On 05/03/2012 09:27 AM, Tony Lindgren wrote: Hi, * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120503 00:16]: I really like it I was working on something simillar but can we split the group management so we can use it on other bindings Hmm I'm not sure

Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports omap2+ padconf

2012-05-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:34 Thu 03 May , Stephen Warren wrote: On 05/03/2012 09:27 AM, Tony Lindgren wrote: Hi, * Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com [120503 00:16]: I really like it I was working on something simillar but can we split the group management so we