Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-13 Thread Linus Walleij
On Wed, Jun 8, 2016 at 3:41 PM, Pantelis Antoniou wrote: > Devices that use interrupts usually convert the GPIO to an interrupt and use > it. > Since the xlat op will return the real GPIO spec the interrupt conversion > will work. > > Bare interrupt lines are

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-13 Thread Linus Walleij
On Wed, Jun 8, 2016 at 3:41 PM, Pantelis Antoniou wrote: > Devices that use interrupts usually convert the GPIO to an interrupt and use > it. > Since the xlat op will return the real GPIO spec the interrupt conversion > will work. > > Bare interrupt lines are sort-of out of fashion nowadays I

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-08 Thread Pantelis Antoniou
Hi Rob, > On Jun 8, 2016, at 18:18 , Rob Herring wrote: > > On Wed, Jun 8, 2016 at 8:41 AM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Jun 8, 2016, at 00:00 , Rob Herring wrote: >>> >>> +Mark R >>> >>> On

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-08 Thread Pantelis Antoniou
Hi Rob, > On Jun 8, 2016, at 18:18 , Rob Herring wrote: > > On Wed, Jun 8, 2016 at 8:41 AM, Pantelis Antoniou > wrote: >> Hi Rob, >> >>> On Jun 8, 2016, at 00:00 , Rob Herring wrote: >>> >>> +Mark R >>> >>> On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou >>> wrote: In certain cases

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-08 Thread Rob Herring
On Wed, Jun 8, 2016 at 8:41 AM, Pantelis Antoniou wrote: > Hi Rob, > >> On Jun 8, 2016, at 00:00 , Rob Herring wrote: >> >> +Mark R >> >> On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou >> wrote: >>> In

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-08 Thread Rob Herring
On Wed, Jun 8, 2016 at 8:41 AM, Pantelis Antoniou wrote: > Hi Rob, > >> On Jun 8, 2016, at 00:00 , Rob Herring wrote: >> >> +Mark R >> >> On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou >> wrote: >>> In certain cases it makes sense to create cascaded GPIO which >>> are not real GPIOs, merely

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-08 Thread Pantelis Antoniou
Hi Rob, > On Jun 8, 2016, at 00:00 , Rob Herring wrote: > > +Mark R > > On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou > wrote: >> In certain cases it makes sense to create cascaded GPIO which >> are not real GPIOs, merely point to the

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-08 Thread Pantelis Antoniou
Hi Rob, > On Jun 8, 2016, at 00:00 , Rob Herring wrote: > > +Mark R > > On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou > wrote: >> In certain cases it makes sense to create cascaded GPIO which >> are not real GPIOs, merely point to the real backend GPIO chip. > > In what cases? Make it

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-07 Thread Rob Herring
+Mark R On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou wrote: > In certain cases it makes sense to create cascaded GPIO which > are not real GPIOs, merely point to the real backend GPIO chip. In what cases? Make it clear what this is for. Connectors of course,

Re: [PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-07 Thread Rob Herring
+Mark R On Fri, Jun 3, 2016 at 3:26 PM, Pantelis Antoniou wrote: > In certain cases it makes sense to create cascaded GPIO which > are not real GPIOs, merely point to the real backend GPIO chip. In what cases? Make it clear what this is for. Connectors of course, but are there any other use

[PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-03 Thread Pantelis Antoniou
In certain cases it makes sense to create cascaded GPIO which are not real GPIOs, merely point to the real backend GPIO chip. In order to support this, cascaded of_xlate lookup need to be performed. For example let's take a connector that we want to abstract having two GPIO pins from different

[PATCH 2/2] gpio: Support cascaded GPIO chip lookup for OF

2016-06-03 Thread Pantelis Antoniou
In certain cases it makes sense to create cascaded GPIO which are not real GPIOs, merely point to the real backend GPIO chip. In order to support this, cascaded of_xlate lookup need to be performed. For example let's take a connector that we want to abstract having two GPIO pins from different