2023-08-09 19:09:05

by Apurva Nandan

[permalink] [raw]
Subject: [PATCH 0/3] Add support for thermal mitigation for K3 J7200 SoC

Add support for thermal mitigation using the CPUFREQ for K3 J7200 SoC.
K3 J7200 SoC supports Dynamic Frequency Scaling(DFS) for A72 & this can
be used to drop the cpu frequency using cpufreq to produce a cooling
effect in the SoC.

Keerthy (3):
thermal: k3_j72xx_bandgap: Add cooling device support
arm64: dts: ti: k3-j7200: Add the supported frequencies for A72
arm64: dts: ti: k3-j7200-thermal: Add cooling maps and cpu_alert trip
at 75C

arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi | 14 +++
arch/arm64/boot/dts/ti/k3-j7200.dtsi | 28 +++++
drivers/thermal/k3_j72xx_bandgap.c | 121 +++++++++++++++++++
3 files changed, 163 insertions(+)

--
2.34.1



2023-08-09 19:12:14

by Apurva Nandan

[permalink] [raw]
Subject: [PATCH 3/3] arm64: dts: ti: k3-j7200-thermal: Add cooling maps and cpu_alert trip at 75C

From: Keerthy <[email protected]>

Add cooling maps and mpu_alert trip at 75C

Note: mpu_alert trip value should adjusted based on the system load and
performance needs.

Signed-off-by: Keerthy <[email protected]>
Signed-off-by: Apurva Nandan <[email protected]>
---
arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi
index e7e3a643a6f0..eeb596727d48 100644
--- a/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j7200-thermal.dtsi
@@ -28,6 +28,20 @@ mpu_crit: mpu-crit {
hysteresis = <2000>; /* milliCelsius */
type = "critical";
};
+
+ mpu_alert0: mpu_alert {
+ temperature = <75000>; /* millicelsius */
+ hysteresis = <5000>; /* millicelsius */
+ type = "passive";
+ };
+ };
+
+ cpu_cooling_maps: cooling-maps {
+ map0 {
+ trip = <&mpu_alert0>;
+ cooling-device =
+ <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
};
};

--
2.34.1