<?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>topic Re: CCM: Changing clock parent freezes system in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851565#M130309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Wolfgang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SAI2 MCLK&amp;nbsp; can be selected from SAI2_CLK_ROOT from CCM or SAI2 MCLK from IOMUX.&lt;BR /&gt;GPR_SAI2_EXT_MCLK_EN=1 enables usage SAI2 external MCLK, from IOMUX.&lt;BR /&gt;&lt;BR /&gt;GPR_SAI2_EXT_MCLK_EN=0, enables usage SAI2 internal MCLK,&amp;nbsp; from CCM&lt;BR /&gt;configured by MSEL field - Selects the audio Master Clock option used to generate an &lt;BR /&gt;internally generated bit clock. Described in sect.13.8.4.1.6 SAI Transmit Configuration 2 &lt;BR /&gt;Register (TCR2) i.MX8MDQ Reference Manual&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please describe in more details these new questions and&lt;/P&gt;&lt;P&gt;provide steps how these issues can be reproduced on i.MX8M EVK&lt;/P&gt;&lt;P&gt;reference board with official NXP linux BSPs on&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.78_1.0.0_ga"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Mar 2019 10:43:32 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-03-04T10:43:32Z</dc:date>
    <item>
      <title>CCM: Changing clock parent freezes system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851562#M130306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have an imx8md processor on a custom board and we need to use CLK_EXT3 as input to one of the SAI modules.&lt;/P&gt;&lt;P&gt;However if we change the assigned parent in the device tree the board freezes without any error during boot up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;amp;sai2 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai2&amp;gt;;&lt;BR /&gt; assigned-clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_SAI2&amp;gt;;&lt;BR /&gt; assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MQ_CLK_EXT3&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If I change the clock parent to any other (e.g. 25M_REF_CLK or IMX8MQ_AUDIO_PLL1_OUT) of the supported clock parents according to reference manual it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pins are configured as required:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;pinctrl_hog: hoggrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX8MQ_IOMUXC_GPIO1_IO06_CCMSRCGPCMIX_EXT_CLK3 0x00000011&amp;nbsp;&lt;BR /&gt; MX8MQ_IOMUXC_GPIO1_IO15_CCMSRCGPCMIX_CLKO2 0x00000011&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same applies to clock slice 117&amp;nbsp;IPP_DO_CLKO2 if I try to reparent to anything other than the default&amp;nbsp;25M_REF_CLK. The system instantly freezes without any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change the above from userspace via the CCM registers the same happens -&amp;gt; freeze:&lt;/P&gt;&lt;P&gt;Set CLKO2 to 32K reference clock:&amp;nbsp;devmem2 0x3038BA84 w 0x17000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reference manual does not mention anything regarding these topics or if there is a special sequence etc.&lt;/P&gt;&lt;P&gt;which must be followed to change parents.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or hints are appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 11:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851562#M130306</guid>
      <dc:creator>wolfgang_baer</dc:creator>
      <dc:date>2019-02-26T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: CCM: Changing clock parent freezes system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851563#M130307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wolfgang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check GPR_SAI2_EXT_MCLK_EN described in&lt;/P&gt;&lt;P&gt;sect.8.2.4.3 GPR2 General Purpose Register (IOMUXC_GPR_GPR2)&lt;/P&gt;&lt;P&gt;i.MX8MDQ Reference Manual &lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 23:25:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851563#M130307</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-02-26T23:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: CCM: Changing clock parent freezes system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851564#M130308</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;thanks for your fast reaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We found the root cause in a malfunction in the FPGA generating the clock for CLK_EXT3. After fixing, the clock was generated correctly and we could switch to the CLK_EXT3 without freezing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this opens two more questions on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I was hoping that we can switch parents also without a clock available at the EXT pin as long as we do not&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ENABLE that clock. This seems not to be the case. There are times the FPGA will be reconfigured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;GPR_SAI2_EXT_MCLK_EN register you mentioned. There is no documentation - only the name of the register.&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; The usage of the EXT_CLK for SAI seems to work without that register set. At least for the above described case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;Can you give some hint what this register actually is supposed to do / control?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks a lot for your help and sharing your expertise,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Wolfgang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851564#M130308</guid>
      <dc:creator>wolfgang_baer</dc:creator>
      <dc:date>2019-03-04T08:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: CCM: Changing clock parent freezes system</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851565#M130309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi Wolfgang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SAI2 MCLK&amp;nbsp; can be selected from SAI2_CLK_ROOT from CCM or SAI2 MCLK from IOMUX.&lt;BR /&gt;GPR_SAI2_EXT_MCLK_EN=1 enables usage SAI2 external MCLK, from IOMUX.&lt;BR /&gt;&lt;BR /&gt;GPR_SAI2_EXT_MCLK_EN=0, enables usage SAI2 internal MCLK,&amp;nbsp; from CCM&lt;BR /&gt;configured by MSEL field - Selects the audio Master Clock option used to generate an &lt;BR /&gt;internally generated bit clock. Described in sect.13.8.4.1.6 SAI Transmit Configuration 2 &lt;BR /&gt;Register (TCR2) i.MX8MDQ Reference Manual&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/reference-manual/IMX8MDQLQRM.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please describe in more details these new questions and&lt;/P&gt;&lt;P&gt;provide steps how these issues can be reproduced on i.MX8M EVK&lt;/P&gt;&lt;P&gt;reference board with official NXP linux BSPs on&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.78_1.0.0_ga"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 10:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CCM-Changing-clock-parent-freezes-system/m-p/851565#M130309</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-03-04T10:43:32Z</dc:date>
    </item>
  </channel>
</rss>

