On 23 March 2015 at 16:45, Emilio López <[email protected]> wrote: > Hi, > > El 23/03/15 a las 11:19, Michal Suchanek escibió: >> >> Hello, >> >> I tried to load the spidev driver with the 3.4 kernel and it did .. >> nothing. >> >> So I upgraded to linux 4.0rc4 and tried to convince it to boot on the >> a10s olinuxino. >> >> Problems > > (...) >> >> 5) did not manage to get SPI working. I patched the DT with some >> random values but the driver complains that there is unsupported >> function >> >> >> https://github.com/hramrach/linux-sunxi/commit/fba83a07ce3261b77f5cd3fac43f78adee4b33dd > > > The pins you're using, PB14-PB17, don't make sense - they're not SPI pins. > Are you sure you didn't mean PB11-PB14 (CS0/CLK/MISO/MOSI, respectively)?
Yes, I tried to cut and paste the SPI from a10 to a10s and did not realize that unlike the other parts pin numbers are different. > Have a look at the User Manual as a reference: > > http://dl.linux-sunxi.org/A10s/A10s%20User%20Manual%20V1.30.pdf It's actually in the datasheet but consulting the SoC documentation is desirable in this case. > >> 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 -- 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.
