spi: document spi functions