From patchwork Sun Feb 12 19:38:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9568499 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 7D0D760442 for ; Sun, 12 Feb 2017 19:39:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 628F02811E for ; Sun, 12 Feb 2017 19:39:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52E5228156; Sun, 12 Feb 2017 19:39:52 +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 BAE492811E for ; Sun, 12 Feb 2017 19:39:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751275AbdBLTju (ORCPT ); Sun, 12 Feb 2017 14:39:50 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:63350 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbdBLTjt (ORCPT ); Sun, 12 Feb 2017 14:39:49 -0500 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LlJ5u-1c5Jra1FcU-00b7OV; Sun, 12 Feb 2017 20:39:04 +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 V2 2/2] ARM: dts: bcm283x: Add CPU thermal zone with 1 trip point Date: Sun, 12 Feb 2017 19:38:48 +0000 Message-Id: <1486928328-25870-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1486928328-25870-1-git-send-email-stefan.wahren@i2se.com> References: <1486928328-25870-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:33FmGwvg2DRD0pNG202T46Gy1omaqZTr4FFn+w/VgCoCvIMAIGb PmU2vg7/K8gYEY1VxH/TatFSOZWYVnkhZU0pjUtKP4eoxOy0w48phibGb4hxWWZOoGulf4D mh//6urEfLi/HQkFUw40ceZFrOW4RePcTUBtZdCbOjLYRW0+oaG+fsbXYwxDyG7hXAb8IOA CzMwaRvRGBjOBlxQ7Tncg== X-UI-Out-Filterresults: notjunk:1; V01:K0:99pUESALYLY=:LPkefiAV8v9vcOAA9PK1Cj PNiLmvoAypbmGnyYAmeCXcLpLjIYrjVAow6ey/lDr2gr6IUrjA8/gt1M+aWZvEPxgKhsIohJL hpXPi4+i+F45DZcYq8VjyoyjLdFjvrHFUCGsk+KjsBunGNUF8mZhmX40gx+lrcMEk/jYEPcRi O27zSA0HcpPpkiK5L6qiuisAQ8p2ksAwBx0VF+5KKZGOzSDIvlaBc1Kx5bKNxhuLt2k2Y3cBk 0UcA0AlzqoTnsYiSZX5K6Eouv2A2ljh4KZxQMv2tAN0RBgFKKGbkEaSwLNwnqemSnZxGIUBKS z9um0C8Wi950rS1x17calhHDBnbDfq8faIp5QvRhv3cc90FdJA/6ey+UTYm8RMeQqDerpSSBr iMYcUnaPREYv6mf3pla89vLgde8oEWrjycx/e261Mel1winPWfDwwlS7Vs4f6l0wHWIWOacR7 yDiExrotv8XPyiaMIapYruSkyYiLYcDCxlWU6NjXYGnLmSRqAD3/SYrsXvytrZpFv8YybKtdk Rsl0kNApkTLPUFwGHeJnGw3/gVdpCiTSNgJU/3wHduTqWBxQG9XoGdwGNp6SzGqZhqO4eG9B4 mXnXcfnfZNrlf3qEUYzSG1+Ym3lbbdrNs8FmlavLM/estaP3EczdRCNvnXA3ZozZfyPaDSk0q MhEpDAt/Q1OiAGErp56SMieZtpJizZB+f4ghNlZBaMSwljhzvUojnWvM1qOmi4ruBTX0= 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 with its single thermal sensor. We start with the criticial trip point and leave the cooling devices empty since we don't have any at the moment. Signed-off-by: Stefan Wahren --- Changes in V2: - add missing thermal-sensor-cells property - change gpu-thermal to cpu-thermal arch/arm/boot/dts/bcm283x.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index a3106aa..4dc74f6 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 { + cpu_thermal: cpu-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>; @@ -394,6 +413,7 @@ compatible = "brcm,bcm2835-thermal"; reg = <0x7e212000 0x8>; clocks = <&clocks BCM2835_CLOCK_TSENS>; + #thermal-sensor-cells = <0>; status = "disabled"; };