Jetson Nano with SPI Flash

There are 2xSPI on Jetson Nano GPIOs and I would like to interface it with SPI NOR/NAND Flash devices. Do you have any example code or steps to follow, through which I can run this interface?