Hi all, TI offers SoCs in various speed grades, each speed grade specifies a certain maximum operating frequency of the clocks for each core.
In K3's boot flow, the R5 SPL starts the A53 or A72 core and configures the correct clocks and power using the K3 ARM64 rproc driver (compatible: ti,am654-rproc). However, the driver expects the dt node for the ARM64 core to be set with a correct "assigned-clock-rates" value. Currently the dt has a value of 1.2GHz for the A53 core on AM62a, this is incorrect for lower speed grades. Therefore this patch set adds support for fixing this value at runtime based on the detected speed grade from the efuse MMR. For the speed grade table, refer to Table 6-1 of the AM62a datasheet[1]. [1]: https://www.ti.com/lit/ds/symlink/am62a7.pdf Signed-off-by: Anshul Dalal <[email protected]> --- Anshul Dalal (3): mach-k3: am62px: remove fdt_fixup_cpu_freq_nodes_am62p mach-k3: refactor A53 speed grade clock-rate fixup mach-k3: am62a: add support for speed grades arch/arm/mach-k3/am62ax/am62a7_init.c | 39 +++++++++ arch/arm/mach-k3/am62px/am62p5_fdt.c | 12 --- arch/arm/mach-k3/am62px/am62p5_init.c | 87 ++++++-------------- arch/arm/mach-k3/am62x/am625_init.c | 84 ++++++------------- arch/arm/mach-k3/common.c | 108 +++++++++++++++++++++++++ arch/arm/mach-k3/common.h | 11 ++- arch/arm/mach-k3/include/mach/am62_hardware.h | 24 ------ arch/arm/mach-k3/include/mach/am62a_hardware.h | 4 + arch/arm/mach-k3/include/mach/am62p_hardware.h | 17 ---- 9 files changed, 208 insertions(+), 178 deletions(-) --- base-commit: e34d01d23e45e007368685ffa6dfd674b6dd7b17 change-id: 20251029-ti_speed_grade_fix-e7f3f6806878 Best regards, -- Anshul Dalal <[email protected]>

