SPI slave mode(imx8mp)

Hi @Sudharshan,

Thanks for writing to Toradex community.

By default SPI is configured to operate in master mode. To get this in slave mode, you will need to configure spi bus in for slave mode using device tree modification.
Depending on what pins you are using you can modify spi node. Below is example for escspi1 node which is Verdin SPI_1

&ecspi1 {
    status = "okay";
    spi-slave;
    
    spidev: spidev@0 {
        compatible = "spidev";
        reg = <0>;
        spi-max-frequency = <1000000>;
        spi-cpha;
        spi-cpol;
    };
};

Additionally please do share complete OS details so that we can provide specific details.

Also check similar post below

Let me know if you have any queries.
Best Regards
Ritesh Kumar