1/*
2 * Device tree sources for Exynos5422 thermal zone
3 *
4 * Copyright (c) 2015 Lukasz Majewski <l.majewski@samsung.com>
5 *			Anand Moon <linux.amoon@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 */
12
13#include <dt-bindings/thermal/thermal.h>
14
15/ {
16	thermal-zones {
17		cpu0_thermal: cpu0-thermal {
18			thermal-sensors = <&tmu_cpu0 0>;
19			polling-delay-passive = <0>;
20			polling-delay = <0>;
21			trips {
22				cpu_alert0: cpu-alert-0 {
23					temperature = <50000>; /* millicelsius */
24					hysteresis = <5000>; /* millicelsius */
25					type = "active";
26				};
27				cpu_alert1: cpu-alert-1 {
28					temperature = <60000>; /* millicelsius */
29					hysteresis = <5000>; /* millicelsius */
30					type = "active";
31				};
32				cpu_alert2: cpu-alert-2 {
33					temperature = <70000>; /* millicelsius */
34					hysteresis = <5000>; /* millicelsius */
35					type = "active";
36				};
37				cpu_crit0: cpu-crit-0 {
38					temperature = <120000>; /* millicelsius */
39					hysteresis = <0>; /* millicelsius */
40					type = "critical";
41				};
42			};
43			cooling-maps {
44				map0 {
45				     trip = <&cpu_alert0>;
46				     cooling-device = <&fan0 0 1>;
47				};
48				map1 {
49				     trip = <&cpu_alert1>;
50				     cooling-device = <&fan0 1 2>;
51				};
52				map2 {
53				     trip = <&cpu_alert2>;
54				     cooling-device = <&fan0 2 3>;
55				};
56			};
57		};
58	};
59};
60