Page 1 of 1

trying I2S codec on OpenWrt trunk

Posted: Mon Nov 05, 2018 10:29 pm
by ngc
I tried ES8388 I2S codec on OpenWrt trunk tree.
I got work to playing wav file using aplay. But, recording does not work yet.

I posted the pull request to OpenWrt. (Not merged yet)
https://github.com/openwrt/openwrt/pull/1446

- using simple-card by device tree binding descriptions
- modified pinctrl driver to enable configuring REFCLK

Re: trying I2S codec on OpenWrt trunk

Posted: Tue Nov 06, 2018 12:25 am
by Vonger
I made similar too, check github.com/vonger/vocore2, es8328 folder

Re: trying I2S codec on OpenWrt trunk

Posted: Tue Nov 06, 2018 5:00 am
by ngc
I missed the board to post this topic ... I should post this to "VoCore2/Lite/Ultimate" board.

mt7628an.dtsi:
~~~~~~~~~~~~~~~
clkctrl: clkctrl {
compatible = "ralink,rt2880-clock";
#clock-cells = <1>;
};
~~~~~~~~~~~~~~~

your VOCORE2.dts:
~~~~~~~~~~~~~~~
codec: es8388@10 {
#sound-dai-cells = <0>;
compatible = "everest,es8328";
reg = <0x10>;

clocks = <&clkctrl 20>;
clock-names = "refclk";
};
~~~~~~~~~~~~~~~

I could not find any drivers which has "ralink,rt2880-clock" compatible name.
So, I think that es8328 driver cannot bind clock.
The ramips platform has no generic clock driver and clocks are registered with fixed names in arch/mips/ralink/mt7620.c

Can you really get work the above descriptions ?

Re: trying I2S codec on OpenWrt trunk

Posted: Wed Nov 07, 2018 1:44 am
by Vonger
You can check my patch, I disable the clk by the patch.
Also I write a clock driver too, not test yet. :) if you want to have a try, check this: http://vonger.cn/misc/vocore2/clk-mt76x8.c (not sure if it is work)
and you need to also patch pinctrl in arch/mips/.../mt7628.c its refclk name is conflict. I have a patch in github to fix that(not commit to openwrt yet)