This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5718: SPI issue

Part Number: AM5718

Tool/software: Linux

Dear Sir or Madame

We want to access a chip, during MLO/u-boot, connected via a SPI interface but we get the error message "Invalid bus 2 (err=-19)" when using function call 'spi_setup_slave'

Is it a problem for the low level drive that the "out data line from the chip" is not connected (in uclass.c it seems that it is probing)?

The call look like this

 seven_segment_spi = spi_setup_slave(2, 0, 1000000, SPI_MODE_0);

It seems that the declaration in our .dtsi file

&mcspi3 {
 status = "okay";
 ti,pindir-d0-out-d1-in;
 ti,spi-num-cs = <0>;
};

do not add a spi device in the device list (uclass_foreach_dev in uclass.c seems to only find our qspi device.)

our defconfig file 

CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_OMAP3_SPI=y


our own .dtsi file

&mcspi3 {
	status = "okay";
	ti,pindir-d0-out-d1-in;
	ti,spi-num-cs = <0>;
};

Our pinmux

Our schematic