Can't get response from SPI Olinuxino A13 SOM 256

Started by nafta86, June 23, 2015, 07:09:19 PM

Previous topic - Next topic

nafta86

Hi,
I am using the A13-SOM-256, with Hynix RAM on board, with debian running from the sd card downloaded here: https://drive.google.com/file/d/0B-bAEPML8fwleUpCV3lJSzZHc0U/edit?usp=sharing.

I installed that version to make the job simpler since I am working on a remote device. Then I realized that with this SPI configuration:


[spi2_para]
spi_used = 1
spi_cs_bitmap = 1
spi_cs0 = port:PB10<2><default><default><default>
spi_sclk = port:PE01<4><default><default><default>
spi_mosi = port:PB02<4><default><default><default>
spi_miso = port:PB03<4><default><default><default>

[spi_devices]
spi_dev_num = 1

[spi_board0]
modalias = "spidev"
max_speed_hz = 20000000
bus_num = 2
chip_select = 0
mode = 1
full_duplex = 1
manual_cs = 0


the SPI sunxi driver is correctly loaded and the SPI slave devices has been found. After that I can't
get the SPI responding. Is there something wrong in the pin assignement? Or, I need to recompile the kernel
and load the spi_sunxi driver as a module?

Thanks in advance