How to add ssi in TDM (network) mode to device tree imx6

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

How to add ssi in TDM (network) mode to device tree imx6

Jump to solution
1,789 Views
j-g
Contributor III

Hello,

I'm currently trying to upgrade from kernel 3.0.35 to 3.10.17 and have been successful except for placing the ssi in network mode (8 channel TDM).  In kernel 3.0.35 I edited /sound/soc/imx/imx-sgtl5000.c to setup the ssi to SND_SOC_DAIFMT_DSP_A and SND_SOC_DAIFMT_IB_NF, also SSI_SCR_SYN and SSI_SCR_NET bits were being set (correct configuration for our hardware).  Can I accomplish this through the device tree?  If not what is the alternative?  I threw some printk statements in /sound/soc/fsl/imx-ssi.c but nothing printed out so I'm assuming the code is not being run, not sure.  Thanks for any help.

This is in my current dtsi file (which I'm assuming is setting I2S 2 channel mode, ssi is slave)

&ssi1 {

fsl,mode = "i2s-slave";
status = "okay";

};

Labels (6)
0 Kudos
1 Solution
981 Views
fabio_estevam
NXP Employee
NXP Employee

With device tree the ssi driver is sound/soc/fsl/fsl_ssi.c.

sound/soc/fsl/imx-ssi.c only works with non-dt version.

View solution in original post

0 Kudos
4 Replies
981 Views
calebcrome
Contributor I

Hi there,

Have you had any luck getting TDM to work with the SSI port in Linux?  We're in need of that -- it would be super useful if you could share your experience, or even better, patches :-)

Thanks

-Caleb

0 Kudos
981 Views
jesseforgues
Contributor I

I am also interested in this topic.

0 Kudos
982 Views
fabio_estevam
NXP Employee
NXP Employee

With device tree the ssi driver is sound/soc/fsl/fsl_ssi.c.

sound/soc/fsl/imx-ssi.c only works with non-dt version.

0 Kudos
981 Views
j-g
Contributor III

Thank you very much Fabio for the information.  With that knowledge I'll be able to continue on for a bit.

0 Kudos