Quantcast
Channel: Embedded Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 3032

SPI device not found with E3800

$
0
0

Hi guys,

 

I just started to work on E3827 custom board with Yocto jethro. I am quite a beginner to embedded system.

Currently I have problem when I test SPI port.

 

When I type

 

ls /dev | grep spi

ls /sys/bus/spi/devices

 

nothing comes up

 

 

ls /sys/bus/platform/drivers

alarmtimer         dwc3               i8042              sdhci-acpi

byt_gpio           efi-framebuffer    iTCO_wdt           serial8250

clk-lpt            exynos-dwc3        keystone-dwc3      usb_phy_gen_xceiv

dw-apb-uart        generic-bl         leds-gpio          vesa-framebuffer

dw_dmac            i2c_designware     pxa2xx-spi         xhci-hcd

 

lsmod | grep spi

spi_pxa2xx_platform

 

I also tried "low-speed-spidev" sample for minnowboard max. It failed when modprobe low-speed-spidev and return

 

modprobe: ERROR: could not insert 'low_speed_spidev': No such device

 

dmesg and get

[   43.102814] low-speed-spidev: module init

[   43.110619] low-speed-spidev: master=          (null)

[   43.112946] low-speed-spidev: Failed to register SPI device

 

seems like when "spi_busnum_to_master" is called NULL is returned (master bus number not found)

 

What is 'spi_pxa2xx_platform'? Is it "pxa2xx SPI master controller"? (I Google 'pxa2xx' but still not quite understand)

What about "spidev"? I found "spidev.ko" under /lib/modules and I modprobe spidev.ko but nothing happen. (still not find /dev/spidevX.Y)

 

Do I need to declare slave devices in "pxa2xx_spi_chip" manner?

 

 

 

I have my linux kernel configuration as following (listed SPI related only):

 

CONFIG_UNINLINE_SPIN_UNLOCK=y

CONFIG_MUTEX_SPIN_ON_OWNER=y

CONFIG_REGMAP_SPI=m

# CONFIG_BMP085_SPI is not set

CONFIG_SCSI_SPI_ATTRS=y

CONFIG_SPI=y

# CONFIG_SPI_DEBUG is not set

CONFIG_SPI_MASTER=y

# SPI Master Controller Drivers

# CONFIG_SPI_ALTERA is not set

CONFIG_SPI_BITBANG=m

# CONFIG_SPI_BUTTERFLY is not set

CONFIG_SPI_GPIO=m

# CONFIG_SPI_LM70_LLP is not set

# CONFIG_SPI_OC_TINY is not set

CONFIG_SPI_PXA2XX_DMA=y

CONFIG_SPI_PXA2XX=m

CONFIG_SPI_PXA2XX_PCI=m

# CONFIG_SPI_SC18IS602 is not set

# CONFIG_SPI_TOPCLIFF_PCH is not set

# CONFIG_SPI_XCOMM is not set

# CONFIG_SPI_XILINX is not set

# CONFIG_SPI_DESIGNWARE is not set

# SPI Protocol Masters

CONFIG_SPI_SPIDEV=m

# CONFIG_SPI_TLE62X0 is not set

# SPI GPIO expanders:

# CONFIG_MFD_DA9052_SPI is not set

# CONFIG_MFD_MC13XXX_SPI is not set

# CONFIG_MFD_TPS65912_SPI is not set

# CONFIG_MFD_ARIZONA_SPI is not set

# CONFIG_MFD_WM831X_SPI is not set

CONFIG_SND_SPI=y

CONFIG_SND_SOC_I2C_AND_SPI=m

# CONFIG_MMC_SPI is not set

# SPI RTC drivers

CONFIG_IIO_ST_ACCEL_SPI_3AXIS=m

CONFIG_IIO_ST_SENSORS_SPI=m

CONFIG_AD5624R_SPI=m

CONFIG_IIO_ST_GYRO_SPI_3AXIS=m

CONFIG_IIO_ST_MAGN_SPI_3AXIS=m

CONFIG_IIO_ST_PRESS_SPI=m

# CONFIG_DEBUG_SPINLOCK is not set


Viewing all articles
Browse latest Browse all 3032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>