Part Number: AM625
Hi,
What is the default CPU frequency ( form dts "opp-table") in am62x-sk-evm u-boot?
is any mechanism in u-boot to choose frequency scaling governor like in kernel?
Regards,
Gireesh Hiremath
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM625
Hi,
What is the default CPU frequency ( form dts "opp-table") in am62x-sk-evm u-boot?
is any mechanism in u-boot to choose frequency scaling governor like in kernel?
Regards,
Gireesh Hiremath
Hi Hong,
Thanks for sharing previous discussion.
It give info about how to set clock in early boot.
My concern is any mechanism in u-boot to choose frequency scaling governor like in kernel?
which CPU frequency is chosen from the opp-table ?
k3-am625.dtsi :
a53_opp_table: opp-table {
compatible = "operating-points-v2-ti-cpu";
opp-shared;
syscon = <&wkup_conf>;
opp-200000000 {
opp-hz = /bits/ 64 <200000000>;
opp-supported-hw = <0x01 0x0007>;
clock-latency-ns = <6000000>;
};
...
.....
opp-1250000000 {
opp-hz = /bits/ 64 <1250000000>;
opp-supported-hw = <0x01 0x0004>;
clock-latency-ns = <6000000>;
opp-suspend;
};
};
Thanks,
Gireesh Hiremath
I don't think there's user case on doing dynamic frequency scaling during boot phase, like u-boot.
Instead the A53 frequency is configured in the board DTS as necessary.
Best,
-Hong
Hi Hong,
Thanks for the suggestion. I will include it.
from previous DTS suggestion ( https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1299915/am625-how-to-force-the-am6254-run-as-1-2g-hz/4940124#4940124)
assigned-clock-rates = <200000000>, <1250000000>;
if it is fixed to 1250000000 Hz then what is the need of 200000000Hz and
what is the use of this patch https://git.ti.com/cgit/ti-u-boot/ti-u-boot/diff/arch/arm/dts/k3-am625.dtsi?h=ti-u-boot-2023.04&id=1474cc8c27d45110d2b2d82cb24aec12fbc73767
Regards,
Gireesh Hiremath
Hi Gireesh,
Hong is out of office.
assigned-clock-rates = <200000000>, <1250000000>;if it is fixed to
1250000000Hz then what is the need of200000000Hz and
The first entry of "200MHz" is for the first assigned-clocks entry "<&k3_clks 61 0> which specifies the clk for GTC.
If you run command 'git log -1 1474cc8c27d45110d2b2d82cb24aec12fbc73767' in u-boot source code directory, you will see the comment about this patch, it is to keep synchronize to the kernel DTS.