From patchwork Sat Feb 4 14:16:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9555633 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 51C0D60424 for ; Sat, 4 Feb 2017 14:17:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E77927BE5 for ; Sat, 4 Feb 2017 14:17:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32F1927CF9; Sat, 4 Feb 2017 14:17:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C698827BE5 for ; Sat, 4 Feb 2017 14:17:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750934AbdBDORh (ORCPT ); Sat, 4 Feb 2017 09:17:37 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:55895 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbdBDORh (ORCPT ); Sat, 4 Feb 2017 09:17:37 -0500 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LnG25-1bx8ga0siT-00hK1X; Sat, 04 Feb 2017 15:16:53 +0100 From: Stefan Wahren To: Eduardo Valentin , Zhang Rui , kernel@martin.sperl.org Cc: Eric Anholt , Rob Herring , Frank Rowand , Florian Fainelli , linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Stefan Wahren Subject: [PATCH 2/2] ARM: dts: bcm283x: Add critical thermal zone for GPU Date: Sat, 4 Feb 2017 14:16:27 +0000 Message-Id: <1486217787-15703-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1486217787-15703-1-git-send-email-stefan.wahren@i2se.com> References: <1486217787-15703-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:6abz1lSA/igkjZsNuaBnxZxHfuoykPstDiQlGicap18pAhFz0sd 2yp6zMsXkyXDiH82aDM3/9pvuLF8ssUNuJx+XoCZEpsA+w/nOsLdYxQ5OFiOBGldq5ofky/ 8YASSzjld2gPCA9P4lKYxH4zoOXi5v65RpSVuaZIPuQ+LNYJirpB9aypdXlCrDaa4ysegJj Ff0NC87NUujDeaG73UTHQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:6YijQvlXWpg=:VNQjddphUBsLeNCaN1vmnK SchMrXoV79pn6EE5rlWbh5fRrVVGZGvpCct1xSBHUDIAPGW/XftXl/fPfPUoirOcJ9Q1OBvHL G9v5bu8o6kc6pNjfYXJ9P5GwT4FlNcAyED13JrjiI5XWq0hUAS8PAiDxQDlVWkOs1/bRjp3Ri qK9Mznhw/mMoGr/Le5QvbnZwsCwMgqiKCzecrffAibJqYz8L8SnFXTg8zd3g8TC9mISieTJwO qNFif7fjP9BtQ/wi6JA0kXSa6K2IlfPA+yz4cMkXyrr73Y0LDAJkcivRyULq+S/bA6KnHn/ST Exzrwg3+WXupPlKcy8i7r+P1N7b/cE6kjI1rjgGONnFyJcvU4qXOzfIcv5QPctDeMHB3ZkiBS l82X6J79LTJG4SUcVC5MX4I1Shp3pas06JeMFP8/q1R6WlLRIR1Wl9bCt711shwk/bIhqOZjJ zu1VRiMP5pGaZDWtlPy2KQSfpqgKlxNYteXQYV5eCxBVBYO3KLsE5sowJuSxi1GiWVcgWqj3p DtCav8o3yES/fsQQVGP4iVb6naa+tNomMINOhPvHIS8wyF39H8WablJQEB0OC3ras+eYbhbaQ KmDfXoIbT7zls8L4FhNaOUe6wd+597RBn89lowNeVnAaPu5Hx1Qk/Wb6qrKqE32dlbbzvDDpE jyCMaD150EruS7wM9yLV5bGtK4QWk6lHJ5i6B+ct6RVXO7dNQuz0U6VPYPjRd38hRVfc= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As suggested by Eduardo Valentin this adds the thermal zone for the bcm2835 SoC. Since we currently don't have any cooling devices leave this section empty. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm283x.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index 9c7ec7e..359da9d 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -19,6 +19,25 @@ bootargs = "earlyprintk console=ttyAMA0"; }; + thermal-zones { + gpu_thermal: gpu-thermal { + polling-delay-passive = <0>; + polling-delay = <1000>; + + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <80000>; + hysteresis = <0>; + type = "critical"; + }; + }; + cooling-maps { + }; + }; + }; + soc { compatible = "simple-bus"; #address-cells = <1>;