mvebu: enable thermal zone polling for IEI Puzzle devices
authorDaniel Golle <daniel@makrotopia.org>
Sun, 17 Mar 2024 15:55:09 +0000 (15:55 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 17 Mar 2024 19:40:44 +0000 (19:40 +0000)
commitf02920dd98188758113d4e44b97c95f07f7cde2a
tree1511190859c17d1cbfb8170a0c5f10eaf239c5b8
parent100a5606d6d72bd402de480b6282dd2c3790cd14
mvebu: enable thermal zone polling for IEI Puzzle devices

Marvell's thermal sensors do not support interrupts, so we need to
poll them. Reading temperature every second should be enough to
control the fan.
While at it, also make sure fan speed is reduced again if temperature
goes down.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit fc177695e00e80afd30d20d29f6e915edc9e9eb9)
target/linux/mvebu/files/arch/arm64/boot/dts/marvell/puzzle-thermal.dtsi