spi: Move spi code from Documentation to tools