Thank you Igor, I've read the thread you link, it seem my use case. So I added these nodes only for the purpose of recognizing the card by Alsa
codec_simple: max98357a@0 {
compatible = "maxim,max98357a";
#sound-dai-cells = <0>;
};
sound {
compatible = "simple-audio-card";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audmux>;
simple-audio-card,name = "Test Card";
simple-audio-card,format = "i2s";
simple-audio-card,widgets = "Speaker", "Speakers";
simple-audio-card,routing = "Speakers", "Speaker";
simple-audio-card,bitclock-master = <&cpu_dai>;
simple-audio-card,frame-master = <&cpu_dai>;
cpu_dai: simple-audio-card,cpu {
sound-dai = <&ssi1>;
system-clock-frequency = <883200>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
codec_dai: simple-audio-card,codec {
sound-dai = <&codec_simple>;
};
};
I had the necessity to rename codec node just because it is already defined in an imported dtsi file.
At the moment Alsa doesn't recognize the card. Are there some others setup to add to make it possible?
Thanks for you help.