hello babbelal.patel1,
are you using Nano eMMC version or SD-card version?
if it is SD-card version, you may using Jetson-IO to configure the 40 pin header to enable SPI.
here’s SPI tools (spidev_test) for running loopback test.
for example, How to set to spi slave mode - #5 by ShaneCCC