From patchwork Wed Dec 10 12:09:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5468521 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B0ABEBEEA8 for ; Wed, 10 Dec 2014 12:13:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCCD620125 for ; Wed, 10 Dec 2014 12:13:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D60020172 for ; Wed, 10 Dec 2014 12:13:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753514AbaLJMM6 (ORCPT ); Wed, 10 Dec 2014 07:12:58 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:39744 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753511AbaLJMM5 (ORCPT ); Wed, 10 Dec 2014 07:12:57 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGD00LBG8LJ8V60@mailout4.samsung.com>; Wed, 10 Dec 2014 21:12:55 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-66-548838c77110 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F1.DD.20081.7C838845; Wed, 10 Dec 2014 21:12:55 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NGD004CJ8GLGMG0@mmp1.samsung.com>; Wed, 10 Dec 2014 21:12:55 +0900 (KST) From: Lukasz Majewski To: Eduardo Valentin , Zhang Rui Cc: Linux PM list , "linux-samsung-soc@vger.kernel.org" , Bartlomiej Zolnierkiewicz , Lukasz Majewski , Kukjin Kim , Amit Daniel Kachhap , Abhilash Kesavan , Abhilash Kesavan , Kyungmin Park , Chanwoo Choi , Lukasz Majewski Subject: [PATCH v2 10/17] thermal: exynos: dts: Define default thermal-zones for Exynos4 Date: Wed, 10 Dec 2014 13:09:49 +0100 Message-id: <1418213396-743-11-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1418213396-743-1-git-send-email-l.majewski@samsung.com> References: <1412872737-624-1-git-send-email-l.majewski@samsung.com> <1418213396-743-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrALMWRmVeSWpSXmKPExsVy+t9jAd3jFh0hBt/fKls8XrOYyaLhaojF xhnrWS2uf3nOajH/yjVWizV/lSx6F1xlszjb9Ibd4s0jbos3DzczWnzuPcJoMeP8PiaLJw/7 2Bx4PXbOusvusXjPSyaPddPeMnv0bVnF6PF5k1wAaxSXTUpqTmZZapG+XQJXxtrONUwFf/gr jr3ZydjAuIuni5GTQ0LAROJV0002CFtM4sK99UA2F4eQwCJGif3991khnC4miZtvDjCDVLEJ 6El8vvuUCcQWEfCWeL1vOiNIEbNAF4vEjhXzwUYJC0RJvH6/lB3EZhFQlfjRsYgRxOYVcJX4 8ugyI8Q6RYnuZxPA6jmB4mdO3QAbKiRQL7Fo8RvWCYy8CxgZVjGKphYkFxQnpeca6hUn5haX 5qXrJefnbmIEh+MzqR2MKxssDjEKcDAq8fAGXG4PEWJNLCuuzD3EKMHBrCTC+0ayI0SINyWx siq1KD++qDQntfgQozQHi5I4r5J9W4iQQHpiSWp2ampBahFMlomDU6qBMVWqqWzOi+khBfYK m+J2OV5nU/nY8D7BU+LnSck9YkLPJm/Z+cf30KketvX5tsqXJk76P7NvTv2NL3piG74nbNis pjUlQkvZ+Xnjm24Z/p6cLq27Xbu0zuaG9ZcnVN0Kq2X+cVfc7sgHRdG48kU/ORsDuUy9i3Lj sq0/6Rytvrut7dHxWP8aJZbijERDLeai4kQAZbVSvkMCAAA= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Trip points corresponding to the one defined in the exynos_tmu_data.c for Exynos4 have been included. This thermal-zones attribute is afterwards reused for Exynos4210, Exynos4412 and Exynos5250. Signed-off-by: Lukasz Majewski --- Changes for v2: - None --- arch/arm/boot/dts/exynos4-cpu-thermal.dtsi | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 arch/arm/boot/dts/exynos4-cpu-thermal.dtsi diff --git a/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi b/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi new file mode 100644 index 0000000..506600a --- /dev/null +++ b/arch/arm/boot/dts/exynos4-cpu-thermal.dtsi @@ -0,0 +1,52 @@ +/* + * Device tree sources for Exynos4 thermal zone + * + * Copyright (c) 2014 Lukasz Majewski + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#include + +/ { + thermal-zones { + cpu_thermal: cpu-thermal { + thermal-sensors = <&tmu 0>; + polling-delay-passive = <0>; + polling-delay = <0>; + trips { + cpu_alert0: cpu-alert-0 { + temperature = <70000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "active"; + }; + cpu_alert1: cpu-alert-1 { + temperature = <95000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "active"; + }; + cpu_alert2: cpu-alert-2 { + temperature = <110000>; /* millicelsius */ + hysteresis = <10000>; /* millicelsius */ + type = "active"; + }; + cpu_crit0: cpu-crit-0 { + temperature = <120000>; /* millicelsius */ + hysteresis = <0>; /* millicelsius */ + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu_alert0>; + }; + map1 { + trip = <&cpu_alert1>; + }; + }; + }; + }; +};