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: 6707881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 82567C05AC for ; Thu, 2 Jul 2015 05:41:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F6F7206E5 for ; Thu, 2 Jul 2015 05:41:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C340D206E1 for ; Thu, 2 Jul 2015 05:41:19 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZAXCR-0008Ui-2u; Thu, 02 Jul 2015 05:38:15 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZAXCO-0008AS-C6 for linux-arm-kernel@lists.infradead.org; Thu, 02 Jul 2015 05:38:13 +0000 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-arm-kernel@lists.infradead.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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150701_223812_569515_2F6ABD17 X-CRM114-Status: GOOD ( 13.08 ) X-Spam-Score: -7.5 (-------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cw00.choi@samsung.com, l.majewski@samsung.com, linux-samsung-soc@vger.kernel.org, kyungmin.park@samsung.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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