Am 04.03.2014 16:12, schrieb Grygorii Strashko:
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)
Sounds like what I've thought. I've debugged it yesterday evening down
to of_gpio_simple_xlate() where it ends because the gpio number 103 is
greater than ngpio which is 32. The result is an always defered probe.
I haven't noticed it before, because I wasn't sure until when it is
supposed to be defered, as I first had to solve some other problems
while trying to boot a dt-davinci-kernel here.
Regards,
Alexander Holler
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source