How to setup Device Tree for Tas5720 for imx8mp?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to setup Device Tree for Tas5720 for imx8mp?

1,622件の閲覧回数
Ian75rezh
Contributor I

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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,596件の閲覧回数
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,592件の閲覧回数
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 件の賞賛
返信