The code from another working project (slightly modified), but in this case it does not work. The sound card is not being created.
sound: sound {
compatible = "simple-audio-card";
simple-audio-card,name = "TAS5720";
simple-audio-card,format = "left_j";
simple-audio-card,bitclock-master = <&dailink_master>;
simple-audio-card,frame-master = <&dailink_master>;
simple-audio-card,mclk-fs = <64>;
simple-audio-card,widgets =
"Line", "Line Out";
simple-audio-card,routing =
"Line Out", "LOUT";
status = "ok";
simple-audio-card,cpu {
sound-dai = <&sai3>;
};
dailink_master: simple-audio-card,codec {
sound-dai = <&codec>;
clocks = <&clk IMX8MP_CLK_SAI3>;
status= "ok";
};
};
&i2c2 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
status = "okay";
codec: tas5720@6c{
compatible = "ti,tas5720";
#sound-dai-cells = <0>;
reg = <0x6c>;
dvdd-suply = <®_sound_3v3>;
pvdd-suply = <&_supplay_reg>;
status = "okay";
};
};
Hello,
Do you have connected the board to this cards? You need to build the dtb and kernel to enable the device tree and know if the module if working.
Regards