Thanks for the reply, my device tree looks a bit healthier now.
/ {
codec_mono: max98357a@0 {
compatible = "maxim,max98357a";
#sound-dai-cells = <0>;
};
sound1 {
compatible = "pt,pt10ex-audio";
pt,model = "pt10ex";
ssi-controller = <&sai2>;
codec = <&codec_mono>;
};
};
&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";
};
The middle part I copied from another topic where I saw somebody trying to get this amplifier working.
I have compiled in the max98357.c driver into my kernel, but I do not understand the other driver that I need, can you tell me which extra driver I need? I did include the file imx-pt10ex,c in linux-toradex/sound/soc/fsl/, this idea I got from link text
Do I need more changes to my device tree?link text
2: Download - Toradex File Sharing Platform for the reply, my device tree looks a bit healthier now.
/ {
codec_mono: max98357a@0 {
compatible = "maxim,max98357a";
#sound-dai-cells = <0>;
};
sound1 {
compatible = "pt,pt10ex-audio";
pt,model = "pt10ex";
ssi-controller = <&sai2>;
codec = <&codec_mono>;
};
};
&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";
};
The middle part I copied from another topic where I saw somebody trying to get this amplifier working.
I have compiled in the max98357.c driver into my kernel, but I do not understand the other driver that I need, can you tell me which extra driver I need? I did include the file imx-pt10ex,c in linux-toradex/sound/soc/fsl/, this idea I got from link text
Do I need more changes to my device tree?link text