Hi,

El 24/03/15 a las 09:34, Michal Suchanek escibió:
6) I have no idea how to bind spidev (in DT?) even if spi worked


You need to declare your device, like with a properly supported device,
except your device's driver will be a spidev. See below for an example patch
from when I tested DMA on A10S

Unfortunately, spidev has no DT binding example I could find.

I got a DT node but cannot open it with my test program. It's
definitely a progress, though.

Thanks

Michal

https://github.com/hramrach/linux-sunxi/commit/18cf6cbbb63601fac50815046e002dfd8fe3a60c
https://github.com/hramrach/linux-sunxi/commit/4ccb40c2521933a737eb82b85019284ed7afb2ed

"spidev" is not a supported compatible

http://lxr.free-electrons.com/source/drivers/spi/spidev.c#L692

Have a second look at my example from earlier. You'll probably want to add your own compatible to the driver (unless you want to use a dh2228fv, that is).

Cheers,

Emilio

--
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 linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to