]>
Commit | Line | Data |
---|---|---|
9774d96b CW |
1 | /* |
2 | * Device Tree Source for RK3288 SoC thermal | |
3 | * | |
4 | * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd | |
5 | * | |
6 | * This file is licensed under the terms of the GNU General Public License | |
7 | * version 2. This program is licensed "as is" without any warranty of any | |
8 | * kind, whether express or implied. | |
9 | */ | |
10 | ||
11 | #include <dt-bindings/thermal/thermal.h> | |
12 | ||
13 | reserve_thermal: reserve_thermal { | |
14 | polling-delay-passive = <1000>; /* milliseconds */ | |
15 | polling-delay = <5000>; /* milliseconds */ | |
16 | ||
17 | thermal-sensors = <&tsadc 0>; | |
18 | }; | |
19 | ||
20 | cpu_thermal: cpu_thermal { | |
21 | polling-delay-passive = <1000>; /* milliseconds */ | |
22 | polling-delay = <5000>; /* milliseconds */ | |
23 | ||
24 | thermal-sensors = <&tsadc 1>; | |
25 | ||
26 | trips { | |
27 | cpu_alert0: cpu_alert0 { | |
28 | temperature = <70000>; /* millicelsius */ | |
29 | hysteresis = <2000>; /* millicelsius */ | |
30 | type = "passive"; | |
31 | }; | |
32 | cpu_crit: cpu_crit { | |
33 | temperature = <90000>; /* millicelsius */ | |
34 | hysteresis = <2000>; /* millicelsius */ | |
35 | type = "critical"; | |
36 | }; | |
37 | }; | |
38 | ||
39 | cooling-maps { | |
40 | map0 { | |
41 | trip = <&cpu_alert0>; | |
42 | cooling-device = | |
43 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | |
44 | }; | |
45 | }; | |
46 | }; | |
47 | ||
48 | gpu_thermal: gpu_thermal { | |
49 | polling-delay-passive = <1000>; /* milliseconds */ | |
50 | polling-delay = <5000>; /* milliseconds */ | |
51 | ||
52 | thermal-sensors = <&tsadc 2>; | |
53 | ||
54 | trips { | |
55 | gpu_alert0: gpu_alert0 { | |
56 | temperature = <70000>; /* millicelsius */ | |
57 | hysteresis = <2000>; /* millicelsius */ | |
58 | type = "passive"; | |
59 | }; | |
60 | gpu_crit: gpu_crit { | |
61 | temperature = <90000>; /* millicelsius */ | |
62 | hysteresis = <2000>; /* millicelsius */ | |
63 | type = "critical"; | |
64 | }; | |
65 | }; | |
66 | ||
67 | cooling-maps { | |
68 | map0 { | |
69 | trip = <&gpu_alert0>; | |
70 | cooling-device = | |
71 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | |
72 | }; | |
73 | }; | |
74 | }; |