Hello Ling Lin,
RIght Now, I am working on ES8316 for rockpro64 board, below is my dts file snashot.
========================================================
&i2c1 {
558 i2c-scl-rising-time-ns = <300>;
559 i2c-scl-falling-time-ns = <15>;
560 status = "okay";
561
562 es8316: es8316@11 {
563 #sound-dai-cells = <0>;
564 compatible = "everest,es8316";
565 reg = <0x11>;
566 clocks = <&cru SCLK_I2S_8CH_OUT>;
567 clock-names = "mclk";
568 pinctrl-names = "default";
569 pinctrl-0 = <&i2s_8ch_mclk>;
570 hp-det-gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>;
571 };
572 };
es8316-sound {
114 status = "okay";
115 compatible = "simple-audio-card";
116 simple-audio-card,format = "i2s";
117 simple-audio-card,name = "rockchip,es8316-codec";
118 simple-audio-card,mclk-fs = <256>;
119 simple-audio-card,widgets =
120 "Headphone", "Headphone Jack";
121 simple-audio-card,routing =
122 "Headphone Jack", "HPOL",
123 "Headphone Jack", "HPOR";
124 simple-audio-card,cpu {
125 sound-dai = <&i2s1>;
126 };
127 simple-audio-card,codec {
128 sound-dai = <&es8316>;
129 };
130 };
===================================================================
but i got following error:
[ 83.424483] es8316 1-0010: No sysclk provided
[ 83.425020] es8316 1-0010: ASoC: can't open codec ES8316 HiFi: -22
Can you share your
sound/soc/codecs/es8316.c
and device tree code?
Regards,
Pragnesh