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.

ADC6140EVM-PDK: Guidance to implement Beaglebone Black + ADCx140EVM-PDK + On-board mic input

Part Number: ADC6140EVM-PDK
Other Parts Discussed in Thread: TLV320ADC5140

Dear TI Team,

We have ADC6140EVM-PDK (DC087 B), AC-MB DC058 Rev A and PurePath Console v3.2.0. We were able to implement quick start example using PPC3. This test included, access of on-board mic input from ADC6140EVM-PDK and recording this audio on the developement computer. For this test "AUDIO SELECTION: USB" was selected. This test was successful.

For Test 2, we want to access ADC6140EVM-PDK (on-board mic) using Bealglebone Black instead of development computer. As per "User's Guide SBAU335–May 2019 ADCx140EVM-PDK" for this test we need to access "AUDIO SELECTION: External ASI" and according control signals should be provided on J7.

As per the typical application of ADC6140 (page 108 from datasheet of ADC6140) (https://www.ti.com/lit/ds/symlink/tlv320adc6140.pdf?ts=1627279248807&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FTLV320ADC6140), ADC6140 do not have control signal MCLK and DIN is changed to GPIO1. Also, do we need to make any modifications in Linux drivers (https://www.ti.com/tool/TLV320ADC5140SW-LINUX)

Please guide me for the desired interface between Beaglebone Black (P9 connector) to an External ASI interface (J7 connector of AC-MB). Along with desired scripts we need to implement for this test.

Best regards,
Siddhesh

  • Hello Siddhesh,

    Let me take a look at this and I will get back to you by midweek.

    Best,

    Carson

  • As far as the DTS:

    • For TLV320ADCx140 I2C connections:
      • arch/arm/boot/dts/m335x-bone-common.dtsi

    #include <dt-bindings/gpio/gpio.h>

      

      i2c0 {

          #address-cells = <1>;

          #size-cells = <0>;

        tlv320adc5140: tlv320adc5140@4c {

            compatible = "ti,tlv320adc5140";

            #sound-dai-cells = <0>;

                reg = <0x4c>;

                ti,mic-bias-source = <1>;

                ti,pdm-edge-select = <0 0 0 0>;

                ti,gpi-config = <0 0 0 0>;         

                ti,gpo-config-1 = <0 0>;

                ti,gpo-config-2 = <0 0>;

                ti,gpo-config-3 = <0 0>;

                ti,gpo-config-4 = <0 0>;

            ti,ch-order = <0 1 2 3>;

            ti,asi-tx-drive = <0>;

                reset-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;

        };

    For the soundcard with 8 channels:

    arch/arm/boot/dts/am335x-boneblack-common.dtsi

    DTS TDM Setup

    sound {

        compatible = "simple-audio-card";

        simple-audio-card,name = "TI BeagleBone Black";

        /*

         * you might need to add:

         * simple-audio-card,widgets

         * simple-audio-card,routing

         */

     

        

        simple-audio-card,dai-link@0 {

            format = "dsp_a";

            bitclock-master = <&sound0_master>;

            frame-master = <&sound0_master>;

            sound0_master: cpu {

                sound-dai = <&mcasp0>;

                clocks = <&clk_mcasp0>;

                dai-tdm-slot-num = <8>;

                dai-tdm-slot-width = <32>;

                dai-tdm-slot-tx-mask = <1 1 1 1 1 1 1 1>;

                dai-tdm-slot-rx-mask = <1 1 1 1 1 1 1 1>;

            };

     

            codec {

                sound-dai = <&tlv320adc5140>;

                dai-tdm-slot-num = <8>;

                dai-tdm-slot-width = <32>;

                dai-tdm-slot-tx-mask = <1 1 1 1 1 1 1 1>;

                dai-tdm-slot-rx-mask = <1 1 1 1 1 1 1 1>;

            };

        };

    };

    DTS documentation is at:

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/Documentation/devicetree/bindings/sound/tlv320adcx140.yaml

     

    Looks like the ti,ch-order has not made it to the late Linux release. It might be a patch that has not made it through.

    -Carson