1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device tree sources for Exynos5433 thermal zone
4 *
5 * Copyright (c) 2016 Chanwoo Choi <cw00.choi@samsung.com>
6 */
7
8#include <dt-bindings/thermal/thermal.h>
9
10/ {
11thermal-zones {
12	atlas0_thermal: atlas0-thermal {
13		thermal-sensors = <&tmu_atlas0>;
14		polling-delay-passive = <0>;
15		polling-delay = <0>;
16		trips {
17			atlas0_alert_0: atlas0-alert-0 {
18				temperature = <65000>;	/* millicelsius */
19				hysteresis = <1000>;	/* millicelsius */
20				type = "active";
21			};
22			atlas0_alert_1: atlas0-alert-1 {
23				temperature = <70000>;	/* millicelsius */
24				hysteresis = <1000>;	/* millicelsius */
25				type = "active";
26			};
27			atlas0_alert_2: atlas0-alert-2 {
28				temperature = <75000>;	/* millicelsius */
29				hysteresis = <1000>;	/* millicelsius */
30				type = "active";
31			};
32			atlas0_alert_3: atlas0-alert-3 {
33				temperature = <80000>;	/* millicelsius */
34				hysteresis = <1000>;	/* millicelsius */
35				type = "active";
36			};
37			atlas0_alert_4: atlas0-alert-4 {
38				temperature = <85000>;	/* millicelsius */
39				hysteresis = <1000>;	/* millicelsius */
40				type = "active";
41			};
42			atlas0_alert_5: atlas0-alert-5 {
43				temperature = <90000>;	/* millicelsius */
44				hysteresis = <1000>;	/* millicelsius */
45				type = "active";
46			};
47			atlas0_alert_6: atlas0-alert-6 {
48				temperature = <95000>;	/* millicelsius */
49				hysteresis = <1000>;	/* millicelsius */
50				type = "active";
51			};
52		};
53
54		cooling-maps {
55			map0 {
56				/* Set maximum frequency as 1800MHz  */
57				trip = <&atlas0_alert_0>;
58				cooling-device = <&cpu4 1 2>;
59			};
60			map1 {
61				/* Set maximum frequency as 1700MHz  */
62				trip = <&atlas0_alert_1>;
63				cooling-device = <&cpu4 2 3>;
64			};
65			map2 {
66				/* Set maximum frequency as 1600MHz  */
67				trip = <&atlas0_alert_2>;
68				cooling-device = <&cpu4 3 4>;
69			};
70			map3 {
71				/* Set maximum frequency as 1500MHz  */
72				trip = <&atlas0_alert_3>;
73				cooling-device = <&cpu4 4 5>;
74			};
75			map4 {
76				/* Set maximum frequency as 1400MHz  */
77				trip = <&atlas0_alert_4>;
78				cooling-device = <&cpu4 5 7>;
79			};
80			map5 {
81				/* Set maximum frequencyas 1200MHz  */
82				trip = <&atlas0_alert_5>;
83				cooling-device = <&cpu4 7 9>;
84			};
85			map6 {
86				/* Set maximum frequency as 1000MHz  */
87				trip = <&atlas0_alert_6>;
88				cooling-device = <&cpu4 9 14>;
89			};
90		};
91	};
92
93	atlas1_thermal: atlas1-thermal {
94		thermal-sensors = <&tmu_atlas1>;
95		polling-delay-passive = <0>;
96		polling-delay = <0>;
97		trips {
98			atlas1_alert_0: atlas1-alert-0 {
99				temperature = <65000>;	/* millicelsius */
100				hysteresis = <1000>;	/* millicelsius */
101				type = "active";
102			};
103			atlas1_alert_1: atlas1-alert-1 {
104				temperature = <70000>;	/* millicelsius */
105				hysteresis = <1000>;	/* millicelsius */
106				type = "active";
107			};
108			atlas1_alert_2: atlas1-alert-2 {
109				temperature = <75000>;	/* millicelsius */
110				hysteresis = <1000>;	/* millicelsius */
111				type = "active";
112			};
113			atlas1_alert_3: atlas1-alert-3 {
114				temperature = <80000>;	/* millicelsius */
115				hysteresis = <1000>;	/* millicelsius */
116				type = "active";
117			};
118			atlas1_alert_4: atlas1-alert-4 {
119				temperature = <85000>;	/* millicelsius */
120				hysteresis = <1000>;	/* millicelsius */
121				type = "active";
122			};
123			atlas1_alert_5: atlas1-alert-5 {
124				temperature = <90000>;	/* millicelsius */
125				hysteresis = <1000>;	/* millicelsius */
126				type = "active";
127			};
128			atlas1_alert_6: atlas1-alert-6 {
129				temperature = <95000>;	/* millicelsius */
130				hysteresis = <1000>;	/* millicelsius */
131				type = "active";
132			};
133		};
134	};
135
136	g3d_thermal: g3d-thermal {
137		thermal-sensors = <&tmu_g3d>;
138		polling-delay-passive = <0>;
139		polling-delay = <0>;
140		trips {
141			g3d_alert_0: g3d-alert-0 {
142				temperature = <70000>;	/* millicelsius */
143				hysteresis = <1000>;	/* millicelsius */
144				type = "active";
145			};
146			g3d_alert_1: g3d-alert-1 {
147				temperature = <75000>;	/* millicelsius */
148				hysteresis = <1000>;	/* millicelsius */
149				type = "active";
150			};
151			g3d_alert_2: g3d-alert-2 {
152				temperature = <80000>;	/* millicelsius */
153				hysteresis = <1000>;	/* millicelsius */
154				type = "active";
155			};
156			g3d_alert_3: g3d-alert-3 {
157				temperature = <85000>;	/* millicelsius */
158				hysteresis = <1000>;	/* millicelsius */
159				type = "active";
160			};
161			g3d_alert_4: g3d-alert-4 {
162				temperature = <90000>;	/* millicelsius */
163				hysteresis = <1000>;	/* millicelsius */
164				type = "active";
165			};
166			g3d_alert_5: g3d-alert-5 {
167				temperature = <95000>;	/* millicelsius */
168				hysteresis = <1000>;	/* millicelsius */
169				type = "active";
170			};
171			g3d_alert_6: g3d-alert-6 {
172				temperature = <100000>;	/* millicelsius */
173				hysteresis = <1000>;	/* millicelsius */
174				type = "active";
175			};
176		};
177	};
178
179	apollo_thermal: apollo-thermal {
180		thermal-sensors = <&tmu_apollo>;
181		polling-delay-passive = <0>;
182		polling-delay = <0>;
183		trips {
184			apollo_alert_0: apollo-alert-0 {
185				temperature = <65000>;	/* millicelsius */
186				hysteresis = <1000>;	/* millicelsius */
187				type = "active";
188			};
189			apollo_alert_1: apollo-alert-1 {
190				temperature = <70000>;	/* millicelsius */
191				hysteresis = <1000>;	/* millicelsius */
192				type = "active";
193			};
194			apollo_alert_2: apollo-alert-2 {
195				temperature = <75000>;	/* millicelsius */
196				hysteresis = <1000>;	/* millicelsius */
197				type = "active";
198			};
199			apollo_alert_3: apollo-alert-3 {
200				temperature = <80000>;	/* millicelsius */
201				hysteresis = <1000>;	/* millicelsius */
202				type = "active";
203			};
204			apollo_alert_4: apollo-alert-4 {
205				temperature = <85000>;	/* millicelsius */
206				hysteresis = <1000>;	/* millicelsius */
207				type = "active";
208			};
209			apollo_alert_5: apollo-alert-5 {
210				temperature = <90000>;	/* millicelsius */
211				hysteresis = <1000>;	/* millicelsius */
212				type = "active";
213			};
214			apollo_alert_6: apollo-alert-6 {
215				temperature = <95000>;	/* millicelsius */
216				hysteresis = <1000>;	/* millicelsius */
217				type = "active";
218			};
219		};
220
221		cooling-maps {
222			map0 {
223				/* Set maximum frequency as 1200MHz  */
224				trip = <&apollo_alert_2>;
225				cooling-device = <&cpu0 1 2>;
226			};
227			map1 {
228				/* Set maximum frequency as 1100MHz  */
229				trip = <&apollo_alert_3>;
230				cooling-device = <&cpu0 2 3>;
231			};
232			map2 {
233				/* Set maximum frequency as 1000MHz  */
234				trip = <&apollo_alert_4>;
235				cooling-device = <&cpu0 3 4>;
236			};
237			map3 {
238				/* Set maximum frequency as 900MHz  */
239				trip = <&apollo_alert_5>;
240				cooling-device = <&cpu0 4 5>;
241			};
242			map4 {
243				/* Set maximum frequency as 800MHz  */
244				trip = <&apollo_alert_6>;
245				cooling-device = <&cpu0 5 9>;
246			};
247		};
248	};
249
250	isp_thermal: isp-thermal {
251		thermal-sensors = <&tmu_isp>;
252		polling-delay-passive = <0>;
253		polling-delay = <0>;
254		trips {
255			isp_alert_0: isp-alert-0 {
256				temperature = <80000>;	/* millicelsius */
257				hysteresis = <1000>;	/* millicelsius */
258				type = "active";
259			};
260			isp_alert_1: isp-alert-1 {
261				temperature = <85000>;	/* millicelsius */
262				hysteresis = <1000>;	/* millicelsius */
263				type = "active";
264			};
265			isp_alert_2: isp-alert-2 {
266				temperature = <90000>;	/* millicelsius */
267				hysteresis = <1000>;	/* millicelsius */
268				type = "active";
269			};
270			isp_alert_3: isp-alert-3 {
271				temperature = <95000>;	/* millicelsius */
272				hysteresis = <1000>;	/* millicelsius */
273				type = "active";
274			};
275			isp_alert_4: isp-alert-4 {
276				temperature = <100000>;	/* millicelsius */
277				hysteresis = <1000>;	/* millicelsius */
278				type = "active";
279			};
280			isp_alert_5: isp-alert-5 {
281				temperature = <105000>;	/* millicelsius */
282				hysteresis = <1000>;	/* millicelsius */
283				type = "active";
284			};
285			isp_alert_6: isp-alert-6 {
286				temperature = <110000>;	/* millicelsius */
287				hysteresis = <1000>;	/* millicelsius */
288				type = "active";
289			};
290		};
291	};
292};
293};
294