<?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中的主题 Re: IMX8MP Setting SYS_PLL frequency</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Setting-SYS-PLL-frequency/m-p/1416610#M187259</link>
    <description>&lt;P&gt;I have managed to sort this. It looks like the IMX8MP PLL frequencies are set in the u-boot file: arch/arm/mach-imx/imx8m/clock_imx8mm.c&lt;/P&gt;&lt;P&gt;There are some set PLL frequencies with appropriate PLL division register values in intpll_configure(). I added to this:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;case MHZ(648):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  /* 24 * 324 / 3 / 2 ^ 2 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  pll_div_ctl_val = INTPLL_MAIN_DIV_VAL(324) | &lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;INTPLL_PRE_DIV_VAL(3) | INTPLL_POST_DIV_VAL(2);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  break;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;The PLL's have a pre integer divider, a feedback divider and an output divide by 2^n divider. Not sure on the recommended PLL operation frequency range.&lt;/P&gt;&lt;P&gt;Then in clock_init() I changed:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;#ifdef DS200I_PLL3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  intpll_configure(ANATOP_SYSTEM_PLL3, MHZ(648));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;#else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (is_imx8mn() || is_imx8mp())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  intpll_configure(ANATOP_SYSTEM_PLL3, MHZ(600));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  intpll_configure(ANATOP_SYSTEM_PLL3, MHZ(750));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;#endif&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;On my DS200i board PLL3 wasn't being used so I could happily change its default frequency. Now my IMX8MP_CLK_IPP_DO_CLKO2 is at 27 MHz.&lt;/P&gt;&lt;P&gt;Not sure if there is better device tree way of doing this.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 08:41:25 GMT</pubDate>
    <dc:creator>TerryBarnaby1</dc:creator>
    <dc:date>2022-02-21T08:41:25Z</dc:date>
    <item>
      <title>IMX8MP Setting SYS_PLL frequency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Setting-SYS-PLL-frequency/m-p/1415237#M187124</link>
      <description>&lt;P&gt;I am adding support for a tp2855 video processing chip to a custom board. This requires 27 MHz from the GPIO1.15 pin using the IMX8MP_CLK_IPP_DO_CLKO2.&lt;/P&gt;&lt;P&gt;I have set the tp2855 device tree settings to have:&lt;/P&gt;&lt;P&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8MP_CLK_IPP_DO_CLKO2&amp;gt;;&lt;BR /&gt;assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MP_SYS_PLL3_OUT&amp;gt;;&lt;BR /&gt;assigned-clock-rates = &amp;lt;27000000&amp;gt;;&lt;/P&gt;&lt;P&gt;IMX8MP_SYS_PLL3_OUT does not appear to be used by anything else. When I do this I get 27.27 MHz presumably because the PLL3 is producing 600 Mhz and there is a simple integer divide going on.&lt;/P&gt;&lt;P&gt;To get better accuracy how do I set the PLL3's core frequency in the device tree or uboot or the kernel as I can't see where I can set this up ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 10:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Setting-SYS-PLL-frequency/m-p/1415237#M187124</guid>
      <dc:creator>TerryBarnaby1</dc:creator>
      <dc:date>2022-02-17T10:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Setting SYS_PLL frequency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Setting-SYS-PLL-frequency/m-p/1416610#M187259</link>
      <description>&lt;P&gt;I have managed to sort this. It looks like the IMX8MP PLL frequencies are set in the u-boot file: arch/arm/mach-imx/imx8m/clock_imx8mm.c&lt;/P&gt;&lt;P&gt;There are some set PLL frequencies with appropriate PLL division register values in intpll_configure(). I added to this:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;case MHZ(648):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  /* 24 * 324 / 3 / 2 ^ 2 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  pll_div_ctl_val = INTPLL_MAIN_DIV_VAL(324) | &lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;INTPLL_PRE_DIV_VAL(3) | INTPLL_POST_DIV_VAL(2);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  break;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;The PLL's have a pre integer divider, a feedback divider and an output divide by 2^n divider. Not sure on the recommended PLL operation frequency range.&lt;/P&gt;&lt;P&gt;Then in clock_init() I changed:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;#ifdef DS200I_PLL3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  intpll_configure(ANATOP_SYSTEM_PLL3, MHZ(648));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;#else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;if (is_imx8mn() || is_imx8mp())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  intpll_configure(ANATOP_SYSTEM_PLL3, MHZ(600));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;  intpll_configure(ANATOP_SYSTEM_PLL3, MHZ(750));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;#endif&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;On my DS200i board PLL3 wasn't being used so I could happily change its default frequency. Now my IMX8MP_CLK_IPP_DO_CLKO2 is at 27 MHz.&lt;/P&gt;&lt;P&gt;Not sure if there is better device tree way of doing this.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 08:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Setting-SYS-PLL-frequency/m-p/1416610#M187259</guid>
      <dc:creator>TerryBarnaby1</dc:creator>
      <dc:date>2022-02-21T08:41:25Z</dc:date>
    </item>
  </channel>
</rss>

