[PATCH v2 2/3] thermal/drivers/amlogic: add S4 support

From: christian . koever-draxl

Date: Fri Nov 06 2026 - 05:21:12 EST


From: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>

The S4 CPU sensor reads its calibration through the secure monitor and
otherwise matches the T7 setup, including the separate bus and
functional clocks, so reuse the T7 data for it. The driver already
enables every clock the device tree lists.

Without the calibration the driver reported about -144 degrees Celsius
on an S905W2 board; with it the readings are plausible and CPU
throttling engages.

Signed-off-by: Christian Stefan Kövér-Draxl <ckoever@xxxxxxxxxx>
---
drivers/thermal/amlogic_thermal.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
index 60728de6968a..4c107b3100c0 100644
--- a/drivers/thermal/amlogic_thermal.c
+++ b/drivers/thermal/amlogic_thermal.c
@@ -292,6 +292,10 @@ static const struct of_device_id of_amlogic_thermal_match[] = {
.compatible = "amlogic,a1-cpu-thermal",
.data = &amlogic_thermal_a1_cpu_param,
},
+ {
+ .compatible = "amlogic,s4-thermal",
+ .data = &amlogic_thermal_t7_param,
+ },
{
.compatible = "amlogic,t7-thermal",
.data = &amlogic_thermal_t7_param,
--
2.56.0