SPI2 cannot receive data when operating in slave mode

Based on my experience, it could happen in the SPI interface configured as SPI master rather than SPI slave.

Could you try using the following spidev_test tool which is built for Thor with JP7.1(r38.4)?
spidev_test