[PATCH 0/3] thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor

Aurelien Jarno aurelien at aurel32.net
Wed Mar 18 13:29:09 PDT 2026


Hi,

On 2025-11-27 02:44, Shuwei Wu wrote:
> Introduce support for the on-die thermal sensor unit (TSU)
> found on the SpacemiT K1 SoC.
> 
> Include the device tree binding documentation in YAML format, the
> thermal sensor driver implementation, and the device tree changes to
> enable the sensor on K1 SoC.
> 
> Test logs:
> Hardware: OrangePi-RV2 integrates SpacemiT K1 SoC
> Kernel: 6.18.0-rc4 mainline
> 
> Verified that all five thermal sensors are registered and reporting
> valid temperatures.
> 
> $ cat /sys/class/thermal/thermal_zone*/type
> soc-thermal
> package-thermal
> gpu-thermal
> cluster0-thermal
> cluster1-thermal
> 
> $ cat /sys/class/thermal/thermal_zone3/temp
> 28000
> 
> Dynamic threshold and interrupt tests passed via sysfs trip_point
> manipulation.
> 
> ---
> Shuwei Wu (3):
>       dt-bindings: thermal: Add SpacemiT K1 thermal sensor
>       thermal: K1: Add driver for K1 SoC thermal sensor
>       riscv: dts: spacemit: Add thermal sensor for K1 SoC
> 
>  .../bindings/thermal/spacemit,k1-thermal.yaml      |  76 +++++
>  arch/riscv/boot/dts/spacemit/k1.dtsi               | 101 +++++++
>  drivers/thermal/Kconfig                            |  14 +
>  drivers/thermal/Makefile                           |   1 +
>  drivers/thermal/k1_thermal.c                       | 307 +++++++++++++++++++++
>  5 files changed, 499 insertions(+)
> ---
> base-commit: f5f2e20b1cbc5f9ea20b372d15967b24921ede19
> change-id: 20251124-b4-k1-thermal-eca906e6dd7a

Thanks, I confirm this works fine on a Banana PI F3.

Tested-by: Aurelien Jarno <aurelien at aurel32.net>

Regards
Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                     http://aurel32.net



More information about the linux-riscv mailing list