On 05/12/14 10:54, bruce bushby wrote:
> Hi
> 
> I've been using the Olimex A20-SOM and having a lot of success using the
> mainline kernel....so far everything just works so a big thank you to all
> the contributors!!
> 
> One area I'm struggling with is "gpio" I see there are various patches
> about:

mainline != 3.4.x don't confuse them

for mainline see:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/pinctrl/sunxi/pinctrl-sunxi.c

and for how to use them from userspace

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/gpio/sysfs.txt

try something like

root@lime2-2:~# cat /sys/class/gpio/gpiochip0/ngpio
288

if that works and gives you a number, then gpios are working fine and you 
can use them.

since pinctrl and the gpio susbystem are used for lots of purposes by many 
different parts of the kernel and drivers, I think it's unlikely your kernel 
would boot without it being functional

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to