From patchwork Mon Mar 14 02:04:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 8574971 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 AE417C0553 for ; Mon, 14 Mar 2016 02:07:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D03CE20465 for ; Mon, 14 Mar 2016 02:07:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 843C02045E for ; Mon, 14 Mar 2016 02:07:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933418AbcCNCGG (ORCPT ); Sun, 13 Mar 2016 22:06:06 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:45187 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754168AbcCNCE0 (ORCPT ); Sun, 13 Mar 2016 22:04:26 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O4000LHQB3CQI50@mailout3.samsung.com>; Mon, 14 Mar 2016 11:04:24 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 29.43.04972.82C16E65; Mon, 14 Mar 2016 11:04:24 +0900 (KST) X-AuditID: cbfee68e-f793c6d00000136c-e2-56e61c2816e4 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id B0.B5.13906.82C16E65; Mon, 14 Mar 2016 11:04:24 +0900 (KST) Received: from chan.10.32.193.11 ([10.113.62.212]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O40004KGB3BRB50@mmp2.samsung.com>; Mon, 14 Mar 2016 11:04:23 +0900 (KST) From: Chanwoo Choi To: k.kozlowski@samsung.com, kgene@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com Cc: jh80.chung@samsung.com, andi.shyti@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, pankaj.dubey@samsung.com, cw00.choi@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 07/10] ARM: dts: Add thermal zone and cpufreq node for exynos3250-artik5 module Date: Mon, 14 Mar 2016 11:04:13 +0900 Message-id: <1457921056-21257-9-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1457921056-21257-1-git-send-email-cw00.choi@samsung.com> References: <1457921056-21257-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrDLMWRmVeSWpSXmKPExsWyRsSkQFdD5lmYwdsdohbbjzxjtbj+5Tmr xfwj51gtJt2fwGJx41cbq8XrF4YW/Y9fM1tsenyN1eLyrjlsFjPO72OyWLT1C7vF4TftrBYz Jr9ks1i16w+jA5/Hzll32T02repk89i8pN6jb8sqRo/Pm+QCWKO4bFJSczLLUov07RK4MvbM uMdYMIWz4uWlTrYGxn72LkYODgkBE4kzv2O6GDmBTDGJC/fWs3UxcnEICaxglGj/+osFImEi cflqDyNEYhajRN/RkywQzhdGie2NE5hBqtgEtCT2v7jBBmKLCMRJTLwIYTMLzGKSmDe/EMQW FkiUWLS2nxXEZhFQlej73MAOYvMKuEo8W/yOGWKbnMSHPY/A4pwCbhK7jrwCqxcCqtl3+wTY FRIC59glLi+9yQQxSEDi2+RDLBDvyEpsOgA1R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8z7+vy5MSCA9sSQ1OzW1ILUIpo+Jg1OqgbFFmGOJebx+ntO7 lmmnbq+JXZHyp4lng2zpign8d54nKlUcieJ2Px6V9GbVv4Kt18JPzv+55e/2bkuH2qP7drlK ur84fa3338yH+pVzZumdWiQ6feLXlvWbJn7OOd9s1xB2036JjajA0gVJiYfC8ytKVqXnrM0T KvX/MjtHYNHGxpiue0aB8aFKLMUZiYZazEXFiQBvecEK3QIAAA== 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=-6.9 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 enables the CPU frequency scaling for exynos3250-artik5 module and adds the thernal zones with cpu cooling device to prevent the overheat temperature. Signed-off-by: Chanwoo Choi --- arch/arm/boot/dts/exynos3250-artik5.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/exynos3250-artik5.dtsi b/arch/arm/boot/dts/exynos3250-artik5.dtsi index 75b291c10cdc..877e4827df83 100644 --- a/arch/arm/boot/dts/exynos3250-artik5.dtsi +++ b/arch/arm/boot/dts/exynos3250-artik5.dtsi @@ -31,6 +31,25 @@ compatible = "samsung,secure-firmware"; reg = <0x0205F000 0x1000>; }; + + 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>; + }; + }; + }; + }; +}; + +&cpu0 { + cpu0-supply = <&buck2_reg>; }; &i2c_0 { @@ -296,6 +315,10 @@ status = "okay"; }; +&tmu { + status = "okay"; +}; + &xusbxti { clock-frequency = <24000000>; };