Sorry, you need to enable JavaScript to visit this website.

SPI init error -13 & Connection timed out

Unsolved
2 posts / 0 new
valentino.ricci's picture
valentino.ricci
Junior(0)
SPI init error -13 & Connection timed out

I'm creating a Microzed 7010 project using petalinux 2016.3 and linux 4.9 (from github master).
In my project I have 8 spi from AXI QUAD SPI.
Starting linux I obtain error -13 in probe.
I solved it using the spi-xilinx.c from linux 4.6.
Now I have:

spidev spi32766.0: buggy DT: spidev listed directly in DT

spidev spi32765.0: buggy DT: spidev listed directly in DT

spidev spi32764.0: buggy DT: spidev listed directly in DT

spidev spi32763.0: buggy DT: spidev listed directly in DT

spidev spi32762.0: buggy DT: spidev listed directly in DT

spidev spi32761.0: buggy DT: spidev listed directly in DT

spidev spi32760.0: buggy DT: spidev listed directly in DT

spidev spi32759.0: buggy DT: spidev listed directly in DT

 

but 

 

# spidev_test -D /dev/spidev32759.0

spi mode: 0x0

bits per word: 8

max speed: 500000 Hz (500 KHz)

spidev spi32759.0: SPI transfer timed out

can't send spi message: Connection timed out

Aborted

 

# cat /dev/spidev32759.0

spidev spi32759.0: SPI transfer timed out

cat: read error: Connection timed out

 

What can I do? I use AXI Interrupt Controller...

 

 

 

valentino.ricci's picture
valentino.ricci
Junior(0)
AXI Interrupt Controller (INTC) v4.1 (2016.3)

The problem is related to AXI Interrupt Controller (INTC) v4.1.
Same Linux configuration works fine on ZedBaord without AXI Interrupt Controller (INTC) v4.1.
Once I add the AXI Interrupt Controller (INTC) v4.1 (as is), I obtain the timeout issue.
What is the right configuration of this IP for using with Linux?