Optoisolate 2MHz SPI communication
Borges, there are isolated devices made specifically for digital isolation and even for SPI busses. Texas Instruments and Analog Devices both make these. It's capacitive or magnetic isolation instead of optical isolation. Here is a link to popular device:

ISO7241C @ TI.com

It's also available on digikey:

ISO7241CDW @ Digikey