[PATCH] powerpc: Specify GPIO number base for controller in DT

Wolfgang Ocker weo at reccoware.de
Sat Oct 25 03:10:19 EST 2008


On Thu, 2008-10-23 at 16:35 -0500, Matt Sealey 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).

I'm not sure what you mean. That "base" is used in gpiochip_add() when
registering the gpio controller. There is no magic with a mask or so.

What do I miss?

Thanks,
Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20081024/4b89d57a/attachment.pgp>


More information about the Linuxppc-dev mailing list