modified spidev driver to make it work with some gpio libraries