What difference spi.c and spi_tegra114.c and which should be used?

How should I use spi.c and spi_tegra114.c on the master side and spidev.c and my own driver on the slave side properly?


spi.c is SPI core driver spi_tegra114.c is for chip I believe both of them are comiple as kernel SPI driver.
For the chip configure you need to check spi_tegra114.c

hello, Shane.

I understood that spi_tegra114.c is nearer to physical layer than spi.c. Is it correct ?


Yes, that’s correct.