Re: DT GPIO numbering?

2012-08-14 Thread Johannes Stezenbach
On Tue, Aug 14, 2012 at 12:00:23PM +0200, Linus Walleij wrote: > On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach wrote: > > > Actually I think the kernel internal GPIO numbers shouldn't be in the > > sysfs API, instead userspace should use the names. > > This is true, but we cannot remove

Re: DT GPIO numbering?

2012-08-14 Thread Linus Walleij
On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach wrote: > Actually I think the kernel internal GPIO numbers shouldn't be in the > sysfs API, instead userspace should use the names. This is true, but we cannot remove these numbers because they are now in Documentation/ABI/testing/sysfs-gpio

Re: DT GPIO numbering?

2012-08-14 Thread Linus Walleij
On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach j...@sig21.net wrote: Actually I think the kernel internal GPIO numbers shouldn't be in the sysfs API, instead userspace should use the names. This is true, but we cannot remove these numbers because they are now in

Re: DT GPIO numbering?

2012-08-14 Thread Johannes Stezenbach
On Tue, Aug 14, 2012 at 12:00:23PM +0200, Linus Walleij wrote: On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach j...@sig21.net wrote: Actually I think the kernel internal GPIO numbers shouldn't be in the sysfs API, instead userspace should use the names. This is true, but we cannot

Re: DT GPIO numbering?

2012-08-10 Thread Johannes Stezenbach
On Mon, Aug 06, 2012 at 07:10:00PM +0800, Mitch Bradley wrote: > On 8/6/2012 5:58 PM, Johannes Stezenbach wrote: > > On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: > >> On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren > >> wrote: > >> > >>> I can't comment on the sysfs-vs-dev

Re: DT GPIO numbering?

2012-08-10 Thread Johannes Stezenbach
On Mon, Aug 06, 2012 at 07:10:00PM +0800, Mitch Bradley wrote: On 8/6/2012 5:58 PM, Johannes Stezenbach wrote: On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren swar...@wwwdotorg.org wrote: I can't comment on the sysfs-vs-dev

Re: DT GPIO numbering?

2012-08-06 Thread Mitch Bradley
On 8/6/2012 5:58 PM, Johannes Stezenbach wrote: > On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: >> On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren wrote: >> >>> I can't comment on the sysfs-vs-dev interface location, but I don't >>> think it addresses Johannes' issue; finding out

Re: DT GPIO numbering?

2012-08-06 Thread Johannes Stezenbach
On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: > On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren wrote: > > > I can't comment on the sysfs-vs-dev interface location, but I don't > > think it addresses Johannes' issue; finding out which GPIO IDs are > > provided by which devices. >

Re: DT GPIO numbering?

2012-08-06 Thread Linus Walleij
On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren wrote: > I can't comment on the sysfs-vs-dev interface location, but I don't > think it addresses Johannes' issue; finding out which GPIO IDs are > provided by which devices. > > Perhaps in each device's sysfs node, there should be some information

Re: DT GPIO numbering?

2012-08-06 Thread Linus Walleij
On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren swar...@wwwdotorg.org wrote: I can't comment on the sysfs-vs-dev interface location, but I don't think it addresses Johannes' issue; finding out which GPIO IDs are provided by which devices. Perhaps in each device's sysfs node, there should be

Re: DT GPIO numbering?

2012-08-06 Thread Johannes Stezenbach
On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren swar...@wwwdotorg.org wrote: I can't comment on the sysfs-vs-dev interface location, but I don't think it addresses Johannes' issue; finding out which GPIO IDs are provided by

Re: DT GPIO numbering?

2012-08-06 Thread Mitch Bradley
On 8/6/2012 5:58 PM, Johannes Stezenbach wrote: On Mon, Aug 06, 2012 at 08:35:51AM +0200, Linus Walleij wrote: On Mon, Aug 6, 2012 at 4:18 AM, Stephen Warren swar...@wwwdotorg.org wrote: I can't comment on the sysfs-vs-dev interface location, but I don't think it addresses Johannes' issue;

Re: DT GPIO numbering?

2012-08-05 Thread Stephen Warren
On 08/05/2012 04:06 AM, Linus Walleij wrote: > On Wed, Aug 1, 2012 at 5:22 PM, Johannes Stezenbach wrote: > >> I'm currently learning how Linux devicetree support works, >> here is one question I couldn't find an answer for. >> >> I understand that within the devicetree GPIOs are referenced by

Re: DT GPIO numbering?

2012-08-05 Thread Linus Walleij
On Wed, Aug 1, 2012 at 5:22 PM, Johannes Stezenbach wrote: > I'm currently learning how Linux devicetree support works, > here is one question I couldn't find an answer for. > > I understand that within the devicetree GPIOs are referenced by phandle, > thus the numbers are irrelevant. However,

Re: DT GPIO numbering?

2012-08-05 Thread Linus Walleij
On Wed, Aug 1, 2012 at 5:22 PM, Johannes Stezenbach j...@sig21.net wrote: I'm currently learning how Linux devicetree support works, here is one question I couldn't find an answer for. I understand that within the devicetree GPIOs are referenced by phandle, thus the numbers are irrelevant.

Re: DT GPIO numbering?

2012-08-05 Thread Stephen Warren
On 08/05/2012 04:06 AM, Linus Walleij wrote: On Wed, Aug 1, 2012 at 5:22 PM, Johannes Stezenbach j...@sig21.net wrote: I'm currently learning how Linux devicetree support works, here is one question I couldn't find an answer for. I understand that within the devicetree GPIOs are referenced

DT GPIO numbering?

2012-08-01 Thread Johannes Stezenbach
Hi, I'm currently learning how Linux devicetree support works, here is one question I couldn't find an answer for. I understand that within the devicetree GPIOs are referenced by phandle, thus the numbers are irrelevant. However, in sysfs the number is what is used to access the GPIO, e.g. for

DT GPIO numbering?

2012-08-01 Thread Johannes Stezenbach
Hi, I'm currently learning how Linux devicetree support works, here is one question I couldn't find an answer for. I understand that within the devicetree GPIOs are referenced by phandle, thus the numbers are irrelevant. However, in sysfs the number is what is used to access the GPIO, e.g. for