I believe that there is an error in the above table, because it shows that I2S2, I2S5 and DSPK2 are all available on the 40-pin header. However, this should be 30-pin header (J26).
The only item that may need to be configured is the pinmux to enable the pins. For example, to configure the pinmux for dmic3 on the 40-pin header you can …