Hi @Brunno!
Thank you for contacting NXP Support!
With our BSP the CPU frequency changes dynamically, depending on the system load either in response to ACPI events or manually by userspace programs.
By default on our BSP, the processor changes frequency from 1.2GHz to 1.8GHz on our iMX8MM-EVK.
Using our driver you can get lower frequencies by adding the frequencies on the devicetree.
• The kernel is pre-configured to support only certain frequencies. The list of frequencies currently supported can be obtained from:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
• To get the available scaling governors:
cat /sys/devices/system/cpu/*/cpufreq/scaling_available_governors
• To check the current CPU frequency:
cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq
The frequency is displayed depending on the governor set.
• To check the maximum frequency:
cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_max_freq
• To check the minimum frequency:
cat /sys/devices/system/cpu/*/cpufreq/cpuinfo_min_freq
These commands set a constant CPU frequency:
• Use the maximum frequency:
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
• Use the current frequency to be the constant frequency:
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
• The following two commands set the scaling governor to a specified frequency, if that frequency is supported.
If the frequency is not supported, the closest supported frequency is used:
echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo <frequency> > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
Those functions are supported by our PMIC and you can test them on our iMX8MM-EVK
Best Regards!
Chavira