Re: [PATCH v3 2/3] thermal: spacemit: k1: Add thermal sensor support
From: Yanko Kaneti
Date: Thu Mar 05 2026 - 12:07:19 EST
Hello,
On Mon, 2026-01-19 at 10:41 +0800, Shuwei Wu wrote:
> The thermal sensor on K1 supports monitoring five temperature zones.
> The driver registers these sensors with the thermal framework
> and supports standard operations:
> - Reading temperature (millidegree Celsius)
> - Setting high/low thresholds for interrupts
>
> Signed-off-by: Shuwei Wu <shuweiwoo@xxxxxxx>
...
> +config SPACEMIT_K1_TSENSOR
> + tristate "SpacemiT K1 thermal sensor driver"
> + depends on ARCH_SPACEMIT || COMPILE_TEST
this should also
depends on THERMAL_OF
No?
I tested the series on OrangePi RS2 and it seems to work
root@opir2s:~# sensors
cluster1_thermal-virtual-0
Adapter: Virtual device
temp1: +52.0°C
gpu_thermal-virtual-0
Adapter: Virtual device
temp1: +52.0°C
soc_thermal-virtual-0
Adapter: Virtual device
temp1: +50.0°C
cluster0_thermal-virtual-0
Adapter: Virtual device
temp1: +53.0°C
package_thermal-virtual-0
Adapter: Virtual device
temp1: +52.0°C
Regards
Yanko