ARM: dts: Add CPU cooling binding for exynos3250 boards
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 Jul 2015 14:02:22 +0000 (23:02 +0900)
committerKukjin Kim <kgene@kernel.org>
Thu, 13 Aug 2015 17:08:56 +0000 (02:08 +0900)
This patch add the cooling device to control the overheating issue on
Exynos3250-based Rinato/Monk board.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/boot/dts/exynos3250-monk.dts
arch/arm/boot/dts/exynos3250-rinato.dts
arch/arm/boot/dts/exynos3250.dtsi

index 7863265d4868fe96f1425483e0500d9294e9d558..540a0adf2be6dcc94da5b487958cacca4348996d 100644 (file)
                min-microvolt = <1100000>;
                max-microvolt = <2700000>;
        };
+
+       thermal-zones {
+               cpu_thermal: cpu-thermal {
+                       cooling-maps {
+                               map0 {
+                                       /* Correspond to 500MHz at freq_table */
+                                       cooling-device = <&cpu0 5 5>;
+                               };
+                               map1 {
+                                       /* Correspond to 200MHz at freq_table */
+                                       cooling-device = <&cpu0 8 8>;
+                               };
+                       };
+               };
+       };
 };
 
 &adc {
index ddd7ac283045f2b379594ff257d0cd5ccba3b532..0e62a6435e073b35a8c92e76f4300a423418a4c1 100644 (file)
                min-microvolt = <1100000>;
                max-microvolt = <2700000>;
        };
+
+       thermal-zones {
+               cpu_thermal: cpu-thermal {
+                       cooling-maps {
+                               map0 {
+                                       /* Corresponds to 500MHz */
+                                       cooling-device = <&cpu0 5 5>;
+                               };
+                               map1 {
+                                       /* Corresponds to 200MHz */
+                                       cooling-device = <&cpu0 8 8>;
+                               };
+                       };
+               };
+       };
 };
 
 &adc {
index 9e58a2322a2dc8833ec2ba9e8810e2c9f6483fab..033def482fc3d71693c48bd5a942eda4a7833bbf 100644 (file)
@@ -55,6 +55,7 @@
                        clock-frequency = <1000000000>;
                        clocks = <&cmu CLK_ARM_CLK>;
                        clock-names = "cpu";
+                       #cooling-cells = <2>;
 
                        operating-points = <
                                1000000 1150000