Part Number:AM5718
Tool/software: Linux
Hello everyone,
We have developed our board in which we use the TAS2553 ic.
Please check the attached image for the connection of IC with AM5718.
Also check the dtsi configurations as below.
sound0: sound0 {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,name = "tas2552";
simple-audio-card,widgets =
"Line", "Line Out",
"Line", "Line In";
simple-audio-card,routing =
"Ext Spk", "OUT";
simple-audio-card,format = "dsp_b";
sound0_master: simple-audio-card,cpu {
sound-dai = <&mcasp3>;
};
simple-audio-card,codec {
sound-dai = <&tas2552>;
};
};
&i2c3 {
status = "okay";
clock-frequency = <400000>;
#sound-dai-cells = <0>;
compatible = "ti,tas2552";
reg = <0x40>; /*because we have connected ADDR to gound o.w. it will be 0x41 if it is at VDD*/
vbat-supply = <&vmain>;
iovdd-supply = <&v3_3d>;
avdd-supply = <&ldo3_reg>;
enable-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
&mcasp3 {
#sound-dai-cells = <0>;
assigned-clocks = <&mcasp3_ahclkx_mux>;
assigned-clock-parents =<&abe_24m_fclk>;
status = "okay";
op-mode = <0>; / MCASP_IIS_MODE /
tdm-slots = <2>;
/ 4 serializers /
serial-dir = < / 0: INACTIVE, 1: TX, 2: RX /
1 2 0 0
>;
tx-num-evt = <32>;
rx-num-evt = <32>;
};
Still we are getting below error so please help us to solve this.
root@am57xx-evm:/boot# dmesg | grep tas2552
[ 2.391402] tas2552 2-0040: GPIO lookup for consumer enable
[ 2.391407] tas2552 2-0040: using device tree for GPIO lookup
[ 2.391413] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/ocp/i2c@48060000/tas2552@40[0]'
[ 2.391438] of_get_named_gpiod_flags: parsed 'enable-gpio' property of node '/ocp/i2c@48060000/tas2552@40[0]' - status (0)
[ 9.151096] tas2552 2-0040: Unable to sync registers 0x1-0x2. -121
[ 9.175168] tas2552 2-0040: ASoC: Failed to set DAI format: -22
[ 9.215104] asoc-simple-card sound0: tas2552-amplifier <-> 48468000.mcasp mapping ok
[ 52.170883] tas2552 2-0040: ASoC: can't set tas2552-amplifier hw params: -22
Below is the Schematic snap of connection from AM5718 to TAS2553
Thanks & Best Regards,
Nikunj Patel