Hi,
i made little changes in this dtsi file- "arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-010.dtsi
&i2c4 {
pinctrl-names = "default","gpio";
pinctrl-0 = <&pinctrl_i2c4>;
pinctrl-1 = <&pinctrl_i2c4_gpio>;
sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; //21
scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; //20
clock-frequency = <400000>;
status = "okay";
clock-frequency = <100000>;
codec: wm8960@1a {
compatible = "wlf,wm8960";
reg = <0x1a>;
#sound-dai-cells = <0>;
pinctrl-0 = <&pinctrl_i2c4>;
//clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI2_MCLK1>;
clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SAI2_MCLK1>;
clock-names = "mclk";
wlf,shared-lrclk;
status="okay";
};
sound-wm8960 {
compatible = "fsl,imx7d-evk-wm8960", "fsl,imx-audio-wm8960";
model = "wm8960-audio";
cpu-dai = <&sai2>;
audio-codec = <&codec>;
asrc-controller = <&easrc>;
codec-master;
/* JD2: hp detect high for headphone*/
hp-det = 0>;
hp-det-gpios = <&gpio4 28 1>;
mic-det-gpios = <&gpio4 28 1>;
audio-routing =
"Headphone Jack", "HP_L",
"Headphone Jack", "HP_R",
"Ext Spk", "SPK_LP",
"Ext Spk", "SPK_LN",
"Ext Spk", "SPK_RP",
"Ext Spk", "SPK_RN",
"LINPUT1", "Mic Jack",
"LINPUT3", "Mic Jack",
"Mic Jack", "MICB",
"CPU-Playback", "ASRC-Playback",
"Playback", "CPU-Playback",
"ASRC-Capture", "CPU-Capture",
"CPU-Capture", "Capture";
};
in compilation time i'm getting this warning
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-010.dtsi:56.27-58.5: Warning (sound_dai_property): /sound-peb-av-10/simple-audio-card,codec: Missing property '#sound-dai-cells' in node /soc@0/bus@30800000/i2c@30a50000/wm8960@1a or bad phandle (referred from sound-dai[0])
1. root@phyboard-pollux-imx8mp-2:~# i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- UU -- 1a -- -- -- -- --
#imx8mplus #imx8mp