<?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: Lower CPU Freq in imx8mp in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1703660#M210662</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182104"&gt;@xgarcia&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;I am using the 5.15.71-2.2.1 release:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/imx-manifest/blob/imx-linux-kirkstone/README.md" target="_blank"&gt;https://github.com/nxp-imx/imx-manifest/blob/imx-linux-kirkstone/README.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I add the next lines to the opp table to set the lower frequency to the CPU:&lt;/P&gt;
&lt;P&gt;opp-800000000 {&lt;BR /&gt;opp-hz = /bits/ 64 &amp;lt;800000000&amp;gt;;&lt;BR /&gt;opp-microvolt = &amp;lt;850000&amp;gt;;&lt;BR /&gt;opp-supported-hw = &amp;lt;0x8a0&amp;gt;, &amp;lt;0x7&amp;gt;;&lt;BR /&gt;clock-latency-ns = &amp;lt;150000&amp;gt;;&lt;BR /&gt;opp-suspend;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;opp-1000000000 {&lt;BR /&gt;opp-hz = /bits/ 64 &amp;lt;1000000000&amp;gt;;&lt;BR /&gt;opp-microvolt = &amp;lt;850000&amp;gt;;&lt;BR /&gt;opp-supported-hw = &amp;lt;0x8a0&amp;gt;, &amp;lt;0x7&amp;gt;;&lt;BR /&gt;clock-latency-ns = &amp;lt;150000&amp;gt;;&lt;BR /&gt;opp-suspend;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;The following are some of the more frequently used commands:&lt;BR /&gt;These commands return information about the system and the current settings.&lt;BR /&gt;• The kernel is pre-configured to support only certain frequencies. The list of frequencies currently supported&lt;BR /&gt;can be obtained from:&lt;BR /&gt;cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies&lt;BR /&gt;• To get the available scaling governors:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/scaling_available_governors&lt;BR /&gt;• To check the current CPU frequency:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq&lt;BR /&gt;The frequency is displayed depending on the governor set.&lt;BR /&gt;• To check the maximum frequency:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq&lt;BR /&gt;• To check the minimum frequency:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_min_freq&lt;BR /&gt;These commands set a constant CPU frequency:&lt;BR /&gt;• Use the maximum frequency:&lt;BR /&gt;echo performance &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;BR /&gt;• Use the current frequency to be the constant frequency:&lt;BR /&gt;echo userspace &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;BR /&gt;• The following two commands set the scaling governor to a specified frequency, if that frequency is supported.&lt;BR /&gt;If the frequency is not supported, the closest supported frequency is used:&lt;BR /&gt;echo userspace &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;BR /&gt;echo &amp;lt;frequency&amp;gt; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chavira_0-1691769851117.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/236122iF841EB8A15F9A2CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chavira_0-1691769851117.png" alt="Chavira_0-1691769851117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2023 16:04:27 GMT</pubDate>
    <dc:creator>Chavira</dc:creator>
    <dc:date>2023-08-11T16:04:27Z</dc:date>
    <item>
      <title>Lower CPU Freq in imx8mp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1703005#M210599</link>
      <description>&lt;P&gt;I'm currently utilizing &lt;STRONG&gt;Yocto's Kirkstone&lt;/STRONG&gt; (last LTS) version with kernel 5.15.60 for my &lt;STRONG&gt;imx8mp&lt;/STRONG&gt; project.&lt;BR /&gt;&lt;BR /&gt;I need help in expanding the available frequency ranges,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8mp:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available_frequencies
1200000 1600000

root@imx8mp:/sys/devices/system/cpu/cpu0/cpufreq# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 0 1 2 3
  maximum transition latency: 182 us.
  hardware limits: 1.20 GHz - 1.60 GHz
  available frequency steps: 1.20 GHz, 1.60 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance, schedutil
  current policy: frequency should be within 1.20 GHz and 1.60 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;I'm attempting to reduce the CPU frequency to 0.8GHz&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;To achieve this, I've tried editing the `a53_opp_table` in the `&lt;STRONG&gt;imx8mp.dtsi&lt;/STRONG&gt;` file without success:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    a53_opp_table: opp-table {
        compatible = "operating-points-v2";
        opp-shared;

+        opp-800000000 {
+            opp-hz = /bits/ 64 &amp;lt;800000000&amp;gt;;
+            opp-microvolt = &amp;lt;850000&amp;gt;;
+            /* opp-supported-hw = &amp;lt;0x??&amp;gt;, &amp;lt;0x??&amp;gt;; */
+            clock-latency-ns = &amp;lt;150000&amp;gt;;
+            opp-suspend;
+        };

        opp-1200000000 {
            opp-hz = /bits/ 64 &amp;lt;1200000000&amp;gt;;
            opp-microvolt = &amp;lt;850000&amp;gt;;
            opp-supported-hw = &amp;lt;0x8a0&amp;gt;, &amp;lt;0x7&amp;gt;;
            clock-latency-ns = &amp;lt;150000&amp;gt;;
            opp-suspend;
        };

        opp-1600000000 {
            opp-hz = /bits/ 64 &amp;lt;1600000000&amp;gt;;
            opp-microvolt = &amp;lt;950000&amp;gt;;
            opp-supported-hw = &amp;lt;0xa0&amp;gt;, &amp;lt;0x7&amp;gt;;
            clock-latency-ns = &amp;lt;150000&amp;gt;;
            opp-suspend;
        };

        opp-1800000000 {
            opp-hz = /bits/ 64 &amp;lt;1800000000&amp;gt;;
            opp-microvolt = &amp;lt;1000000&amp;gt;;
            opp-supported-hw = &amp;lt;0x20&amp;gt;, &amp;lt;0x3&amp;gt;;
            clock-latency-ns = &amp;lt;150000&amp;gt;;
            opp-suspend;
        };
    };&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Adding this entry does not have any effect. Could you please advise if there are additional configurations that need to be modified? which are the correct values for opp-supported-hw option?&lt;BR /&gt;&lt;BR /&gt;Additionally, it seems that the 1.8GHz frequency is not active, leading me to believe that further adjustments might be necessary.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your prompt assistance.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1703005#M210599</guid>
      <dc:creator>xgarcia</dc:creator>
      <dc:date>2023-08-10T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lower CPU Freq in imx8mp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1703660#M210662</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182104"&gt;@xgarcia&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;I am using the 5.15.71-2.2.1 release:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/imx-manifest/blob/imx-linux-kirkstone/README.md" target="_blank"&gt;https://github.com/nxp-imx/imx-manifest/blob/imx-linux-kirkstone/README.md&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I add the next lines to the opp table to set the lower frequency to the CPU:&lt;/P&gt;
&lt;P&gt;opp-800000000 {&lt;BR /&gt;opp-hz = /bits/ 64 &amp;lt;800000000&amp;gt;;&lt;BR /&gt;opp-microvolt = &amp;lt;850000&amp;gt;;&lt;BR /&gt;opp-supported-hw = &amp;lt;0x8a0&amp;gt;, &amp;lt;0x7&amp;gt;;&lt;BR /&gt;clock-latency-ns = &amp;lt;150000&amp;gt;;&lt;BR /&gt;opp-suspend;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;opp-1000000000 {&lt;BR /&gt;opp-hz = /bits/ 64 &amp;lt;1000000000&amp;gt;;&lt;BR /&gt;opp-microvolt = &amp;lt;850000&amp;gt;;&lt;BR /&gt;opp-supported-hw = &amp;lt;0x8a0&amp;gt;, &amp;lt;0x7&amp;gt;;&lt;BR /&gt;clock-latency-ns = &amp;lt;150000&amp;gt;;&lt;BR /&gt;opp-suspend;&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;The following are some of the more frequently used commands:&lt;BR /&gt;These commands return information about the system and the current settings.&lt;BR /&gt;• The kernel is pre-configured to support only certain frequencies. The list of frequencies currently supported&lt;BR /&gt;can be obtained from:&lt;BR /&gt;cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies&lt;BR /&gt;• To get the available scaling governors:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/scaling_available_governors&lt;BR /&gt;• To check the current CPU frequency:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq&lt;BR /&gt;The frequency is displayed depending on the governor set.&lt;BR /&gt;• To check the maximum frequency:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq&lt;BR /&gt;• To check the minimum frequency:&lt;BR /&gt;cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_min_freq&lt;BR /&gt;These commands set a constant CPU frequency:&lt;BR /&gt;• Use the maximum frequency:&lt;BR /&gt;echo performance &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;BR /&gt;• Use the current frequency to be the constant frequency:&lt;BR /&gt;echo userspace &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;BR /&gt;• The following two commands set the scaling governor to a specified frequency, if that frequency is supported.&lt;BR /&gt;If the frequency is not supported, the closest supported frequency is used:&lt;BR /&gt;echo userspace &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;BR /&gt;echo &amp;lt;frequency&amp;gt; &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chavira_0-1691769851117.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/236122iF841EB8A15F9A2CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chavira_0-1691769851117.png" alt="Chavira_0-1691769851117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 16:04:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1703660#M210662</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2023-08-11T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lower CPU Freq in imx8mp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1756040#M215602</link>
      <description>&lt;P&gt;opp-800000000 { opp-hz = /bits/ 64 &amp;lt;800000000&amp;gt;; opp-microvolt = &amp;lt;850000&amp;gt;; opp-supported-hw = &amp;lt;0x8a0&amp;gt;, &amp;lt;0x7&amp;gt;; clock-latency-ns = &amp;lt;150000&amp;gt;; opp-suspend; };&lt;/P&gt;&lt;P&gt;What does&amp;nbsp;opp-supported-hw&amp;nbsp;&amp;nbsp; mean? Why can this value be set to be the same as 1.2Ghz&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 06:35:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1756040#M215602</guid>
      <dc:creator>mengfei</dc:creator>
      <dc:date>2023-11-13T06:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lower CPU Freq in imx8mp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1756044#M215603</link>
      <description>&lt;P&gt;If I want to reduce power consumption, the frequency should be set to 800Mhz and the voltage should also be reduced. The voltage value you provided for the 800Mhz node is the same as 1.2Ghz. If I want to reduce the voltage, what is the recommended voltage value&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 06:38:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-Freq-in-imx8mp/m-p/1756044#M215603</guid>
      <dc:creator>mengfei</dc:creator>
      <dc:date>2023-11-13T06:38:23Z</dc:date>
    </item>
  </channel>
</rss>

