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.

TDA4VM: SPI Slave as SPIDev does not work.

Part Number: TDA4VM

Hi everyone,

I am trying to run the slave as it is described here in spidev. With the following configurations in the device tree.

In:

k3-j731e-main.dtsi:


        main_spi6: spi@2160000 {
                compatible = "ti,am654-mcspi","ti,omap4-mcspi";
                reg = <0x0 0x2160000 0x0 0x400>;
                interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&k3_clks 272 1>;
                power-domains = <&k3_pds 272 TI_SCI_PD_EXCLUSIVE>;
                #address-cells = <1>;
                #size-cells = <0>;
                spi-slave;
                slave {
                        compatible = "spi-slave-time";
                };
        };

But sadly the slave device does not work as intented and in the Linux I receive the following error. (using dmesg)

[    4.867325] spi_slave spi3: /interconnect@100000/spi@2160000/spidev@6 is not called 'slave'
[    4.875665] spi_slave spi3: Failed to create SPI device for /interconnect@100000/spi@2160000/spidev@6 

Is there a Driver available for the Slave "spidev" or I should use another way to make it work.

Thanks,

Pouyan