mvebu: enable thermal zone polling for IEI Puzzle devices
[openwrt/openwrt.git] / target / linux / mvebu / files / arch / arm64 / boot / dts / marvell / puzzle-thermal.dtsi
1 #define PUZZLE_FAN_THERMAL(_cname, _fan) \
2 polling-delay-passive = <500>; \
3 polling-delay = <1000>; \
4 \
5 trips { \
6 _cname##_active_high: cpu-active-high { \
7 temperature = <80000>; \
8 hysteresis = <2000>; \
9 type = "active"; \
10 }; \
11 _cname##_active_med: cpu-active-med { \
12 temperature = <72000>; \
13 hysteresis = <2000>; \
14 type = "active"; \
15 }; \
16 _cname##_active_low: cpu-active-low { \
17 temperature = <65000>; \
18 hysteresis = <2000>; \
19 type = "active"; \
20 }; \
21 _cname##_active_idle: cpu-active-idle { \
22 temperature = <60000>; \
23 hysteresis = <2000>; \
24 type = "active"; \
25 }; \
26 }; \
27 cooling-maps { \
28 cpu-active-high { \
29 trip = <&_cname##_active_high>; \
30 cooling-device = <_fan 3 THERMAL_NO_LIMIT>; \
31 }; \
32 cpu-active-med { \
33 trip = <&_cname##_active_med>; \
34 cooling-device = <_fan 2 3>; \
35 }; \
36 cpu-active-low { \
37 trip = <&_cname##_active_low>; \
38 cooling-device = <_fan 1 2>; \
39 }; \
40 cpu-active-idle { \
41 trip = <&_cname##_active_idle>; \
42 cooling-device = <_fan 0 0>; \
43 }; \
44 }