Re: [PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-25 Thread Linus Walleij
On Fri, Apr 25, 2014 at 2:27 AM, Haojian Zhuang wrote: > Go it. But the gpio sysfs interface is using the gpio name with an > internal number. It'll make developer confusion since it's different > from datasheet > or schematics. Is there any plan to remove the confusion? First I am as always ver

Re: [PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-24 Thread Haojian Zhuang
On 24 April 2014 02:52, Rob Herring wrote: > On Mon, Apr 21, 2014 at 8:35 PM, Haojian Zhuang > wrote: >> If gpio base number isn't specified, the gpio base will be find from >> the end of gpio number. In order to keep with schematics, use alias >> to get the ID of gpio chip. > > NAK. This is an a

Re: [PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-24 Thread Haojian Zhuang
On 23 April 2014 21:21, Linus Walleij wrote: > On Tue, Apr 22, 2014 at 3:35 AM, Haojian Zhuang > wrote: > >> If gpio base number isn't specified, the gpio base will be find from >> the end of gpio number. In order to keep with schematics, use alias >> to get the ID of gpio chip. >> >> Signed-off-

Re: [PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-23 Thread Rob Herring
On Mon, Apr 21, 2014 at 8:35 PM, Haojian Zhuang wrote: > If gpio base number isn't specified, the gpio base will be find from > the end of gpio number. In order to keep with schematics, use alias > to get the ID of gpio chip. NAK. This is an abuse aliases. > Signed-off-by: Haojian Zhuang > ---

Re: [PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-23 Thread Linus Walleij
On Tue, Apr 22, 2014 at 3:35 AM, Haojian Zhuang wrote: > If gpio base number isn't specified, the gpio base will be find from > the end of gpio number. In order to keep with schematics, use alias > to get the ID of gpio chip. > > Signed-off-by: Haojian Zhuang The idea with GPIO numbers is not t

Re: [PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-21 Thread Baruch Siach
Hi Haojian Zhuang, On Tue, Apr 22, 2014 at 09:35:42AM +0800, Haojian Zhuang wrote: > If gpio base number isn't specified, the gpio base will be find from > the end of gpio number. In order to keep with schematics, use alias > to get the ID of gpio chip. > > Signed-off-by: Haojian Zhuang > --- >

[PATCH 1/2] gpio: pl061: get gpio base from alias id

2014-04-21 Thread Haojian Zhuang
If gpio base number isn't specified, the gpio base will be find from the end of gpio number. In order to keep with schematics, use alias to get the ID of gpio chip. Signed-off-by: Haojian Zhuang --- .../devicetree/bindings/gpio/gpio-pl061.txt| 31 ++ drivers/gpio/gpio