On Saturday, 18 January 2014 00:41:04 UTC+1, Henrik Nordström wrote: > fre 2014-01-17 klockan 04:23 -0800 skrev [email protected]: > > > On Wednesday, 8 January 2014 13:46:16 UTC+1, 郑志煜 wrote: > > > > I contacted the FAE engineer of Allwinner in monday, he said they had not > > > verified the SPI driver code. So they don't know if the SPI FDX mode > > > works.......... > > > > It's very easy to test SPI full duplex even without any SPI devices. > > Just loopback MISO and MOSI and use spi-test to send a sufficiently > > large message. > > > > https://github.com/ORSoC/spi-test > > > > If you get the exact same message back with no shifting in any direction > > then full duplex works, and nothing if MISO and MISO is not connected in > > loopback to each other. > > > > Regards > > Henrik
Well. Just tested it , the sequence is returned in fullduplex as it is sent. The weird thing is that miso and mosi are not loop back (just disconnected). I should expect to read 0x00s instead.... spi mode: 0 bits per word: 8 max speed: 500000 Hz (500 KHz) FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF DE AD BE EF BA AD F0 0D -- 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/groups/opt_out.
