Hi Alexander, On Tue, Mar 4, 2014 at 5:24 PM, Alexander Holler <hol...@ahsoftware.de> 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. > You got it correct it creates 5 gpio chips, with each gpio group containing 32 gpio as per Davinci GPIO register architecture (GPIO control register) Currently from all the GPIO's can be used, for example the dip switch (S7-8 gpio pin 116 ) you can use the patch at [1] for testing on da850 evm.
[1] http://git.linuxtv.org/mhadli/v4l-dvb-davinci_devices.git/commitdiff/75575f7b34d094677546f7ed094af107ebdc1e7d > 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. > > 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