Hi Ti Team,
We are using TLV320adc5140 audio codec chip with renesas rzg2h-processor , the kernel we are using is 5.10.158 And the below is my dts entries,enabled tlv3210adcx140 driver in the kenel.
When we try to probe the code it is giving below error:
2.401668] optee: probe of firmware:optee failed with error -22
[ 2.408348] SMET inside ...1
[ 2.409141] renesas_sdhi_internal_dmac ee140000.mmc: mmc2 base at 0x00000000ee140000, max clock rate 200 MHz
[ 2.411252] SMET inside ...2
[ 2.411428] renesas_sdhi_internal_dmac ee160000.mmc: mmc0 base at 0x00000000ee160000, max clock rate 200 MHz
[ 2.433888] SMET inside ...3
[ 2.436818] SMET inside ...4
[ 2.439783] SMET inside ...5
[ 2.442986] asoc-simple-card: probe of sound failed with error -22
[ 2.451535] rcar_sound ec500000.sound: probed:
My dtsi entri is:
tlv320adc5140_snd: sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,bitclock-master = <&cpu_dai>;
simple-audio-card,frame-master = <&cpu_dai>;
simple-audio-card,widgets = "Microphone", "Mic";
simple-audio-card,audio-routing =
"MIC1P", "Mic",
"MIC1M", "Mic",
"MIC2P", "Mic",
"MIC2M", "Mic",
"MIC3P", "Mic",
"MIC3M", "Mic",
"MIC4P", "Mic",
"MIC4M", "Mic";
mclk-fs = <256>;
cpu_dai: simple-audio-card,cpu {
sound-dai = <&sound_pins1>;
clock-names = "mclk";
};
codec_dai: codec {
sound-dai = <&tlv320adc5140>;
clocks = <&clk_ext_audio_codec>;
// clocks = <&audio_mclock>;
clock-names = "mclk";
};
};
&i2c0 {
pinctrl-0 = <&i2c0_pins>;
pinctrl-names = "default";
clock-frequency = <100000>;
status = "okay";
#if 1
// #address-cells = <1>;
// #size-cells = <0>;
tlv320adc5140: tlv320adc5140@4c {
#sound-dai-cells = <0>;
compatible = "ti,tlv320adc5140";
reg = <0x4c>;
/* Digital Mics */
// ti,use-internal-areg; /*Regulator with AVDD at 3.3V. If not defined then the internal regulator is enabled */
ti,mic-bias-source = <6>; /* 0 - Mic bias is set to VREF */
ti,pdm-edge-select = <1 1 1 1>;
ti,gpio-config = <0 0>;
ti,gpi-config = <4 5 6 7>;
ti,gpo-config-1 = <4 1>;
ti,gpo-config-2 = <4 1>;
ti,gpo-config-3 = <4 1>;
ti,gpo-config-4 = <4 1>;
ti,slot-mapping = <0 1 2 3>;
ti,asi-tx-driver = <0>;
reset-gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
};
port@0 {
tlv320adc5140_endpoint: endpoint {
remote-endpoint = <&rsnd_endpoint3>;
};
};
#endif
};
sound_pins1: sound {
groups = "ssi78_ctrl", "ssi7_data";/* G6_17, G6_18, G6_19 */
function = "ssi";
};
Please guide us how do i go about configuring and getting tlv320adc5140 working on linux-5.10.158
Thanks and regards,
Nagaraja