<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Network clock (SRCK) not seen</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481706#M76784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with i.MX6 connected to 2 codecs through SS1 &amp;amp; SS2 in I2S master mode.&lt;/P&gt;&lt;P&gt;Both of their clocks are originated from PLL4 (688.128 MHz), their SSI's sys clocks = 12.288 MHz, and their serial BCLKs = 1.536 MHz.&lt;/P&gt;&lt;P&gt;I wanted to connect the codecs' MCLKs, through CPLD, to SSI1_CLK and SSI2_CLK.&lt;/P&gt;&lt;P&gt;Both SSIx_CLKs can be routed to CLKO2 (by setting CCM_CCOSR accordingly) but not simultaneously.&lt;/P&gt;&lt;P&gt;On the other hand, connecting both MCLKs to the same SSIx_CLK causes phase shift problems in the codecs.&lt;/P&gt;&lt;P&gt;So I figured I'll connect the second MCLK through CPLD to the respective network clock (SRCK), which is AUD4_RXC.&lt;/P&gt;&lt;P&gt;In order to do that I set both TXDIR and SYS_CLK_EN to 1 (in SSI2_STCR and SSI2_SCR registers), but nothing appeared on AUD4_RXC (please refer to Figure 61-22 in i.MX6 RM).&lt;/P&gt;&lt;P&gt;Any suggestions why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&amp;nbsp; I've set DISP0_DAT19 pin in IOMUX to AUD4_RXC instead of GPIO_5_13 (PCIE_RST).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And I also set that pad to CMOS output:&amp;nbsp; &lt;/P&gt;&lt;TABLE height="58" style="width: 904px; height: 57px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;__raw_writel(0x1F0F1, IOMUXC_SW_PAD_CTL_PAD_DISP0_DAT19);&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;// PU=22K, Open Drain disabled (CMOS output), Speed=Max&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;BR,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2016 18:00:35 GMT</pubDate>
    <dc:creator>yehudastern</dc:creator>
    <dc:date>2016-02-23T18:00:35Z</dc:date>
    <item>
      <title>Network clock (SRCK) not seen</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481706#M76784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with i.MX6 connected to 2 codecs through SS1 &amp;amp; SS2 in I2S master mode.&lt;/P&gt;&lt;P&gt;Both of their clocks are originated from PLL4 (688.128 MHz), their SSI's sys clocks = 12.288 MHz, and their serial BCLKs = 1.536 MHz.&lt;/P&gt;&lt;P&gt;I wanted to connect the codecs' MCLKs, through CPLD, to SSI1_CLK and SSI2_CLK.&lt;/P&gt;&lt;P&gt;Both SSIx_CLKs can be routed to CLKO2 (by setting CCM_CCOSR accordingly) but not simultaneously.&lt;/P&gt;&lt;P&gt;On the other hand, connecting both MCLKs to the same SSIx_CLK causes phase shift problems in the codecs.&lt;/P&gt;&lt;P&gt;So I figured I'll connect the second MCLK through CPLD to the respective network clock (SRCK), which is AUD4_RXC.&lt;/P&gt;&lt;P&gt;In order to do that I set both TXDIR and SYS_CLK_EN to 1 (in SSI2_STCR and SSI2_SCR registers), but nothing appeared on AUD4_RXC (please refer to Figure 61-22 in i.MX6 RM).&lt;/P&gt;&lt;P&gt;Any suggestions why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&amp;nbsp; I've set DISP0_DAT19 pin in IOMUX to AUD4_RXC instead of GPIO_5_13 (PCIE_RST).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And I also set that pad to CMOS output:&amp;nbsp; &lt;/P&gt;&lt;TABLE height="58" style="width: 904px; height: 57px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;__raw_writel(0x1F0F1, IOMUXC_SW_PAD_CTL_PAD_DISP0_DAT19);&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;// PU=22K, Open Drain disabled (CMOS output), Speed=Max&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;BR,&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481706#M76784</guid>
      <dc:creator>yehudastern</dc:creator>
      <dc:date>2016-02-23T18:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Network clock (SRCK) not seen</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481707#M76785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yehuda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUD4_RXC should be appropriately configured using AUDMUX&lt;/P&gt;&lt;P&gt;for routing&amp;nbsp; SSI1,2 SRC, as AUDMUX port 1,2 connected to SSI1,2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 01:03:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481707#M76785</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-02-24T01:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Network clock (SRCK) not seen</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481708#M76786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was already done.&amp;nbsp;&amp;nbsp; In file: board-mx6q-xxx.h,&amp;nbsp; I added:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;MX6Q_PAD_DISP0_DAT19__AUDMUX_AUD4_RXC,&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;instead of the following line, which I marked as a comment:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;//&lt;/TD&gt;&lt;TD&gt;MX6Q_PAD_DISP0_DAT19__GPIO_5_13,&amp;nbsp;&amp;nbsp; /* PCIE_RST */&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the configuration of the 2nd codec (SSI2, port7, and AUD4):&lt;/P&gt;&lt;P&gt;static struct mxc_audio_platform_data ext_wm8962_data = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; .ssi_num = 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .src_port = 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .ext_port = 4,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .hp_gpio = -1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .hp_active_low = 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .mic_gpio = -1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .mic_active_low = 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .init = mxc_wm8962_init,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .clock_enable = wm8962_clk_enable,&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned above, I can route and measure &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;SSI2_CLK (12.228MHz) to &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;CLKO2, but apparently not to &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;SRCK (AUD4_RXC).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Yehuda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 12:33:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481708#M76786</guid>
      <dc:creator>yehudastern</dc:creator>
      <dc:date>2016-02-24T12:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Network clock (SRCK) not seen</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481709#M76787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yehuda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suggest to printf AUDMUX/CCM registers or attach jtag&lt;/P&gt;&lt;P&gt;then check them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 00:37:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481709#M76787</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-02-25T00:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Network clock (SRCK) not seen</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481710#M76788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was already done.&amp;nbsp;&amp;nbsp; I still have no idea why &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;SSI2_CLK (12.228MHz) doesn't a&lt;/SPAN&gt;&lt;SPAN style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;ppear on &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;SRCK (AUD4_RXC).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FYI, The problem was solved as follows:&lt;/P&gt;&lt;P&gt;The 1st codec's MCLK is connected to SSI1_CLK which is routed to CLKO1.&amp;nbsp; This codec bypasses its internal PLL.&lt;/P&gt;&lt;P&gt;The 2nd codec's MCLK is connected to BCLK (1.536 MHz) through CPLD.&amp;nbsp;&amp;nbsp; This codec uses an internal PLL (with K=32.0, R=2, P=1).&lt;/P&gt;&lt;P&gt;This solution is acceptable as shown in TI's SLAA469, page 4 (Audio Serial Interface Configurations for Audio Codecs), and solved all the problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;BR,&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Yehuda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 15:12:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Network-clock-SRCK-not-seen/m-p/481710#M76788</guid>
      <dc:creator>yehudastern</dc:creator>
      <dc:date>2016-02-25T15:12:31Z</dc:date>
    </item>
  </channel>
</rss>

