I looked to the QSPI example, and modified it to work with SPI0.
I enabled the clock CCM_CCGR0_CG12 and set the IOMUXC PTB19, PTB20, PTB21 and PTB22 but connecting an oscilloscope, the pins are not driven at all.
Is there any additional configuration needed?