Hello Nxp,
I am interfacing TLV320AIC3100 audio codec chip with imx8mp custom board.
I have refer some forum and written device tree as per below. but I am getting error.
************************************************************************************************************
/{
sound-tlv320aic31xx {
compatible = "simple-audio-card";
simple-audio-card,name = "tlv320aic31xx-Codec";
simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&cpudai2>;
simple-audio-card,bitclock-master = <&cpudai2>;
simple-audio-card,widgets =
"Speaker", "Speaker Jack";
simple-audio-card,routing =
"Speaker Jack", "SPK";
cpudai2: simple-audio-card,cpu {
sound-dai = <&sai3>;
};
simple-audio-card,codec {
sound-dai = <&codec1>;
system-clock-frequency = <12288000>;
};
};
}
************************************************************************************************************
&I2C3{
codec1: codec@18 {
compatible = "ti,tlv320aic3100";
reg = <0x18>;
//pinctrl-0 = <&pinctrl_audio_reset_31xx>;
reset-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
#sound-dai-cells = <0>;
ai31xx-micbias-vg = <1>;
HPVDD-supply = <®_3p3v>;
SPRVDD-supply = <®_3p3v>;
SPLVDD-supply = <®_3p3v>;
AVDD-supply = <®_3p3v>;
IOVDD-supply = <®_3p3v>;
DVDD-supply = <®_1p8v>;
};
};
************************************************************************************************************
&sai3 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>;
assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
assigned-clock-rates = <12288000>;
clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_IPG>, <&clk IMX8MP_CLK_DUMMY>,
<&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_MCLK1>, <&clk IMX8MP_CLK_DUMMY>,
<&clk IMX8MP_CLK_DUMMY>;
clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";
fsl,sai-mclk-direction-output;
status = "okay";
};
************************************************************************************************************
ERROR (phandle_references): /sound-tlv320aic31xx/simple-audio-card,codec: Reference to non-existent node or label "codec1"
In any other dts file I need to add that node or not?