AnsweredAssumed Answered

spidev on wandboard dual lite

Question asked by Catalin Petrescu on Nov 26, 2014
Latest reply on Mar 5, 2015 by Catalin Petrescu

Hi,

 

Has anyone managed to access the SPI bus via spidev on a wandboard dual lite?

I'm running linux 3.10.17-1.0.1. The SPI and SPIDEV are compiled in the kernel:


# zgrep SPI /proc/config.gz | grep -v SPIN | grep -v '^#'

CONFIG_IMX_HAVE_PLATFORM_SPI_IMX=y

CONFIG_REGMAP_SPI=y

CONFIG_SPI=y

CONFIG_SPI_MASTER=y

CONFIG_SPI_BITBANG=y

CONFIG_SPI_IMX=y

CONFIG_SPI_SPIDEV=y

CONFIG_MFD_MC13XXX_SPI=y

CONFIG_SND_SPI=y

CONFIG_SND_SOC_I2C_AND_SPI=y


I noticed that the ecspi nodes were disabled in device tree and I set the status of the first spi controller to "okay"

Now, the driver (spi_imx) finds controller:

 

# dmesg|grep spi

[    1.245159] spi_imx 2008000.ecspi: probed

 

But when I try to open /dev/spidev0.0 I get a ENXIO. Here's the output from strace:

open("/dev/spidev0.0", O_RDWR)          = -1 ENXIO (No such device or address)

 

The device is there:

ls -l /dev/spidev0.0

brw-rw-rw- 1 root root 153, 0 Nov 26 20:04 /dev/spidev0.0

 

Any ideas?

Thanks.

Outcomes