Banana Pi R4 PCM/SPI Help

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

Are you sure you can link a subnode? This looks like circular depency.

I guess you have to move this out of the sound node…not sure what this node should do

I will try! It seems correct but not sure if it can cause the issue