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
trying I2S codec on OpenWrt trunk
- ngc
- Posts: 10
- Joined: Mon Dec 12, 2016 10:42 pm
- Vonger
- Posts: 907
- Joined: Sun Oct 19, 2014 6:00 am
Re: trying I2S codec on OpenWrt trunk
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
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 ?
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
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)
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)
4 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests