How to enable SPI2 interface

Also for the cfg file have a reference to below topic.