Hi,
You could use the spidev tool. For more information please refer to the following thread:
https://community.nxp.com/thread/302612
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------