got my bone a week ago and I'm quite happy with it. But now I came to a
point, where I am stuck - rather linux related than to the bone but maybe
some one here could help. I have Microchip ENC28J60 MAC/PHY controller that
I would like to attach - but how? There is a kernel driver for it, but I
have no plan how to configure it. Right now I managed to compile my own
debian for this board and got everything running quite well.
To do it in the kernel, you'll likely need to patch the board file
with platform data. When the device tree stuff for SPI is all done, I
think this will be avoidable, but not today. Unlike I2C, the bus
configuration isn't global/shared, so you'll need to provide the
details in the board.c platform data.
The kernel has support for the device and spi in general, but how do I tell
the driver which SPI port to use? I know there must be settings for the
pinmux and there must be a way to tell the driver which SPI port and mode to
Apart from that, is there any example code for userland SPI?
First Google result: http://communistcode.co.uk/blog/blogPost.php?blogPostID=1
Pins aren't right, but much of this translates to the Bone: