Loading...
Note: File does not exist in v5.14.15.
1/*
2 * Device Tree Source for RK3368 SoC thermal
3 *
4 * Copyright (c) 2015, Fuzhou Rockchip Electronics Co., Ltd
5 * Caesar Wang <wxt@rock-chips.com>
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
44 */
45
46#include <dt-bindings/thermal/thermal.h>
47
48cpu_thermal: cpu_thermal {
49 polling-delay-passive = <100>; /* milliseconds */
50 polling-delay = <5000>; /* milliseconds */
51
52 thermal-sensors = <&tsadc 0>;
53
54 trips {
55 cpu_alert0: cpu_alert0 {
56 temperature = <75000>; /* millicelsius */
57 hysteresis = <2000>; /* millicelsius */
58 type = "passive";
59 };
60 cpu_alert1: cpu_alert1 {
61 temperature = <80000>; /* millicelsius */
62 hysteresis = <2000>; /* millicelsius */
63 type = "passive";
64 };
65 cpu_crit: cpu_crit {
66 temperature = <95000>; /* millicelsius */
67 hysteresis = <2000>; /* millicelsius */
68 type = "critical";
69 };
70 };
71
72 cooling-maps {
73 map0 {
74 trip = <&cpu_alert0>;
75 cooling-device =
76 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
77 };
78 map1 {
79 trip = <&cpu_alert1>;
80 cooling-device =
81 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
82 };
83 };
84};
85
86gpu_thermal: gpu_thermal {
87 polling-delay-passive = <100>; /* milliseconds */
88 polling-delay = <5000>; /* milliseconds */
89
90 thermal-sensors = <&tsadc 1>;
91
92 trips {
93 gpu_alert0: gpu_alert0 {
94 temperature = <80000>; /* millicelsius */
95 hysteresis = <2000>; /* millicelsius */
96 type = "passive";
97 };
98 gpu_crit: gpu_crit {
99 temperature = <1150000>; /* millicelsius */
100 hysteresis = <2000>; /* millicelsius */
101 type = "critical";
102 };
103 };
104
105 cooling-maps {
106 map0 {
107 trip = <&gpu_alert0>;
108 cooling-device =
109 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
110 };
111 };
112};