BPI R64 MT7622 I2S iis support

I got the following failed error,

[    0.723692] i2c-core: driver [wm8960] registered; 
[    0.729266] mt2701-wm8960 sound: ASoC: failed to init link wm8960-codec: -517 
[    0.736405] mt2701-wm8960 sound: mt2701_wm8960_machine_probe snd_soc_register_card fail -517

and sound is added in DTS:

sound: sound {
		compatible = "mediatek,mt2701-wm8960-machine";
		mediatek,platform = <&afe>;
		audio-routing =
			"Headphone", "HP_L",
			"Headphone", "HP_R",
			"LINPUT1", "AMIC",
			"RINPUT1", "AMIC";
		mediatek,audio-codec = <&wm8960>;
		pinctrl-names = "default";
		pinctrl-0 = <&i2s1_pins>;

&i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c1_pins>;
	status = "okay";	
	wm8960:[email protected] {
		compatible = "wlf, wm8960";
		reg = <0x1a>;

The kernel is 5.4.68, so any idea on this question. Thanks for support.

1 Like

Are you sure mt2701 is right for r64? Imho mt7622 is based on mt2712,not mt2701 (like r2)

Mhm,seems @skype uses same config

I have the same problem. @moore what’s your kernel version? Can you upload your full dts file instand of a patch? BTW, I boot openwrt from emmc. Thanks in advance.

just apply patch to native r64 dts file in kernel 5.4, thanks. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts?h=v5.4.109