From patchwork Thu Jul 2 05:37:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 6707861 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 525519F2F0 for ; Thu, 2 Jul 2015 05:37:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7005020268 for ; Thu, 2 Jul 2015 05:37:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6509B206E1 for ; Thu, 2 Jul 2015 05:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750857AbbGBFhx (ORCPT ); Thu, 2 Jul 2015 01:37:53 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:55671 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750854AbbGBFhv (ORCPT ); Thu, 2 Jul 2015 01:37:51 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NQU0043VIB1NI50@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 02 Jul 2015 14:37:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.112]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 36.7B.20564.D2EC4955; Thu, 2 Jul 2015 14:37:49 +0900 (KST) X-AuditID: cbfee690-f796f6d000005054-0c-5594ce2d6502 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id DE.23.05312.D2EC4955; Thu, 2 Jul 2015 14:37:49 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NQU00IE6IB03WE0@mmp2.samsung.com>; Thu, 02 Jul 2015 14:37:49 +0900 (KST) From: Chanwoo Choi To: kgene@kernel.org, k.kozlowski@samsung.com Cc: l.majewski@samsung.com, kyungmin.park@samsung.com, cw00.choi@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: Add CPU cooling binding for Exynos3250-based Rinato/Monk board Date: Thu, 02 Jul 2015 14:37:45 +0900 Message-id: <1435815465-501-1-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDLMWRmVeSWpSXmKPExsWyRsSkQFf33JRQg6adEhbXvzxntXj9wtCi //FrZouzTW/YLd483MxosenxNVaLGef3MTmwe2xa1cnmsXlJvUffllWMHp83yQWwRHHZpKTm ZJalFunbJXBlrPzNW7BGuOLthPVMDYyb+bsYOTkkBEwk/l7ZwAZhi0lcuLceyObiEBJYyihx ZMJLJpiil3caWCAS0xklXnxpZodwvjBKfGn/wgJSxSagJbH/xQ2wUSICuhLvX64D62AG6Wh4 epURJCEsEC2x9uc65i5GDg4WAVWJrmVCIGFeAWeJjm8bWSG2KUgsWz6TFaRXQuAzm8SDC3vA hrIICEh8m3yIBaRXQkBWYtMBZoh6SYmDK26wTGAUXMDIsIpRNLUguaA4Kb3IRK84Mbe4NC9d Lzk/dxMjMFBP/3s2YQfjvQPWhxgFOBiVeHhX1EwJFWJNLCuuzD3EaAq0YSKzlGhyPjAe8kri DY3NjCxMTUyNjcwtzZTEeV9L/QwWEkhPLEnNTk0tSC2KLyrNSS0+xMjEwSnVwKjZ/TTt2nbu LJPmOZ6egvNzwisStKMPumd788x86MRuKvFCqUnPaIp5eEfYtFk3Zmq1F2iuY7860U5MMvLK LzGtpxP+8bexLq5edIcv03Jnn8Uh7qQXkuIBvE/PM6/L1N/68/QTWX8OqZpntqo5mYf2/fE4 Xm7jE3rSLbnuzNHpa1oWhWk6KbEUZyQaajEXFScCAIaXc2lPAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeLIzCtJLcpLzFFi42I5/e+xoK7uuSmhBndWCFtc//Kc1eL1C0OL /sevmS3ONr1ht3jzcDOjxabH11gtZpzfx+TA7rFpVSebx+Yl9R59W1YxenzeJBfAEtXAaJOR mpiSWqSQmpecn5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkDdICSQlliTilQ KCCxuFhJ3w7ThNAQN10LmMYIXd+QILgeIwM0kLCGMWPlb96CNcIVbyesZ2pg3MzfxcjJISFg IvHyTgMLhC0mceHeerYuRi4OIYHpjBIvvjSzQzhfGCW+tH8Bq2IT0JLY/+IGG4gtIqAr8f7l OhaQImaQjoanVxlBEsIC0RJrf65j7mLk4GARUJXoWiYEEuYVcJbo+LaRFWKbgsSy5TNZJzBy L2BkWMUomlqQXFCclJ5rpFecmFtcmpeul5yfu4kRHAfPpHcwrmqwOMQowMGoxMO7omZKqBBr YllxZe4hRgkOZiUR3u27gEK8KYmVValF+fFFpTmpxYcYTYGWT2SWEk3OB8ZoXkm8obGJmZGl kbmhhZGxuZI478l8n1AhgfTEktTs1NSC1CKYPiYOTqkGRhH7x+kzl3JxLCoTVjRce+Kj4+qo ZI/eI5HhYQc6dBctmZ14JJvzmcbuzPxN9/0vpXZN87h19dgu3sLgI3325jNKziRtY3C+u+He kmC11Q+39N47v7ovTDW2JkqCdXPTTKHZh/2eRkrcfRseleVQ6DbPV2dRk9H2dYEuS1dWrZJb rbp8zxefWiWW4oxEQy3mouJEAJ3Qyx2ZAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add the cooling device to control the overheating issue on Exynos3250-based Rinato/Monk board. Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Acked-by: Krzysztof Kozlowski --- Depends on: This patch needs the cpufreq support of Exynos3250 SoC. So, this patch has the dependency on patch[1] which support the generic cpufreq for Exynos3250 SoC. [1] https://lkml.org/lkml/2015/7/1/696 : [PATCH v6 0/3] cpufreq: Use cpufreq-dt driver for Exynos3250 arch/arm/boot/dts/exynos3250-monk.dts | 15 +++++++++++++++ arch/arm/boot/dts/exynos3250-rinato.dts | 15 +++++++++++++++ arch/arm/boot/dts/exynos3250.dtsi | 1 + 3 files changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250-monk.dts b/arch/arm/boot/dts/exynos3250-monk.dts index 7863265d4868..540a0adf2be6 100644 --- a/arch/arm/boot/dts/exynos3250-monk.dts +++ b/arch/arm/boot/dts/exynos3250-monk.dts @@ -116,6 +116,21 @@ 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 { diff --git a/arch/arm/boot/dts/exynos3250-rinato.dts b/arch/arm/boot/dts/exynos3250-rinato.dts index ddd7ac283045..0e62a6435e07 100644 --- a/arch/arm/boot/dts/exynos3250-rinato.dts +++ b/arch/arm/boot/dts/exynos3250-rinato.dts @@ -107,6 +107,21 @@ 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 { diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi index e0f3b2ed41a3..a4931b660ddb 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -55,6 +55,7 @@ clock-frequency = <1000000000>; clocks = <&cmu CLK_ARM_CLK>; clock-names = "cpu"; + #cooling-cells = <2>; operating-points = < 1000000 1150000