Title: I2S MCLK on Core-3399-JD4 [Print This Page] Author: alex.mamonov Time: 9/5/2019 17:38 Title: I2S MCLK on Core-3399-JD4 Last edited by alex.mamonov In 9/5/2019 18:13 Editor
Hi!
I'm trying to use I2S1 on Firefly Core-3399-JD4 with TLV320AIC3100 codec. This is how I describe it in the dts:
The drivers starts without errors and I can see audio device in aplay -l output, but there is no sound and I can't see the clocks on MCLK pin. How can I get MCLK on?
Author: penguin Time: 9/18/2019 10:56
You need to specify `clock`, take rt5640 as an example:
&i2c1 {
status = "okay";
i2c-scl-rising-time-ns = <300>;
i2c-scl-falling-time-ns = <15>;
rt5640: rt5640@1c {
#sound-dai-cells = <0>;
compatible = "realtek,rt5640";
reg = <0x1c>;
clocks = <&cru SCLK_I2S_8CH_OUT>;
clock-names = "mclk";
realtek,in1-differential;
pinctrl-names = "default";
pinctrl-0 = <&rt5640_hpcon &i2s_8ch_mclk>;
hp-con-gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
//hp-det-gpio = <&gpio4 28 GPIO_ACTIVE_LOW>;
io-channels = <&saradc 4>;
hp-det-adc-value = <500>;
};
}
Copy the code
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)