Two I2S devices configuration

Hi,I have been trying to configure two I2S devices where I will read data from mic SPH0645 with NRF5340  then I need to send that data to Amplifier(TAS2563).So,help me configuring and how to use i2s_0 node?Do i need to configure i2s0 as same i2s(i2s_rxtx) or as different(i2s_rx & i2s_tx),In case of different things help me configuring tx and rx seperately.And here we are using ACLK clock and if we use it seperately do we need to configure clocks seperately.Is it possible with this controller?I mentioned my overlay file below.Kindly help me in this.

&pinctrl {
 
    i2c1_default: i2c1_default {
        group1 {
            psels = <NRF_PSEL(TWIM_SDA, 1, 2)>,
                <NRF_PSEL(TWIM_SCL, 1, 3)>;
        };
    };

    i2s0_default: i2s0_default {
        group1 {
            psels = <NRF_PSEL(I2S_SCK_M, 0, 26)>,
                    <NRF_PSEL(I2S_LRCK_M, 0, 25)>,
                    <NRF_PSEL(I2S_SDIN, 0, 7)>,
                    <NRF_PSEL(I2S_MCK, 1, 0)>,
                    <NRF_PSEL(I2S_SDOUT, 0, 6)>;
        };
    };
    i2s0_sleep: i2s0_sleep {
        group1 {
            psels = <NRF_PSEL(I2S_SCK_M, 0, 26)>,
                    <NRF_PSEL(I2S_LRCK_M, 0, 25)>,
                    <NRF_PSEL(I2S_SDIN, 0, 7)>,
                   <NRF_PSEL(I2S_MCK, 1, 0)>,
                    <NRF_PSEL(I2S_SDOUT, 0, 6)>;
        };
    };
};

&clock {
    status="okay";
    hfclkaudio-frequency = <12288000>;
};


i2s_rxtx: &i2s0 {
    status = "okay";
    pinctrl-0 = <&i2s0_default>;
    pinctrl-1 = <&i2s0_sleep>;
    clock-source = "ACLK";
    pinctrl-names = "default","sleep";
};



Related