Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/AM3352: McASP configuration for dummy codec

$
0
0

Part Number:AM3352

Tool/software: Linux

Hi,

I am trying to make an 8 slot tdm rx/tx with mcasp.  We are going to connect a  fpga, so we don't need a codec. Below shows my dts file.  I used a dummy codec but i was not able to get the davince-mcasp.c file to print out any logs.  It appears that the dummy codec doesn't make the connection to the mcasp drivers. Any ideas why the connection is missing?

    codec_test: codec_test {
        compatible = "linux,snd-soc-dummy";
        #sound-dai-cells = <0>;
        status="okay";
    };

    sound {
        compatible = "simple-audio-card";
        simple-audio-card,name = "AM335x-TDM";
//        simple-audio-card,format = "dsp_a";
        simple-audio-card,format = "dsp_b";
//        simple-audio-card,format = "i2c";
        simple-audio-card,frame-master = <&sound_master>;
        simple-audio-card,bitclock-master = <&sound_master>;
//        simple-audio-card,bitclock-inversion;
//        system-clock-frequency = <24000000>;
//        system-clock-direction = "out";
        status="okay";

        sound_master: simple-audio-card,cpu {
            sound-dai = <&mcasp0>;
            system-clock-frequency = <24000000>;
            system-clock-direction = "out";

            dai-tdm-slot-num = <2>;
            dai-tdm-slot-width = <16>;
        };

        sound_master1: simple-audio-card,codec {
//            sound-dai = <&tlv320aic3x>;
            sound-dai = <&codec_test>;
        };
    };

    mcasp0_pins: mcasp0_pins {
        pinctrl-single,pins = < /**/
            0x120 ( PIN_INPUT_PULLDOWN  | MUX_MODE6 ) /* (N18) gmii1_txd2.mcasp0_ahclkx */
            0x12c ( PIN_INPUT_PULLDOWN  | MUX_MODE6 ) /* (N19) gmii1_txclk.mcasp0_aclkx */
            0x130 ( PIN_INPUT_PULLDOWN | MUX_MODE6 ) /* (M19) gmii1_rxclk.mcasp0_fsx */
            0x134 ( PIN_OUTPUT_PULLDOWN | MUX_MODE6 ) /* (N17) gmii1_col.mcasp0_axr0 */
            0x138 ( PIN_INPUT_PULLDOWN  | MUX_MODE6 ) /* (N16) gmii1_rxd0.mcasp0_axr1 */
        >;

&i2c0 {
    pinctrl-names = "default";
    pinctrl-0 = <&i2c0_pins>;
    clock-frequency = <100000>;
    status = "okay";

    tlv320aic3x: tlv320aic3x@1b {
        compatible = "ti,tlv320aic3x";
        reg = <0x1b>;
        #sound-dai-cells = <0>;

        status = "okay";
    };

/*    tlv320aic33: tlv320aic33@1b {
        compatible = "ti,tlv320aic33";
        reg = <0x1b>;
        #sound-dai-cells = <0>;

        status = "okay";
    }; */

};

&mcasp0 {
    #sound-dai-cells = <0>;
    pinctrl-names = "default";
    pinctrl-0 = <&mcasp0_pins>;

    status = "okay";

    op-mode = <0>;          /* 0: MCASP_IIS_MODE, 1: DIT */
    tdm-slots = <8>;

    /* 4 serializers */
    serial-dir = <        /* 0: INACTIVE, 1: TX, 2: RX */
        1 2 0 0        /* AXR0 AXR1 AXR2 AXR3 */
    >;
    tx-num-evt = <32>;
    rx-num-evt = <32>;
};

Rob


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>