Tool/software: Linux
I am configuring McSPI3 in linux SDK, but unable to probe SPIDEV, unable to find spidev in /dev . following is my dts file
spi3_pins: spi3_pins{
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x3734, (PIN_OUTPUT | MUX_MODE2)) /* spi3 Clk Configuration */
DRA7XX_CORE_IOPAD(0x3738, (PIN_INTPUT | MUX_MODE2)) /* spi3 D1 Rx Configuration */
DRA7XX_CORE_IOPAD(0x373C, (PIN_OUTPUT | MUX_MODE2)) /* spi3 D0 Tx Configuration */
DRA7XX_CORE_IOPAD(0x3740, (PIN_OUTPUT | MUX_MODE2)) /* spi3 CS Configuration */
>;
}
&mcspi3{
status="okay";
pinctrl-names="default";
pinctrl-0=<&spi3_pins>;
spidev@0{
compatible="linux,spidev";
spi-max-frequency=<48000000>;
reg=<0>;
status="okay";
};
};
I am adding above configuration in following file in sdk "am57xx-evm-reva3.dts". I have made all ndecessary changes in ker nel configuration as follows
CONFIG_SPI_SPIDEV = y
CONFIG_SPI_MASTER =y
please help.
Regards
Nikhil