<?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: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow ! in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149461#M239999</link>
    <description>&lt;P&gt;Is there a setting to set it to 1/2?&lt;/P&gt;
&lt;P&gt;&amp;gt;what do you mean? do you mean you need 533Mhz for&amp;nbsp;&lt;SPAN class="lia-message-read"&gt;DRAM_SDCLK, right?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joanxie_0-1754714689138.png" style="width: 608px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351636i41FF8E6A7C302508/image-dimensions/608x222?v=v2" width="608" height="222" role="button" title="joanxie_0-1754714689138.png" alt="joanxie_0-1754714689138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;refer to the figure 5-7, The dedicate DRAM_PLL is used to generate 2x clock at 1066MHz, and use a divider to divide it by 2 to get 533MHz clock with good duty cycle. This 533MHz clock will be&lt;BR /&gt;used as the PHY_MCLK. Meanwhile, the 1066MHz clock will also be divided by 2 with&lt;BR /&gt;the 1/N divider to get 533MHz as the PHY_CLK, there is a 1/N divider used to divide the PHY clockdown to lower frequency such as 266MHz or 133MHz. The 1/N divider is a 3-bit divider&lt;BR /&gt;so N can be 2 to 8. so just set this 1/N to 1/2, you can get 533Mhz&lt;/P&gt;</description>
    <pubDate>Sat, 09 Aug 2025 04:49:57 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2025-08-09T04:49:57Z</dc:date>
    <item>
      <title>DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2148956#M239969</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;When CCM_ANALOG_PLL_DDR is set to 0x0000302C, DRAM_SDCLK0 is 132MHz.&lt;/P&gt;&lt;P&gt;So when the TEST_DIV_SELECT bit of CCM_ANALOG_PLL_DDR is set to 0x01 and set to 0x0020302C, DRAM_SDCLK0 is about 270MHz.&lt;/P&gt;&lt;P&gt;It is half of 533Mhz.&lt;/P&gt;&lt;P&gt;DRAM_PHYM_ALT_CLK_ROOT and DRAM_ALT_CLK_ROOT are set to DDR_PLL_DIV2.&lt;/P&gt;&lt;P&gt;Is there a setting to set it to 1/2?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 07:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2148956#M239969</guid>
      <dc:creator>tamotsu</dc:creator>
      <dc:date>2025-08-08T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149461#M239999</link>
      <description>&lt;P&gt;Is there a setting to set it to 1/2?&lt;/P&gt;
&lt;P&gt;&amp;gt;what do you mean? do you mean you need 533Mhz for&amp;nbsp;&lt;SPAN class="lia-message-read"&gt;DRAM_SDCLK, right?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joanxie_0-1754714689138.png" style="width: 608px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/351636i41FF8E6A7C302508/image-dimensions/608x222?v=v2" width="608" height="222" role="button" title="joanxie_0-1754714689138.png" alt="joanxie_0-1754714689138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;refer to the figure 5-7, The dedicate DRAM_PLL is used to generate 2x clock at 1066MHz, and use a divider to divide it by 2 to get 533MHz clock with good duty cycle. This 533MHz clock will be&lt;BR /&gt;used as the PHY_MCLK. Meanwhile, the 1066MHz clock will also be divided by 2 with&lt;BR /&gt;the 1/N divider to get 533MHz as the PHY_CLK, there is a 1/N divider used to divide the PHY clockdown to lower frequency such as 266MHz or 133MHz. The 1/N divider is a 3-bit divider&lt;BR /&gt;so N can be 2 to 8. so just set this 1/N to 1/2, you can get 533Mhz&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 04:49:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149461#M239999</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-08-09T04:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149549#M240009</link>
      <description>&lt;P&gt;Hi Joanxie.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I understand the diagram you explained.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, the reference manual does not explain which register FASTMIX is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me the register name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In this case, should TEST_DIV_SELECT of CCM_ANALOG_PLL_DDRn be set to 0x00?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 00:33:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149549#M240009</guid>
      <dc:creator>tamotsu</dc:creator>
      <dc:date>2025-08-11T00:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149942#M240020</link>
      <description>&lt;P&gt;I checked the source code as below&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/arch/arm/mach-imx/mx7/clock.c#L162" target="_blank"&gt;https://github.com/nxp-imx/uboot-imx/blob/lf_v2025.04/arch/arm/mach-imx/mx7/clock.c#L162&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;checked the function&amp;nbsp;decode_pll&lt;/P&gt;
