]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: dts: allwinner: d1: Add CPU thermal sensor and zone
authorAlex Studer <alex@studer.dev>
Tue, 13 Jan 2026 18:29:48 +0000 (19:29 +0100)
committerChen-Yu Tsai <wens@kernel.org>
Thu, 22 Jan 2026 14:40:20 +0000 (22:40 +0800)
commitf36e738549d483878ebf4cc9826c46d9dc4aa496
tree685f1f595cca565c4c3d8d459fa07a88440dcb96
parentdb5e9260be8d3437222df74b5074359b22f1f029
riscv: dts: allwinner: d1: Add CPU thermal sensor and zone

The sun20i THS (built in CPU thermal sensor) is supported in code, but
was never added to the device tree. So, add it to the device tree,
along with a thermal zone for the CPU.

Signed-off-by: Alex Studer <alex@studer.dev>
Changes since v1:
 - Move include before defines in sun20i-d1s.dtsi
 - Fix register size for thermal-sensor@2009400
 - Move thermal-sensor@2009400 in SoC to match register address sorting
 - Add thermal-zone for sun8i-t113s.dtsi and fix missing cooling-cells

Link: https://lore.kernel.org/r/20250218020629.1476126-1-alex@studer.dev
Signed-off-by: Lukas Schmid <lukas.schmid@netcube.li>
Link: https://patch.msgid.link/20260113182951.1059690-1-lukas.schmid@netcube.li
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi
arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi
arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi