Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup on mt7621 #17

Open
eMKa94 opened this issue Dec 7, 2023 · 0 comments
Open

Unable to setup on mt7621 #17

eMKa94 opened this issue Dec 7, 2023 · 0 comments

Comments

@eMKa94
Copy link

eMKa94 commented Dec 7, 2023

I'm trying to set it up on the evb with mt7621 som.

My basic setup is:

OpenWRT 23.05.2 (kernel 5.17.137)

Target System :: MediaTek Ralink MIPS
Subtarget :: MT7621 based boards
Target Profile :: HiLink HLK-7621A evaluation board

Using WM8960 Aduio module from WaveShare connected to the MT7621 as follows:

On the left : WM8960, On the right : MT7621
I2C_SDA <----> (97) I2C SDA
I2C SCL <---> (96) I2C SCLK
I2S CLK <---> (9) CTS3_N
I2S LRCLK <---> (12) TXD3
I2S DAC <---> (16) RTS3N
I2S ADC <---> (13) RXD3

Not sure if the connections are ok... I've got a preconfigured HW...

The issues:

  1. Simply cloning the repo to the package/kernel doesn't make the sound module visible under kernel_modules -> sound support

I had to cut out those two lines from the Makefile
+(TARGET_ramips_mt7621||TARGET_ramips_mt76x8):kmod-i2c-mt7628
+!(TARGET_ramips_mt7621||TARGET_ramips_mt76x8):kmod-i2c-ralink \

Modified the dts file as in example:
&i2c {
status = "okay";

codec: wm8960@1a {
	compatible = "wlf,wm8960";
	reg = <0x1a>;
	wlf,shared-lrclk;
	wlf,hp-cfg = <0 0 0>;
	wlf,gpio-cfg = <0 0>;
};

};

&i2s {
status = "okay";
};

/ {
sound {
compatible = "mediatek,mt762x-wm8960-machine";
mediatek,platform = <&i2s>;
mediatek,audio-codec = <&codec>;
audio-routing =
"Headphone", "HP_L",
"Headphone", "HP_R",
"Speaker", "SPK_LN",
"Speaker", "SPK_LP",
"Speaker", "SPK_RN",
"Speaker", "SPK_RP",
"Microphone", "MICB",
"LINPUT1", "Microphone",
"LINPUT2", "Line In",
"RINPUT2", "Line In";
};
};

I also enabled the WM8960 codec and Alsa support through kernel_menuconfig...

The codec is correctly loaded (probing on I2C is OK) but the alsa is not able to detect any sound card....

What am I doing wrong? I'm quite newby to openWRT ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant