Hello.
There are SPI2_MOSI, SPI2_MISO, SPI2_CS1 on the PB2, PB3, PB10 respectively. There are described at http://linux-sunxi.org/A13/PIO (http://linux-sunxi.org/A13/PIO) and at Olinuxino's schematic.
But there are no at A13 datasheet.
Also, it's very strange, that there is no SPI2_CLK pin at port B.
Does anybody know, does these pins actually exist?
The connect to the UETX connector.
the A13 User Manual - v1.2 (2013-08-08).pdf
shows SPI2_SCLK_CFG_REG as offset 0xA8 figure 6.4.28. pg73
the interupts pg 111
in the A13-OLINUXINO.pdf
it says that the clock is on pin 115 for the A13 which is the PE0
I think the datasheet is a little confusing, incomplete or even wrong.
To use SPI2 I think I'd try port E:
port pin what
PE0 114 SPI2_CS0
PE1 115 SPI2_CLK
PE2 116 SPI2_MOSI
PE3 117 SPI2_MISO
but maybe
PB10 10 SPI2_CS1
PB2 103 SPI2_MOSI
PB3 150 SPI2_MISO
I didn't see the CLK on PB and the CS1 looks like a typo.
You may have to try a test program or two! Please report back as I expect others will wonder sooner or later.
Oh - you might check the Linux driver(s) in case they cover this.
John
It's obviously, that SPI2 is on port E, my question is about multiplexing it to port B.
A13 User Manual and Data Sheet both contain description SPI2_CS1 on PB10 only, while linux-sunxi.org has a description of SPI2 MOSI and MISO pins.
(http://img20.imageshack.us/img20/8290/spi2sunxi.png)
Where is the error?
As said BJFreeman, SPI2 is in UEXT connector.
https://dl.dropboxusercontent.com/u/22273442/A13/uext.png (https://dl.dropboxusercontent.com/u/22273442/A13/uext.png)