Write a SPI Driver

Hello guys, i’m working with a SAM9-L9260(ARM Architecture) that have device SPI. I installed linux, and i want to use a antenna MOD-NRF24LR at SPI. I intend to establish the connection betwen two boards SAM9. Then, i need write a driver for do this, but i’ve not found a text that teach how do this. Someone have a suggestion?

Tks.