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.

TAS2505-Q1:How to use TAS2505 linux driver and device tree?

Part Number: TAS2505-Q1
Other Parts Discussed in Thread: TAS2505

hi,

During porting of the tas2505 driver,

I am not familiar with the use of Device Tree, so I am having a hard time porting it.

The tlv320aic32x4 general-purpose driver cannot be used due to the low kernel version,

so we are porting the tas2505 Linux driver on Ti Github.

In the structure data, the sysclk and p_div parameters are being input as 0.

The Linux kernel currently in use is 4.4.120, architecture arm processor

Please provide a device tree manual for tas2505 or a solution to solve the problem.

thank you

- Debug log - 

tas2505-codec 2-0018: Sample rate (48000) and format not supported

tas2505-codec 2-0018: ASoC: can't set tas2505-fifi hw params: -22

- Device tree -

tas2505: tas2505@18{
compatible = "ti,tas2505";
tas2505,gpio-reset = <&gpe 14 0>;
reg = <0x18>; // 0x30 >> 1
};
dai-link@0 {
stream-name="I2S_0";
codec,format = "i2s";
codec,continuous-clock;
pcm = <&adma0>;
dai = <&i2s0>;
codec = <&tas2505>;
codec,dai-name = "tas2505-hifi";
};

  • Part Number: TAS2505-Q1

    hi,

    During porting of the tas2505 driver,

    I am not familiar with the use of Device Tree, so I am having a hard time porting it.

    The tlv320aic32x4 general-purpose driver cannot be used due to the low kernel version,

    so we are porting the tas2505 Linux driver on Ti Github.

    In the structure data, the sysclk and p_div parameters are being input as 0.

    The Linux kernel currently in use is 4.4.120, architecture arm processor

    Please provide a device tree manual for tas2505 or a solution to solve the problem.

    thank you

    - Debug log - 

    tas2505-codec 2-0018: Sample rate (48000) and format not supported

    tas2505-codec 2-0018: ASoC: can't set tas2505-fifi hw params: -22

    - Device tree -

    tas2505: tas2505@18{
    compatible = "ti,tas2505";
    tas2505,gpio-reset = <&gpe 14 0>;
    reg = <0x18>; // 0x30 >> 1
    };
    dai-link@0 {
    stream-name="I2S_0";
    codec,format = "i2s";
    codec,continuous-clock;
    pcm = <&adma0>;
    dai = <&i2s0>;
    codec = <&tas2505>;
    codec,dai-name = "tas2505-hifi";
    };

  • HI Kim,

    I may need to ask some one of our driver specialists to take a look at this, I'll try to get some feedback by early next week,

    Best regards,
    -Ivan Salazar
    Applications Engineer

  • Hi, I'm following up on this thread: https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1048836/tas2505-linux-device-tree

    Closing this one for now.

    Best regards,
    -Ivan Salazar
    Applications Engineer