[MinnowBoard] MinnowBoard MAX getting started with GPIO

Martin Oldfield elinux-mbmx-2014-11 at mjoldfield.com
Tue Nov 11 00:14:13 UTC 2014


Thanks for the pointers.

I compiled a new kernel from the 3.18rc3 source and made some progress.

There are now gpio devices in /sys:

seabass mjo # ls /sys/class/gpio/
export       gpiochip338/ gpiochip382/ gpiochip410/ unexport     

And you can export things:
seabass mjo # echo 338 > /sys/class/gpio/export 
seabass mjo # ls /sys/class/gpio/
export       gpio338/     gpiochip338/ gpiochip382/ gpiochip410/ unexport     

But the GPIO numbers don't match the documentation:
seabass mjo # cat /sys/class/gpio/gpiochip*/base
338
382
410
seabass mjo # cat /sys/class/gpio/gpiochip*/ngpio
44
28
102

Is this to be expected ?

Cheers,
--
M.






--
View this message in context: http://minnowboard.57273.x6.nabble.com/MinnowBoard-MinnowBoard-MAX-getting-started-with-GPIO-tp736p750.html
Sent from the MinnowBoard mailing list archive at Nabble.com.


More information about the elinux-MinnowBoard mailing list