diff options
author | Parth Pancholi <parth.pancholi@toradex.com> | 2024-10-02 10:57:40 +0200 |
---|---|---|
committer | Parth Pancholi <parth.pancholi@toradex.com> | 2024-10-02 15:19:40 +0200 |
commit | 40a1d7b913041fa4a8f673de1b025ccc0f896708 (patch) | |
tree | 06349aebe67b03069b49e76d9a25052da391aef7 /board/samsung/common | |
parent | c997b1b09fbaecd6f18ef84700e5b5c7cee02a2a (diff) |
arm: mach-k3: am62: fixup thermal cooling device cpustoradex_ti-u-boot-2023.04
AM62x devices now support CPU throttling based on thermal alerts
with a Linux commit 10e7bfd8114c ("arm64: dts: ti: k3-am62: Enable
CPU freq throttling on thermal alert"). However, this functionality
does not work correctly across all variants of the AM62x SoCs
which have different numbers of Cortex-A CPU cores: AM62x1 (1 core),
AM62x2 (2 cores), and AM62x4 (4 cores). On single-core and dual-core
AM62x devices, the following error is observed in the Linux kernel:
OF: /thermal-zones/main0-thermal/cooling-maps/map0: could not find
phandle 94
OF: /thermal-zones/main1-thermal/cooling-maps/map0: could not find
phandle 94
This commit adds a fixup to dynamically adjust the cooling-device
nodes in the thermal zones based on the actual number of CPU cores
available. This resolves the issue of CPU throttling not working
correctly on single-core and dual-core AM62x devices, while
maintaining the functionality for AM62x quad-core devices.
A similar approach is implemented for example on i.MX8MM SoC.
Upstream-Status: Submitted [https://lore.kernel.org/u-boot/20241002074133.1749361-1-parth105105@gmail.com/]
Signed-off-by: Parth Pancholi <parth.pancholi@toradex.com>
Diffstat (limited to 'board/samsung/common')
0 files changed, 0 insertions, 0 deletions