imx6q SSI help

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6q SSI help

325 Views
spectrum
Senior Contributor I

Hi all,

need some help with linux / SSI interface on imx6q (similar sabreauto board), i am on kernel 3.14 from freescale.

In particular, i have an audio source (FM radio chip) connected to the cpu (i2s, cpu is master).

Datasheet of the radio chip asks to be sure that SSI bitclock is enabled already before enabling his

digital output is enabled. At the same, digital output of the radio chip must be stopped "before" the bitclock is stopped.

So i am trying to be in spec, because this chip someway hangs and doesn't respond in any way to i2c, and this, from datasheet, seems to be due to a non-synchronized digital output enabling.

I could delay the digital output enable, with a work launched from the snd_soc_dai_ops .startup callback.

Then, i cannot disable digital output before the stop of the ssi bitclock (fsl_ssi.c). In whatever point of fsl_ssi.c or snd_soc_dai_ops callbacks i try, i an always after the bitclock stop.

Every hint is appreciated.

Labels (1)
0 Kudos
2 Replies

63 Views
spectrum
Senior Contributor I

Hi Victor,

well, system is configured correctly, imx6q is the master, AM/FM radio chip is the slave. Audio works perfect once SSI transfer is established.

Issue i have is that i should have the SSI clock to start "after" the radio fm chip enables his "digital output" feature. And the SSI clock should stop "before" the radio FM chip disable his "digital output" feature. I cannot actually obtain this from linux, since using an asoc codec driver scheme, SSI clock is started before the chip enables his digital output, and SSI clock is stopped before digital output is disabled.

0 Kudos

63 Views
b36401
NXP TechSupport
NXP TechSupport

Please note that SSI in i.MX6 can be either a clock master or a clock slave.

So first please make sure that you configured the sides (i.MX and FM ones) right.

Also please "reverse" clock direction.

And also please try to play with polarity.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos