Other Parts Discussed in Thread: TLV320AIC3106, TLV320AIC3268, TLV320AIC3262, TLV320AIC3212
Tool/software: Linux
Hi All,
I was configuring the 2nd I2S/PCM of TLV320AIC3106-Q1 like below diagram for WL2833Q Bluetooth.
It seemd that I can just add a :ai3x-gpio-func" like
&i2c2 {
clock-frequency = <400000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
status = "okay";
codec: tlv320aic3106@18 { ////Audio Codec
compatible = "ti,tlv320aic3x";
reg = <0x18>;
clocks = <&codec_osc>;
clock-names = "clko_clk";
AVDD-supply = <®_audio>;
IOVDD-supply = <®_audio>;
DRVDD-supply = <®_audio>;
DVDD-supply = <®_audio>;
gpio-reset = <&gpio4 26 1>;
ai3x-gpio-func = <11 8>; //<AIC3X_GPIO1_FUNC_AUDIO_WORDCLK, AIC3X_GPIO2_FUNC_AUDIO_BITCLK>
};
};
But actually, it will crash my 1st I2S (WCLK, BCLK, DIN, DOUT) while playback an audio. So I tried to send the configuration commands through
I2C like :
i2cset -f -y 1 0x18 98 0xB0
i2cset -f -y 1 0x18 99 0x80
i2cset -f -y 0x18 8 0xD0
I did see the GPIO1 and GPIO2 signals from my scope.
And if I tried to playback an audio from iMX6Q, it will then diable the GPIO1 and GPIO2.
i2cget -f -y 1 0x18 98 showed 0x00
i2cget -f -y 1 0x18 99 showed 0x00
i2cegt -f -y 1 0x18 98 8 showed 0x00
So if there was a good way to configure and enable my Bluetooth? Thanks for your help.
-Justin