How to setup Device Tree for Tas5720 for imx8mp?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to setup Device Tree for Tas5720 for imx8mp?

1,381 次查看
Ian75rezh
Contributor I

Linux kernel 5.4.70. For example using a simple sound card.

标签 (1)
0 项奖励
回复
2 回复数

1,355 次查看
Ian75rezh
Contributor I

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 = <&reg_sound_3v3>;
        pvdd-suply = <&amp_supplay_reg>;
		status = "okay";
	};
};

 

0 项奖励
回复

1,351 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复