trying I2S codec on OpenWrt trunk

ngc
 
Posts: 10
Joined: Mon Dec 12, 2016 10:42 pm

trying I2S codec on OpenWrt trunk

Mon Nov 05, 2018 10:29 pm

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

Vonger
 
Posts: 907
Joined: Sun Oct 19, 2014 6:00 am

Re: trying I2S codec on OpenWrt trunk

Tue Nov 06, 2018 12:25 am

I made similar too, check github.com/vonger/vocore2, es8328 folder

ngc
 
Posts: 10
Joined: Mon Dec 12, 2016 10:42 pm

Re: trying I2S codec on OpenWrt trunk

Tue Nov 06, 2018 5:00 am

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 ?

Vonger
 
Posts: 907
Joined: Sun Oct 19, 2014 6:00 am

Re: trying I2S codec on OpenWrt trunk

Wed Nov 07, 2018 1:44 am

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)

Return to VoCore & VoCore+Dock

Who is online

Users browsing this forum: No registered users and 2 guests