<?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 Issue in Configuring PLL4 frequency in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-Configuring-PLL4-frequency/m-p/622890#M94451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;We want to interface an audio codec to imx6dl processor. We are using PLL4 for SSI2. We are getting a value 147.456 MHz for PLL4 in the clock summary.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;However, the PLL4 frequency range is 650MHz to 1.3GHz as per the datasheet.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&amp;nbsp;While debugging we found that in the function clk_pllv3_av_set_rate() (), (ref:arch/arm/mach-imx/clk-pllv3.c), the value written to the register CCM_ANALOG_PLL_AUDIO(0x70) is 0x1029. This means the DIV_SELECT has a value of 0x29.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;However, when we read this back immediately after writing, &amp;nbsp;we are getting a value 0x1006. (ie DIV_SELECT is 0x06).&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Please help us understand why the register is not changing after writing the required value? It looks like it is not changing from 0x06 which is the default value on reset.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 14:30:08 GMT</pubDate>
    <dc:creator>femyvarghese</dc:creator>
    <dc:date>2016-12-19T14:30:08Z</dc:date>
    <item>
      <title>Issue in Configuring PLL4 frequency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-Configuring-PLL4-frequency/m-p/622890#M94451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;We want to interface an audio codec to imx6dl processor. We are using PLL4 for SSI2. We are getting a value 147.456 MHz for PLL4 in the clock summary.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;However, the PLL4 frequency range is 650MHz to 1.3GHz as per the datasheet.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;&amp;nbsp;While debugging we found that in the function clk_pllv3_av_set_rate() (), (ref:arch/arm/mach-imx/clk-pllv3.c), the value written to the register CCM_ANALOG_PLL_AUDIO(0x70) is 0x1029. This means the DIV_SELECT has a value of 0x29.&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;However, when we read this back immediately after writing, &amp;nbsp;we are getting a value 0x1006. (ie DIV_SELECT is 0x06).&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;Please help us understand why the register is not changing after writing the required value? It looks like it is not changing from 0x06 which is the default value on reset.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-Configuring-PLL4-frequency/m-p/622890#M94451</guid>
      <dc:creator>femyvarghese</dc:creator>
      <dc:date>2016-12-19T14:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in Configuring PLL4 frequency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Issue-in-Configuring-PLL4-frequency/m-p/622891#M94452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi femy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to narrow down problem if this is not caused by linux permissions, please&lt;/P&gt;&lt;P&gt;try attached bare metal pll example from sdk (you can request full sdk creating service request).&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, 20 Dec 2016 00:00:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Issue-in-Configuring-PLL4-frequency/m-p/622891#M94452</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-20T00:00:55Z</dc:date>
    </item>
  </channel>
</rss>

