imx7d sai2 DTS settings for MAX98537a

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

imx7d sai2 DTS settings for MAX98537a

1,699 Views
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.

Labels (4)
0 Kudos
3 Replies

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

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

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