How to use the same clock for two I2S in Genio 350 EVK?

Hi,

We are using the Genio 350 EVK to connect an external codec to the SoC via I2S.

Can the I2S output and input share the same clock source?

Yes, the MT8365 I2S interfaces can be organized into two groups:

Output Input
Group 1 I2SOUT 1 I2SIN 2
Group 2 I2SOUT 3 I2SIN 0

Each group can be configured to share clock signals (BCK, LRCK, MCLK) between its interfaces.

To share clock, you need to add this property to the AFE node in the DTS.

&afe {
        mediatek,i2s-clock-modes = <x y>;
}

This property has two parameters:

  • x: Controls clock sharing for group 1 (I2SOUT 1 and I2SIN 2)
  • y: Controls clock sharing for group 2 (I2SOUT 3 and I2SIN 0)

Each parameter can be set to:

  • 0: Interfaces in the group do not share clocks
  • 1: Interfaces in the group share clocks