Source Code Structure

The following list shows the source code of SPI since Linux 5.15.
  • drivers/spi/spi.c: The file contains source code for the SPI driver framework.
  • drivers/spi/spidev.c: The file contains the source code to create the SPI device node and use it in user mode.
  • drivers/amba/bus.c: The file contains the source code to register platform devices through AMBA bus.
  • driver/spi/spi-pl022-starfive.c: The file contains the source code of SPI controller driver on the StarFive JH7110 platform.
  • tools/spi/spidev_test.c: The file contains the SPI test tool in user mode.