Part Number: PROCESSOR-SDK-DRA7X
Tool/software: Linux
I am using Linux SDK - dra7xx-evm-03_02_00_03.
According to Linux Core SPI User's Guide,McSPI which is a general-purpose receive/transmit, master/slave controller that can interface with up to four slave external devices or one single external master.
According to wiki.tiprocessors.com/.../Linux_Core_SPI_User's_Guide there is no slave device present. The only way to do a SPI testing is to short MOSI and MISO lines and do the spi loopback testing. From the above link, we have to modify the dts file; which we tried is giving out errors.
I am not able to list the /dev/spi* devices.
By default SPI device support was added.
CONFIG_SPI=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_OMAP24XX=y
CONFIG_SPI_TI_QSPI=y
I added user space support for SPI by configuring CONFIG_SPI_SPIDEV=y
Had /sys/class/spidev/ but with no entries in it. Could not find spi node entries in /proc/device-tree also.
Could see spi with 153 node number in /proc/devices/char/.
When i checked dra7.dtsi, mcspi entries in dts file is listed with status disabled.
PFB code snippet in dts file.
mcspi1: spi@48098000 {
compatible = "ti,omap4-mcspi";
reg = <0x48098000 0x200>;
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
ti,hwmods = "mcspi1";
ti,spi-num-cs = <4>;
dmas = <&sdma_xbar 35>,
<&sdma_xbar 36>,
<&sdma_xbar 37>,
<&sdma_xbar 38>,
<&sdma_xbar 39>,
<&sdma_xbar 40>,
<&sdma_xbar 41>,
<&sdma_xbar 42>;
dma-names = "tx0", "rx0", "tx1", "rx1",
"tx2", "rx2", "tx3", "rx3";
status = "disabled";
};
Similarly mcspi2,mcspi3,mcspi4 has also been disabled.
My problem is that i could not list spidev devices in /dev. Can you please support ?