Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: Define default thermal-zones for exynos5422

Trip points corresponding to the one defined in the exynos_tmu_data.c
for Exynos5422 have been included so define thermal-zones attribute.

Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>

authored by

Anand Moon and committed by
Kukjin Kim
f1722d7d 8e946a05

+59
+59
arch/arm/boot/dts/exynos5422-cpu-thermal.dtsi
··· 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 + };