[PATCH] powerpc: Specify GPIO number base for controller in DT
Matt Sealey
matt at genesi-usa.com
Fri Oct 24 08:35:11 EST 2008
Kumar Gala wrote:
>
> On Oct 23, 2008, at 7:27 AM, Wolfgang Ocker wrote:
>
>> The GPIOLIB allows the specification of a base gpio number for a
>> controller. That is not possible using OF. Instead, free gpio numbers
>> are assigned.
>>
>> In order to allow static, predefined gpio numbers, a base property in
>> the gpio controller node specifies the first gpio number.
See my latest mail.
I don't think it's enough to say which pin the GPIOs exposed
start at; you need some sort of mask, or array of applicable
GPIOs so that GPIOLIB can check which perhaps 3 pins out of a
possible 32 are allocated to a controller and usable (these
may be pin 5, pin 9 and pin 20, so a "base" of pin 5 would be
outrageously inadequate).
--
Matt Sealey <matt at genesi-usa.com>
Genesi, Manager, Developer Relations
More information about the Linuxppc-dev
mailing list