Re: [linux-sunxi] Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-28 Thread Chen-Yu Tsai
On Wed, Apr 23, 2014 at 9:49 AM, Alexandre Courbot wrote: > On Wed, Apr 23, 2014 at 12:02 AM, Linus Walleij > wrote: >> On Tue, Apr 15, 2014 at 8:41 AM, Chen-Yu Tsai wrote: >> >>> This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO >>> phandles by name only, through gpios/gpio-

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-22 Thread Alexandre Courbot
On Wed, Apr 23, 2014 at 12:02 AM, Linus Walleij wrote: > On Tue, Apr 15, 2014 at 8:41 AM, Chen-Yu Tsai wrote: > >> This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO >> phandles by name only, through gpios/gpio-names, and not by index. >> >> Signed-off-by: Chen-Yu Tsai > > Lik

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-22 Thread Linus Walleij
On Tue, Apr 15, 2014 at 8:41 AM, Chen-Yu Tsai wrote: > This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO > phandles by name only, through gpios/gpio-names, and not by index. > > Signed-off-by: Chen-Yu Tsai Like Alexandre I have no strong opinion on this alternative scheme.

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-16 Thread Chen-Yu Tsai
Hi, On Wed, Apr 16, 2014 at 3:06 PM, Alexandre Courbot wrote: > On Wed, Apr 16, 2014 at 3:12 PM, Alexandre Courbot wrote: >> On Tue, Apr 15, 2014 at 11:20 PM, Maxime Ripard >> wrote: >>> Hi Chen-Yu, >>> >>> On Tue, Apr 15, 2014 at 02:41:35PM +0800, Chen-Yu Tsai wrote: This patch provides o

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-16 Thread Alexandre Courbot
On Wed, Apr 16, 2014 at 3:12 PM, Alexandre Courbot wrote: > On Tue, Apr 15, 2014 at 11:20 PM, Maxime Ripard > wrote: >> Hi Chen-Yu, >> >> On Tue, Apr 15, 2014 at 02:41:35PM +0800, Chen-Yu Tsai wrote: >>> This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO >>> phandles by name on

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-15 Thread Alexandre Courbot
On Tue, Apr 15, 2014 at 11:20 PM, Maxime Ripard wrote: > Hi Chen-Yu, > > On Tue, Apr 15, 2014 at 02:41:35PM +0800, Chen-Yu Tsai wrote: >> This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO >> phandles by name only, through gpios/gpio-names, and not by index. > > IIRC, gpios only

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-15 Thread Maxime Ripard
Hi Chen-Yu, On Tue, Apr 15, 2014 at 02:41:35PM +0800, Chen-Yu Tsai wrote: > This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO > phandles by name only, through gpios/gpio-names, and not by index. IIRC, gpios only uses the *-gpios properties, and not gpios/gpio-names pattern see

[PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

2014-04-15 Thread Chen-Yu Tsai
This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO phandles by name only, through gpios/gpio-names, and not by index. Signed-off-by: Chen-Yu Tsai --- drivers/gpio/gpiolib-of.c | 48 +++ include/linux/of_gpio.h | 3 +++ 2 files cha