&lt;P&gt;case PLL_DDR:&lt;BR /&gt;reg = readl(&amp;amp;ccm_anatop-&amp;gt;pll_ddr);&lt;/P&gt;
&lt;P&gt;if (reg &amp;amp; CCM_ANALOG_PLL_DDR_POWERDOWN_MASK)&lt;BR /&gt;return 0;&lt;/P&gt;
&lt;P&gt;num = ccm_anatop-&amp;gt;pll_ddr_num;&lt;BR /&gt;denom = ccm_anatop-&amp;gt;pll_ddr_denom;&lt;/P&gt;
&lt;P&gt;if (reg &amp;amp; CCM_ANALOG_PLL_DDR_BYPASS_MASK)&lt;BR /&gt;return MXC_HCLK;&lt;/P&gt;
&lt;P&gt;div_sel = (reg &amp;amp; CCM_ANALOG_PLL_DDR_DIV_SELECT_MASK) &amp;gt;&amp;gt;&lt;BR /&gt;CCM_ANALOG_PLL_DDR_DIV_SELECT_SHIFT;&lt;/P&gt;
&lt;P&gt;return infreq * (div_sel + num / denom);&lt;/P&gt;
&lt;P&gt;so the formula is&amp;nbsp;&lt;SPAN&gt;24M&lt;/SPAN&gt;&lt;SPAN&gt;*(DIV_SELECT+(NUM/DENOM)), div_sel is from &lt;SPAN class="test-id__field-value slds-form-element__static slds-grow word-break-ie11"&gt;CCM_ANALOG_PLL_DDR, mum is from&amp;nbsp;CCM_ANALOG_PLL_DDR_NUM) and denom is from&amp;nbsp;CCM_ANALOG_PLL_DDR_DENOM&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 09:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2149942#M240020</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-08-11T09:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2151226#M240064</link>
      <description>&lt;P&gt;Hi Joanxie.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm building uboot-2022.01.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code you showed is get_ddrc_clk(void).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I found in this code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;reg = readl(&amp;amp;ccm_reg-&amp;gt;root[DRAM_CLK_ROOT].target_root;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DRAM_CLK_ROOT, which is not written in "Fugure 5-7.DRAM_Clock Structure", is loaded into reg.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The initial value of DRAM_CLK_ROOT was 0x00000001.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Clearing DRAM_CLK_ROOT made it display correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;However, DRAM_SDCKE0 is 270MHz.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Is this correct?&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I checked it with an oscilloscope.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Best regards.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 02:12:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2151226#M240064</guid>
      <dc:creator>tamotsu</dc:creator>
      <dc:date>2025-08-13T02:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2151938#M240101</link>
      <description>&lt;P&gt;the driver I showed just tell you the formula, you need read the register&amp;nbsp;&lt;SPAN&gt;CCM_ANALOG_PLL_DDR, CCM_ANALOG_PLL_DDR_NUM and&amp;nbsp; CCM_ANALOG_PLL_DDR_DENOM, to check if they are correct&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 09:44:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2151938#M240101</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-08-15T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: DRAM_SDCLK0 of i.MX7D is about 270MHz, 　it's slow !</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2152566#M240124</link>
      <description>&lt;P&gt;Hi Joanxie.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is a 1/2 difference between the calculated result and the actual DDR_SDCKE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know why, but I'll end it here for now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As the frequency increases, the voltage level of DDR_SDCLKE decreases.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So I think about lowering the frequency.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2025 00:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/DRAM-SDCLK0-of-i-MX7D-is-about-270MHz-it-s-slow/m-p/2152566#M240124</guid>
      <dc:creator>tamotsu</dc:creator>
      <dc:date>2025-08-15T00:33:26Z</dc:date>
    </item>
  </channel>
</rss>

