<?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のトピックimx93 wrong clock frequency</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx93-wrong-clock-frequency/m-p/2026885#M232941</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;on an imx93 processor, I configured a clock in the device tree with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;flexio2 {                                                                                                                                                                                                         
  assigned-clocks = &amp;lt;&amp;amp;clk IMX93_CLK_FLEXIO2&amp;gt;;                                                                                                                                                                      
  assigned-clock-parents = &amp;lt;&amp;amp;clk IMX93_CLK_SYS_PLL_PFD1_DIV2&amp;gt;;                                                                                                                                                     
  assigned-clock-rates = &amp;lt;80000000&amp;gt;;                                                                                                                                                                              
  status = "okay";                                                                                                                                                                                                
                                                                                                                                                                                                                   
  xx {                                                                                                                                                                                                        
    compatible = "xx,xx";                                                                                                                                                                        
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_xx&amp;gt;;                                                                                                                                                               
    pinctrl-names = "default";                                                                                                                                                                                     
    clocks = &amp;lt;&amp;amp;clk IMX93_CLK_CCM_CKO1&amp;gt;;                                                                                                                                                                            
    assigned-clocks = &amp;lt;&amp;amp;clk IMX93_CLK_CCM_CKO1&amp;gt;;                                                                                                                                                                   
    assigned-clock-rates = &amp;lt;50000000&amp;gt;;                                                                                                                                                                
  };                                                                                                                                                                                                               
};    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I confirmed that the clock freq is configured to be 50 MHz from the driver with a call to clk_get_rate().&lt;/P&gt;&lt;P&gt;But the signal frequency I measure is in fact 10 MHz.&lt;/P&gt;&lt;P&gt;Do you know what could cause the issue ?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 16:08:04 GMT</pubDate>
    <dc:creator>spawn</dc:creator>
    <dc:date>2025-01-13T16:08:04Z</dc:date>
    <item>
      <title>imx93 wrong clock frequency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx93-wrong-clock-frequency/m-p/2026885#M232941</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;on an imx93 processor, I configured a clock in the device tree with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;amp;flexio2 {                                                                                                                                                                                                         
  assigned-clocks = &amp;lt;&amp;amp;clk IMX93_CLK_FLEXIO2&amp;gt;;                                                                                                                                                                      
  assigned-clock-parents = &amp;lt;&amp;amp;clk IMX93_CLK_SYS_PLL_PFD1_DIV2&amp;gt;;                                                                                                                                                     
  assigned-clock-rates = &amp;lt;80000000&amp;gt;;                                                                                                                                                                              
  status = "okay";                                                                                                                                                                                                
                                                                                                                                                                                                                   
  xx {                                                                                                                                                                                                        
    compatible = "xx,xx";                                                                                                                                                                        
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_xx&amp;gt;;                                                                                                                                                               
    pinctrl-names = "default";                                                                                                                                                                                     
    clocks = &amp;lt;&amp;amp;clk IMX93_CLK_CCM_CKO1&amp;gt;;                                                                                                                                                                            
    assigned-clocks = &amp;lt;&amp;amp;clk IMX93_CLK_CCM_CKO1&amp;gt;;                                                                                                                                                                   
    assigned-clock-rates = &amp;lt;50000000&amp;gt;;                                                                                                                                                                
  };                                                                                                                                                                                                               
};    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I confirmed that the clock freq is configured to be 50 MHz from the driver with a call to clk_get_rate().&lt;/P&gt;&lt;P&gt;But the signal frequency I measure is in fact 10 MHz.&lt;/P&gt;&lt;P&gt;Do you know what could cause the issue ?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 16:08:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx93-wrong-clock-frequency/m-p/2026885#M232941</guid>
      <dc:creator>spawn</dc:creator>
      <dc:date>2025-01-13T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx93 wrong clock frequency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx93-wrong-clock-frequency/m-p/2027635#M232989</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The following resource shows how to change DRAM frequency.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/iMX-8M-Mini-Register-Programming-Aid-DRAM-PLL-setting/ta-p/1112094" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/iMX-8M-Mini-Register-Programming-Aid-DRAM-PLL-setting/ta-p/1112094&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is for Mx8MM but it works on Mx93. clocks are described in sect. Clock Control Module (CCM) Chapter 30 i.mx93 reference manual&lt;/P&gt;
&lt;P&gt;in uboot sources one can look at&lt;/P&gt;
&lt;P&gt;&lt;A class="link-titled" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/imx-common?h=imx_v2017.03_4.9.51_imx8m_ga" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/imx-common?h=imx_v2017.03_4.9.51_imx8m_ga" target="_blank" rel="nofollow noopener noreferrer"&gt;imx-common\arm\arch - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in linux one needs to follow clock framework rules:&lt;BR /&gt;&lt;A class="link-titled" title="https://www.kernel.org/doc/Documentation/clk.txt" href="https://www.kernel.org/doc/Documentation/clk.txt" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.kernel.org/doc/Documentation/clk.txt&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A class="link-titled" title="https://elinux.org/images/b/b8/Elc2013_Clement.pdf" href="https://elinux.org/images/b/b8/Elc2013_Clement.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://elinux.org/images/b/b8/Elc2013_Clement.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 14:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx93-wrong-clock-frequency/m-p/2027635#M232989</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-01-14T14:19:45Z</dc:date>
    </item>
  </channel>
</rss>

