Hello,
We use the beaglebone black as development board for a project, in this project we need an audio codec, this would be the TLV320AIC3100. As operation system we use the Ti Linux SDK 07.00.00.00 version.
We have connected the audio codec on the mcasp0 interface(pinning: lcd_data8, 9, 11, 15 & clkout2) and i2c1 port.
I have changed the device tree and disabled the lcd data and put in the next information:
In am335x-boneblack.dts
&am33xx_pinmux {
i2c1_pins: pinmux_i2c1_pins {
pinctrl-single,pins = <
0x158 0x32 /* spi0_d1.i2c1_sda, PIN_INPUT_PULLUP | MODE 3 -> connected to sda1 */
0x15c 0x32 /* spi0_cs0.i2c1_scl, PIN_INPUT_PULLUP | MODE 3 -> connected to scl1 */
>;
};
am335x_evm_audio_pins: pinmux_am335x_evm_audio_pins {
pinctrl-single,pins = <
0xc0 0x23 /* lcd_data8.mcasp0_aclkx, PIN_INPUT_PULLDOWN | MODE3 -> connected to bclk */
0xc4 0x23 /* lcd_data9.mcasp0_fsxm, PIN_INPUT_PULLDOWN | MODE3 -> connected to wclk */
0xcc 0x04 /* lcd_data11.mcasp0_axr2, PIN_OUTPUT_PULLDOWN | MODE4 -> connected to DIN */
0xdc 0x24 /* lcd_data15.mcasp0_axr3, PIN_INPUT_PULLDOWN | MODE4 -> connected to dout */
>;
};
};
&i2c1 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
clock-frequency = <100000>;
status = "okay";
tlv320aic3x: tlv320aic3x@18 {
compatible = "ti,tlv320aic3x";
reg = <0x18>;
status = "okay";
};
};
&mcasp0 {
pinctrl-names = "default";
pinctrl-0 = <&am335x_evm_audio_pins>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
0 0 1 2 /* AXR0 AXR1 AXR2 AXR3 */
>;
tx-num-evt = <1>;
rx-num-evt = <1>;
};
and in am335x-bone-common.dtsi I added the follwing unter the OCP
sound {
compatible = "ti,da830-evm-audio";
ti,model = "DA830 EVM";
ti,audio-codec = <&tlv320aic3x>;
ti,mcasp-controller = <&mcasp0>;
ti,codec-clock-rate = <12000000>;
ti,audio-routing =
"Headphone Jack", "HPLOUT",
"Headphone Jack", "HPROUT",
"LINE1L", "Line In",
"LINE1R", "Line In";
};
when I know start up the image i get the following errors:
davinci_evm sound.5: Asoc: CPU DAI (null) not registered
davinci_evm sound.5: snd_soc_register_card failed (-517)
platform sound.5: Driver davinci_evm request probe deferral
tlv320aic3x-codec 1-0018: Failed to get supply 'IOVDD': -19
tlv320aic3x-codec 1-0018: Failed to request supplies: -19
tlv320aic3x-codec 1-0018: ASoC: falied to instantiate card -19
Why do we get the errors? I have measure the voltage and this is 3.3Voltage
Thanks in advance