STM32MP1 DIE TEMP- FREQ-VBAT
is there any way find dts config /sys/ file to check stm32mp1 in linux sdk ?
cpu temp
freq
battery voltage vbat measurement.
is there any way find dts config /sys/ file to check stm32mp1 in linux sdk ?
cpu temp
freq
battery voltage vbat measurement.
Hi @Ara.1 ,
I don't know why, but it seems that these kernel configs are missing in your configuration.
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
CONFIG_CPUFREQ_DT=yPlease add them by enabling:

If you are using the starter package, they are already enabled, but for testing purpose, I removed these configurations from my linux on my MP157f-dk2 with the starter package and I get the same issue than you.
root@stm32mp1:~# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq: No such file or directoryPlease have a look at this page if you don't know how to modify your linux configuration: https://wiki.st.com/stm32mpu/wiki/Menuconfig_or_how_to_configure_kernel
PS: If you built your kernel in a different build directory (different of kernel source code directory), remember to specify it when using the make command of the wiki page.
Hope it helps,
Regards,
Kevin
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.