Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-31 Thread Alexandre Courbot
On Fri, Oct 31, 2014 at 6:49 PM, Linus Walleij wrote: > On Tue, Oct 28, 2014 at 12:05 AM, Matthias Klein > wrote: >> Am 27.10.2014 um 23:44 schrieb Stephen Warren: > >>> What's the motivation for this? The GPIO IDs should all come from DT, >>> which encodes everything as an ID relative to a parti

Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-31 Thread Linus Walleij
On Tue, Oct 28, 2014 at 12:05 AM, Matthias Klein wrote: > Am 27.10.2014 um 23:44 schrieb Stephen Warren: >> What's the motivation for this? The GPIO IDs should all come from DT, >> which encodes everything as an ID relative to a particular controllers, and >> hence the actual value of the base ad

Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-28 Thread Stephen Warren
On 10/28/2014 01:03 AM, Matthias Klein wrote: > > Am 28.10.2014 um 01:00 schrieb Stephen Warren: >> On 10/27/2014 05:05 PM, Matthias Klein wrote: >> >>> - To be in sync with the GPIO numbers in the datasheet / documentation >> >> I assume that's only relevant because of the second point; the GPIO

Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-28 Thread Matthias Klein
Am 28.10.2014 um 01:00 schrieb Stephen Warren: On 10/27/2014 05:05 PM, Matthias Klein wrote: - To be in sync with the GPIO numbers in the datasheet / documentation I assume that's only relevant because of the second point; the GPIO IDs in DT files already match the datasheet. - For userl

Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-27 Thread Stephen Warren
On 10/27/2014 05:05 PM, Matthias Klein wrote: Am 27.10.2014 um 23:44 schrieb Stephen Warren: On 10/27/2014 04:09 PM, Matthias Klein wrote: Numerate the GPIOs from 0..53 instead of 202..255. What's the motivation for this? The GPIO IDs should all come from DT, which encodes everything as an I

Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-27 Thread Matthias Klein
Am 27.10.2014 um 23:44 schrieb Stephen Warren: On 10/27/2014 04:09 PM, Matthias Klein wrote: Numerate the GPIOs from 0..53 instead of 202..255. What's the motivation for this? The GPIO IDs should all come from DT, which encodes everything as an ID relative to a particular controllers, and h

Re: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

2014-10-27 Thread Stephen Warren
On 10/27/2014 04:09 PM, Matthias Klein wrote: Numerate the GPIOs from 0..53 instead of 202..255. What's the motivation for this? The GPIO IDs should all come from DT, which encodes everything as an ID relative to a particular controllers, and hence the actual value of the base address should