diff options
author | Caesar Wang <caesar.wang@rock-chips.com> | 2014-11-23 23:59:00 -0500 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2014-11-24 18:30:51 -0500 |
commit | 9774d96beb2a6454760a0cf5ff8f8f1ce56fc425 (patch) | |
tree | 2d1571980dd2a051bdefd20b0d41324d893df253 /arch/arm | |
parent | b77d43943ea83997c6c37b8831d1561981d499c5 (diff) |
ARM: dts: rockchip: add RK3288 Thermal data
This patch changes a dtsi file to contain the thermal data
on RK3288 and later SoCs. This data will
enable a thermal shutdown over 90C.
Signed-off-by: Caesar Wang <caesar.wang@rock-chips.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/rk3288-thermal.dtsi | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-thermal.dtsi b/arch/arm/boot/dts/rk3288-thermal.dtsi new file mode 100644 index 000000000000..2695200c0af7 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-thermal.dtsi | |||
@@ -0,0 +1,74 @@ | |||
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 | }; | ||