On 03/04/2014 01:54 PM, Alexander Holler wrote:
Am 03.03.2014 23:49, schrieb Alexander Holler:
BTW., I wonder how to use e.g. GP6_7 (which I calc as no 103 by using
6*16+7)?

Using e.g.

     gpios = <&gpio 103 GPIO_ACTIVE_HIGH>;

in a led definition (for da850-evm) fails because 103 is greater than
the max. limit of 32 as set for every chip in davinci_gpio_probe() in
gpio-davinci.c.

To be a bit more precise, I wonder how one is able to use one of those 4
other gpio_chips gpio-davinci registers through an entry with ti,ngpio
set to 144, like it's done in da850.dtsi. With such an entry,
gpio-davinci registers 5 gpio_chips (4 with 32 gpios and one with 16
gpios), but I think currently one is only able to use the first 32 gpios
from within a dt.

Maybe I'm missing some magic somewhere.

I've added two other people to cc from which I think they might be
interested in that topic.

The gpio_chip of_xlate staff has to be added to handle this.
(gpio-pxa.c can be used as ref)


Regards,

Alexander Holler


_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to