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.
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?
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,
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,