I’m trying to use the PCM/SPI in the 26 pin GPIO connector.
Using the following dts modification:
&afe {
pinctrl-names = "default";
pinctrl-0 = <&pcm_pins>;
status = "okay";
#sound-dai-cells = <1>;
};
&spi1 {
status = "okay";
spidev@0 {
compatible = "rohm,dh2228fv";
reg = <0>;
spi-max-frequency = <10000000>;
};
};
&pio {
pcm_pins: pcm-pins {
mux {
function = "pcm";
groups = "pcm";
};
};
};
/ {
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "BPI-R4-SLIC";
simple-audio-card,format = "dsp_a"; /* DSP_A = PCM Mode with Frame Sync */
/* The MT7988 (CPU) must be the Master generating CLK and SYNC */
simple-audio-card,bitclock-master = <&dailink0_master>;
simple-audio-card,frame-master = <&dailink0_master>;
simple-audio-card,mclk-fs = <256>;
simple-audio-card,cpu {
sound-dai = <&afe 0>;
};
dailink0_master: simple-audio-card,codec {
sound-dai = <&codec_dummy>;
};
};
/* Dummy codec since the SLIC is controlled via SPI */
codec_dummy: codec_dummy {
compatible = "linux,snd-soc-dummy";
#sound-dai-cells = <0>;
};
};
However, the following error happens on boot: [ 20.950992] platform sound: deferred probe pending: asoc-simple-card: parse error
Trying to use the latest OpenWRT, any help?
Regards, Maxime