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.

TLV320DAC3120: Which can be used for TLV320dac3120 on AM5278

Part Number: TLV320DAC3120
Other Parts Discussed in Thread: AM5728, TLV320AIC3100, TLV320AIC3110, TLV320AIC3120, TLV320AIC3111, TLV320DAC3100, TLV320DAC3101, , TLV320AIC3104

Hi

I use TLV320DAC3120-codec on AM5728, and SDK :ti-processor-sdk-linux-am57xx-evm-05.01.00.11

I don't know which driver can be used.

So can I use tlv320aic31xx.c driver ?

Here is table in tlv320aic31xx.c


static const struct of_device_id tlv320aic31xx_of_match[] = {
    { .compatible = "ti,tlv320aic310x" },
    { .compatible = "ti,tlv320aic311x" },
    { .compatible = "ti,tlv320aic3100" },
    { .compatible = "ti,tlv320aic3110" },
    { .compatible = "ti,tlv320aic3120" },
    { .compatible = "ti,tlv320aic3111" },
    { .compatible = "ti,tlv320dac3100" },
    { .compatible = "ti,tlv320dac3101" },
    {},
};

which one should be added to codec's compatible in am57xx-beagle-x15-common.dtsi?

    tlv320dac3120: tlv320dac3120@18 {
        #sound-dai-cells = <0>;
        compatible = "ti,tlv320aic3104";
        reg = <0x18>;
        assigned-clocks = <&clkoutmux2_clk_mux>;
        assigned-clock-parents = <&sys_clk2_dclk_div>;

        status = "okay";
        adc-settle-ms = <40>;

        AVDD-supply = <&vdd_3v3>;
        IOVDD-supply = <&vdd_3v3>;
        DRVDD-supply = <&vdd_3v3>;
        DVDD-supply = <&aic_dvdd>;
    };

and on other hand,

Our am5728 clkout2 clock now is 22.57MHz. We need to adjust to 11.92MHz for TLV320dac3120 .

If I want to change am5728 clkout2 clock,just modify the "&clkout2_clk" to <11920000> ?

        sound0_master: simple-audio-card,codec {
            sound-dai = <&tlv320aic3104>;
            clocks = <&clkout2_clk>;
        };
  • Hi, Lin,

    Please use the tlv320aic31xx.c driver, the TLV320DAC3120 is part of this devices family.

    Regarding your question about the clock out, you are right. Please configure the clock to use 11920000.

    Let me know if you have additional questions or comments on this. We will be glad to help you.

    Best regards,
    Luis Fernando Rodríguez S.