Other Parts Discussed in Thread: TDA4VM, SYSCONFIG
HI experts.
I use MCSPI1 (SPI1_CLK/SPI1_CS/SPI1_D0/SPI_D1) on tda4vm.
sdk:linux 08_04_00_11 ,rtos 08_04_00_06
I configured the device tree as follows. Also added in the kernel config file.
CONFIG_SPI_SPIDEV=y
CONFIG_SPI_OMAP24XX=y
So I have the SPIDEV node under dev, Once I boot Linux one should entries like below:
root@j7-evm:~# ls -l /sys/class/spi*
/sys/class/spi_master:
total 0
lrwxrwxrwx 1 root root 0 Apr 3 08:41 spi0 -> ../../devices/platform/bus@100000/2110000.spi/spi_master/spi0
/sys/class/spidev:
total 0
lrwxrwxrwx 1 root root 0 Apr 3 08:41 spidev0.0 -> ../../devices/platform/bus@100000/2110000.spi/spi_master/spi0/spi0.0/spidev/spidev0.0
When I used spidev_test to send data, there is no data on mosi.
root@j7-evm:~# ./spidev_test -D /dev/spidev0.0 -v -H -p 0x12345678
TX | 30 78 31 32 33 34 35 36 37 38 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |0x12345678|
RX | 00 00 00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ _
waveform1 (yellow) :cs
waveform2 (green) :mosi
waveform3 (purple) :miso
From the waveform I can see that the CS pin is being pulled down, but there is no data (0x12345678) being sent on Mosi.
What are the possible reasons for this?