This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2SX: Tda2xx audio Clock not working

Part Number: TDA2SX

Hi All,

I am working on Custom board audio codec with Tda2xx processor.

I am using MCASP1_AHCLKX(XREF_CLK0) for generating the MCLK for audio.

Here my devicetree changes.

sound0_master: simple-audio-card,cpu {
                        sound-dai = <&mcasp3>;
                        system-clock-frequency = <11289600>;
                };

                simple-audio-card,codec {
                        sound-dai = <&cs48l32>;
                        clocks = <&atl_clkin0_ck>;
                };

&atl {
        assigned-clocks = <&abe_dpll_sys_clk_mux>,
                          <&atl_gfclk_mux>,
                          <&dpll_abe_ck>,
                          <&dpll_abe_m2x2_ck>,
                          <&atl_clkin1_ck>,
                          <&atl_clkin0_ck>;
        assigned-clock-parents = <&sys_clkin2>, <&dpll_abe_m2_ck>;
        assigned-clock-rates = <0>, <0>, <180633600>, <361267200>,
                                <11289600>, <13000000>;

        status = "okay";

        atl2 {
                bws = <DRA7_ATL_WS_MCASP2_FSX>;
                aws = <DRA7_ATL_WS_MCASP3_FSX>;
        };
};

&mcasp3 {
        #sound-dai-cells = <0>;

        assigned-clocks = <&mcasp3_ahclkx_mux>;
        assigned-clock-parents = <&atl_clkin0_ck>;

        status = "okay";

        op-mode = <0>;          /* MCASP_IIS_MODE */
        tdm-slots = <2>;
        /* 4 serializer */
        serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
                1 2 0 0
        >;
        tx-num-evt = <32>;
        rx-num-evt = <32>;
};

But I am getting cs48l32-codec cs48l32-codec: simple-card: set_sysclk error.

Please help me to solve this issue.

Thanks & Regards,

Sankar.