How to increase CPU frequency in IMX8QM-MEK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to increase CPU frequency in IMX8QM-MEK

1,921 Views
vinothkumars
Senior Contributor IV

Dear NXP,

 

I trying to increase CPU frequency for IMX8QM-MEK. I want to add this configuration in source. Will you please provide the exact steps to add and test CPU frequency.

 

 

Thanks & Regards,

Vinoth S,

Regards,
Vinothkumar Sekar
0 Kudos
Reply
5 Replies

1,915 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi vinothkumars,

You can refer to this case and see the patch.

https://community.nxp.com/t5/i-MX-Processors/Lower-CPU-frequency-on-imx8mm/m-p/955456

 

The new dtsi CPU frequency node is like this:

 

a53_opp_table: opp-table {
compatible = "operating-points-v2";
opp-shared;

opp-1200000000 {
opp-hz = /bits/ 64 <1200000000>;
opp-microvolt = <850000>;
opp-supported-hw = <0xe>, <0x7>;
clock-latency-ns = <150000>;
opp-suspend;
};

opp-1600000000 {
opp-hz = /bits/ 64 <1600000000>;
opp-microvolt = <900000>;
opp-supported-hw = <0xc>, <0x7>;
clock-latency-ns = <150000>;
opp-suspend;
};

opp-1800000000 {
opp-hz = /bits/ 64 <1800000000>;
opp-microvolt = <1000000>;
opp-supported-hw = <0x8>, <0x3>;
clock-latency-ns = <150000>;
opp-suspend;
};
};

Best Regards,

Zhiming

 

0 Kudos
Reply

1,911 Views
vinothkumars
Senior Contributor IV

Hi Zhiming,

Thank you for the quick reply.

 

# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

600000 800000 1000000 1200000

 

I have to set 1.2 GHZ as CPU0 frequency,

So, I able to set by

# echo 1200000 > sys/devices/system/cpu/cpu0/cpufre/scaling_setspeed

 

I have to verify this configuration give any effect or not in boot.

 

 

Thanks & Regards,

Vinoth S,

 

 

 

Regards,
Vinothkumar Sekar
0 Kudos
Reply

1,197 Views
udhayamoorthi
Contributor II

@vinothkumars 

in my case i try to set 1200000

echo: write error: Invalid argument

how did you set it? 

0 Kudos
Reply

1,903 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

cpufreq-info can help you check your CPU frequency.

If you use that commands in linux shell, when you restart your board ,the CPU frequency will become default.You can add the commad into init.rc so that you can increase your frequency in usr layer when you start your board next time.

 

0 Kudos
Reply

1,890 Views
vinothkumars
Senior Contributor IV

nxf65025 ,

Thank you for the reply

 

cpufreq-info - unable to execute this command. I am working in Android.

Will you please provide some patch to add in init.rc

 

Thanks & Regards,

Vinoth S,

Regards,
Vinothkumar Sekar
0 Kudos
Reply