How to reduce CPU clock frequency on STM32MP157C?
Hi,
I'm interested how to change CPU frequency from 650MHz to lower frequency. I looked those two links:
https://wiki.st.com/stm32mpu/wiki/How_to_change_the_CPU_frequency
https://wiki.st.com/stm32mpu/wiki/Clock_device_tree_configuration_-_Bootloader_specific
I went for PLL1 static configuration and added those lines to TF-A device tree, in RCC node
pll1: st,pll@0 {
compatible = "st,stm32mp1-pll";
reg = <0>;
cfg = < 4 80 0 0 0 PQR(1,0,0) >;
frac = < 0x800 >;
};
So If I'm right CPU freq should be: 24000000 / (4+1) * (80+1) = 388 800 000 = 388.8 Mhz.
I changed OPP nodes in tf-a device tree and Linux device tree to:
&cpu0_opp_table {
opp-388000000 {
opp-hz = /bits/ 64 <388000000>;
opp-microvolt = <1200000>;
opp-supported-hw = <0x1>;
};
};
When I wanted to boot the board I got this:
PANIC at PC : 0x2ffd7e53
Exception mode=0x00000016 at: 0x0000f295
What should I do to get lower CPU frequency?
Best regards,
Nenad
