summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2024-03-17 15:55:09 +0000
committerDaniel Golle <daniel@makrotopia.org>2024-03-17 19:37:14 +0000
commitfc177695e00e80afd30d20d29f6e915edc9e9eb9 (patch)
tree0c18ba745cd1c8c144409ffa8e6b47a9c4c2703d /target
parent7ac030876cba4d84729fb5be8796fd5b2a05855f (diff)
downloadopenwrt-fc177695e00e80afd30d20d29f6e915edc9e9eb9.tar.gz
openwrt-fc177695e00e80afd30d20d29f6e915edc9e9eb9.tar.bz2
openwrt-fc177695e00e80afd30d20d29f6e915edc9e9eb9.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/mvebu/files/arch/arm64/boot/dts/marvell/puzzle-thermal.dtsi9
1 files changed, 6 insertions, 3 deletions
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/puzzle-thermal.dtsi b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/puzzle-thermal.dtsi
index 94677532f2..a8ce8fd102 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/puzzle-thermal.dtsi
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/puzzle-thermal.dtsi
@@ -1,4 +1,7 @@
#define PUZZLE_FAN_THERMAL(_cname, _fan) \
+ polling-delay-passive = <500>; \
+ polling-delay = <1000>; \
+ \
trips { \
_cname##_active_high: cpu-active-high { \
temperature = <80000>; \
@@ -28,14 +31,14 @@
}; \
cpu-active-med { \
trip = <&_cname##_active_med>; \
- cooling-device = <_fan 2 THERMAL_NO_LIMIT>; \
+ cooling-device = <_fan 2 3>; \
}; \
cpu-active-low { \
trip = <&_cname##_active_low>; \
- cooling-device = <_fan 1 THERMAL_NO_LIMIT>; \
+ cooling-device = <_fan 1 2>; \
}; \
cpu-active-idle { \
trip = <&_cname##_active_idle>; \
- cooling-device = <_fan 0 THERMAL_NO_LIMIT>; \
+ cooling-device = <_fan 0 0>; \
}; \
}