imx7d sai2 DTS settings for MAX98537a

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

imx7d sai2 DTS settings for MAX98537a

1,999 次查看
eoin_oconnell
Contributor I

Hi all,

I am looking for the device tree settings for getting a MAX98537A audio amplifier working using SAI2, I already have the pinmux settings correct, I am looking for all of the other settings.

标签 (4)
0 项奖励
回复
3 回复数

1,459 次查看
eoin_oconnell
Contributor I

I have tried slowly adding bits to the device tree:

This much is ok and doesnt cause errors:

<p>

&sai2 {
fsl,mode = "i2s-master";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
assigned-clocks = <&clks IMX7D_SAI2_ROOT_SRC>,
<&clks IMX7D_SAI2_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
assigned-clock-rates = <0>, <36864000>;
status = "okay";
};

</p>

As soon as I add:

<p>

codec: max98357a@0 {
compatible = "maxim,max98357a";
#sound-dai-cells = <0>;
};

</p>

I have compile errors. FATAL ERROR: Unable to parse input tree

Any ideas?

0 项奖励
回复

1,459 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Eoin O’Connell,

I would recommend checking that all symbols on the lines are correct. (Some symbols like “ may be incorrect when copying from a text editor, for example).

The other possible issue would be that some libraries are not reachable, which happens sometimes when not adding the device tree to Makefile and using make dtbs, but if this were the case it would probably have failed also without those lines added.

Regards,

0 项奖励
回复

1,459 次查看
gusarambula
NXP TechSupport
NXP TechSupport

Hello Eoin O’Connell,

The following thread may be of help. It’s not focused on the i.MX7 but the Device Tree settings would be similar.

https://community.nxp.com/message/1071974 

 

I hope this helps!

Regards,

0 项奖励
回复