Hi,
What do you mean by bi-direction? SPI can work in full duplex mode, that is, send and receive data at the same time.
In my experience, when working in slave mode, ecspi in i.MX6 is using PIO mode. So it might not be able to support high SCK.
The master mode should support 23MHz SCK.
Thanks!
Regards
Terry