imx93 how to get the frequency value of CPU

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

imx93 how to get the frequency value of CPU

398 Views
ranYang
Contributor III

Hi:

    My system is “Linux bopixel 6.1.22 #154 SMP PREEMPT Mon Aug 25 16:07:47 CST 2025 aarch64 GNU/Linux”,there is a requirement to read the frequency value of the actual CPU quota. Is it possible to obtain it through the API interface using Linux C language?

Labels (1)
0 Kudos
Reply
3 Replies

383 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @ranYang 

you can use the below command check the CPU frequency:

at /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

B.R

0 Kudos
Reply

192 Views
ranYang
Contributor III

 

No node information for this device has been createdm, Can it be obtained through CCM register?

0 Kudos
Reply

140 Views
meketok
Contributor I

@ranYang You ask if @pengyong_zhang is useful? @pengyong_zhang  doesn't even know if its own BSP supports DVFS or not. 

What's most disappointing is that @pengyong_zhang  hasn't even tried the commands given.

@ranYang The iMX93 BSP only supports mode switching and does not support DVFS, so there is no /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor node.

You can use the cat /sys/kernel/debug/clk/clk_summary to check the arm clock. 

0 Kudos
Reply