[imx8qxp][linux][adau1761] Fail to porting adau1761 codec to imx8qxpm.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[imx8qxp][linux][adau1761] Fail to porting adau1761 codec to imx8qxpm.

Jump to solution
689 Views
WolsYang
Contributor IV

Hi NXP,

I am trying to port adau1761 to imx8qxp, but get fail when yocto do_copile.

Reference to non-existent node or label "adau1761"

The kernel version is 5.15.

I have already added node "adau1761" like below in imx8x-mek.dtsi.

Please help me :'(

/{
....
sound-adau1761 {
compatible = "simple-audio-card";
simple-audio-card,name = "adau1761-Sound-Card";
simple-audio-card,format = "left_j";
simple-audio-card,bitclock-master = <&codec_dai>;
simple-audio-card,frame-master = <&codec_dai>;
simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Headphone", "Headphone Jack",
"Speaker", "External Speaker";
simple-audio-card,routing =
"MIC_IN", "Microphone Jack",
"Headphone Jack", "HP_OUT",
"External Speaker", "LINE_OUT";

cpu_dai: simple-audio-card,cpu {
sound-dai = <&sai1>;
};

codec_dai: simple-audio-card,codec {
sound-dai = <&adau1761>;
clocks = <&mclkout0_lpcg 0>;
};
};
 
sound-cs42888 {
....
};
&cm40_i2c {
       ...
adau1761: adau1761@3b {
compatible = "adi,adau1761";
reg = <0x3b>;
clocks = <&mclkout0_lpcg 0>;
clock-names = "mclk";
assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
<&mclkout0_lpcg 0>;
};
};
 
0 Kudos
1 Solution
682 Views
WolsYang
Contributor IV

The problem is because some *-rpmsg.dts delete "cm40_i2c" node.

You have to fix it your way.

View solution in original post

0 Kudos
1 Reply
683 Views
WolsYang
Contributor IV

The problem is because some *-rpmsg.dts delete "cm40_i2c" node.

You have to fix it your way.

0 Kudos