How to setup Device Tree for Tas5720 for imx8mp?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to setup Device Tree for Tas5720 for imx8mp?

1,453 Views
Ian75rezh
Contributor I

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

Labels (1)
0 Kudos
Reply
2 Replies

1,427 Views
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 Kudos
Reply

1,423 Views
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 Kudos
Reply