Interfacing WM8960 codec with IMX6solosx through with audmux as the ssi interface

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

Interfacing WM8960 codec with IMX6solosx through with audmux as the ssi interface

495 Views
jaggu7
Contributor I

Hello

1. I want to interface the wm8960 audio codec with Udoo neo full development board imx6solosx
2. please provide me any dts examples to configure the wm8960 as slave or master
3. I am using kernel 4.17 version
4. I followed the wm8962 method in imx6d-sdb.dts but not able to play any sound
5. I have attached the dts and dtsi file please 
6. I think I am doing wrong in the clock settings
7. Please point me to any useful resources or links 

 

sound {
compatible = "fsl,imx6sx-sdb-wm8960", "fsl,imx-audio-wm8960";
model = "wm8960-audio";
ssi-controller = <&ssi2>;
audio-codec = <&codec>;
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";
mux-int-port = <2>;
mux-ext-port = <6>;
};
&audmux {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audmux>;
status = "okay";
};

&i2c2 {
clock_frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>;
status = "okay";

codec: wm8960@1a {
#sound-dai-cells = <0>;
compatible = "wlf,wm8960";
reg = <0x1a>;
clocks = <&clks IMX6SX_CLK_AUDIO>;
};
};


&ssi2 {
status = "okay";
};

 

pinctrl_audmux: audmuxgrp {
fsl,pins =
<MX6SX_PAD_CSI_DATA00__AUDMUX_AUD6_TXC 0x130b0>,
<MX6SX_PAD_CSI_DATA01__AUDMUX_AUD6_TXFS 0x130b0>,
<MX6SX_PAD_CSI_HSYNC__AUDMUX_AUD6_TXD 0x120b0>,
<MX6SX_PAD_CSI_VSYNC__AUDMUX_AUD6_RXD 0x130b0>,
<MX6SX_PAD_CSI_PIXCLK__AUDMUX_MCLK 0x130b0>;
};

pinctrl_i2c2: i2c2grp {
fsl,pins =
<MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1>,
<MX6SX_PAD_GPIO1_IO02__I2C2_SCL 0x4001b8b1>;
};

0 Kudos
1 Reply

487 Views
igorpadykov
NXP Employee
NXP Employee

Hi jagath

 

one can look at similar example on

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6sxscm-evb.dts?h=scm-...

 

Best regards
igor

0 Kudos