blob: 87dd8142d91a0132ee50eea86588913cad1b400c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Simon Glass344c8372015-08-30 16:55:20 -06002/*
3 * Device Tree Source for RK3288 SoC thermal
4 *
5 * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd
Simon Glass344c8372015-08-30 16:55:20 -06006 */
7
8#include <dt-bindings/thermal/thermal.h>
9
10reserve_thermal: reserve_thermal {
11 polling-delay-passive = <1000>; /* milliseconds */
12 polling-delay = <5000>; /* milliseconds */
13
14 /* sensor ID */
15 thermal-sensors = <&tsadc 0>;
16
17};
18
19cpu_thermal: cpu_thermal {
20 polling-delay-passive = <100>; /* milliseconds */
21 polling-delay = <5000>; /* milliseconds */
22
23 /* sensor ID */
24 thermal-sensors = <&tsadc 1>;
25 linux,hwmon;
26
27 trips {
28 cpu_alert0: cpu_alert0 {
29 temperature = <70000>; /* millicelsius */
30 hysteresis = <2000>; /* millicelsius */
31 type = "passive";
32 };
33 cpu_alert1: cpu_alert1 {
34 temperature = <75000>; /* millicelsius */
35 hysteresis = <2000>; /* millicelsius */
36 type = "passive";
37 };
38 cpu_crit: cpu_crit {
39 temperature = <100000>; /* millicelsius */
40 hysteresis = <2000>; /* millicelsius */
41 type = "critical";
42 };
43 };
44
45 cooling-maps {
46 map0 {
47 trip = <&cpu_alert0>;
48 cooling-device =
49 <&cpu0 THERMAL_NO_LIMIT 6>;
50 };
51 map1 {
52 trip = <&cpu_alert1>;
53 cooling-device =
54 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
55 };
56 };
57};
58
59gpu_thermal: gpu_thermal {
60 polling-delay-passive = <100>; /* milliseconds */
61 polling-delay = <5000>; /* milliseconds */
62
63 /* sensor ID */
64 thermal-sensors = <&tsadc 2>;
65 linux,hwmon;
66
67 trips {
68 gpu_alert0: gpu_alert0 {
69 temperature = <80000>; /* millicelsius */
70 hysteresis = <2000>; /* millicelsius */
71 type = "passive";
72 };
73 gpu_crit: gpu_crit {
74 temperature = <100000>; /* millicelsius */
75 hysteresis = <2000>; /* millicelsius */
76 type = "critical";
77 };
78 };
79
80 cooling-maps {
81 map0 {
82 trip = <&gpu_alert0>;
83 cooling-device =
84 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
85 };
86 };
87};