[PATCH v2 0/3] Add thermal management support for STi platform
Raphael Gallais-Pou
rgallaispou at gmail.com
Tue Jun 25 14:32:39 PDT 2024
This patch series enhances the st_thermal driver in order to enable
support for thermal zones. The changes include:
1. Replace deprecated PM runtime macros with their updated counterparts.
2. Implementing devm_* based thermal of zone functions within the driver.
3. Updating the stih418 device-tree.
The device-tree patch depends on an earlier patch sent to the mailing
list [1].
As it is currently implemented, an alert threshold of 85°C is set to
trigger the CPU throttling, and when the temperature exceeds the
critical threshold of 95°C, the system shuts down. There is for now no
active cooling device on the platform, which explains the use of the
cpufreq framework.
[1] https://lore.kernel.org/lkml/20240320-thermal-v3-2-700296694c4a@gmail.com
Signed-off-by: Raphael Gallais-Pou <rgallaispou at gmail.com>
---
Changes in v2:
- Add Patrice's R-b
- Edit patch [2/3] to remove unused struct
- Link to v1: https://lore.kernel.org/r/20240518-thermal-v1-0-7dfca3ed454b@gmail.com
---
Raphael Gallais-Pou (3):
thermal: st: switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr()
thermal: sti: depend on THERMAL_OF subsystem
ARM: dts: sti: add thermal-zones support on stih418
arch/arm/boot/dts/st/stih407-family.dtsi | 6 +++--
arch/arm/boot/dts/st/stih418.dtsi | 41 +++++++++++++++++++++++++++++---
drivers/thermal/st/Kconfig | 1 +
drivers/thermal/st/st_thermal.c | 29 +++++++++-------------
drivers/thermal/st/st_thermal_memmap.c | 2 +-
drivers/thermal/st/stm_thermal.c | 8 +++----
6 files changed, 58 insertions(+), 29 deletions(-)
---
base-commit: 0fc4bfab2cd45f9acb86c4f04b5191e114e901ed
change-id: 20240518-thermal-8f625428acf9
Best regards,
--
Raphael Gallais-Pou <rgallaispou at gmail.com>
More information about the linux-arm-kernel
mailing list