From patchwork Fri Mar 3 23:18:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9603687 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 22234602B4 for ; Fri, 3 Mar 2017 23:21:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 114752846A for ; Fri, 3 Mar 2017 23:21:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05D2F28621; Fri, 3 Mar 2017 23:21:41 +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 ADEBD2846A for ; Fri, 3 Mar 2017 23:21:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752349AbdCCXV2 (ORCPT ); Fri, 3 Mar 2017 18:21:28 -0500 Received: from mout.kundenserver.de ([212.227.126.130]:55001 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbdCCXVM (ORCPT ); Fri, 3 Mar 2017 18:21:12 -0500 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0Lafkm-1bzZ1x2DQu-00kSlA; Sat, 04 Mar 2017 00:19:01 +0100 From: Stefan Wahren To: Eric Anholt , Zhang Rui , Eduardo Valentin Cc: Martin Sperl , Catalin Marinas , Will Deacon , Rob Herring , Frank Rowand , Florian Fainelli , linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V10 3/6] dt-bindings: Add thermal zone to bcm2835-thermal example Date: Fri, 3 Mar 2017 23:18:46 +0000 Message-Id: <1488583129-4159-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1488583129-4159-1-git-send-email-stefan.wahren@i2se.com> References: <1488583129-4159-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:BnFxEyUjA4qx933hCMH6a3HMnn6aTm3o5wipTMYir0htM0WCiLx WvACeIOYCLzI/+37BvK/maDtteDrzqRPXrgc06maI4S3btKkUmzEd+Ldx+9vzDKCbiBsqZt q2ox5J8tRTSkjDWpjML1hFJs0Hw6blD/ktoiVXGHpWzUFn89tz50f+lJ0udxcCSpDI0egbD +glrRRctuQha6UFSgByuA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Jptnm4a280A=:Ff1gvCG7z7QrBJ3X7klIH1 WwNLn2q2d+8cnFFlfLLyjxdU7HYCNPaxpsEnqP1zbDbi/r4WYBE0uQSG4a1E8hRNOWMKdx7o3 RPgxURUWuJTDphLUpaxB9SZ/xhvCDmR7F57eeY1Rxq/wi4IxwY38NxmRvxVM9uuzFpf04bpJ3 HM9A1vs01QiYVUlu85lHwwUJEKOdilpQjvr61eqN4vMsiCMDD9ZwuRu6w/B7nNwgw0FQJV+9a QVaATEcAueUJmGMQwjdkbQFtu2bUPsbJmpIqGVTPvvl17hREvmpJqKelVh3rj1FxqGMWonL0M cghxN7qULbywhSVIlXo/HLp1GwUGgmQy/jGGBa33Olnl0o/LeyRoJ6DES7hDbhNr3MslY352c TtiPO0wIF3IWIBG8vI5lec3Wpfz5RLyF6ZB1U3kdO0qqovoLB3b8Vd5T77qI2e2GSGTf2nCBq JyDMuVaDHXiXMEYmTF5kCJ52NDZ/Z3iTWUB+AJ0/1c0Wle4PP5mPZJ4qbinKLGedjTCd+4IBO N3b5Kud09lCXF1u+nRliYwblALb/8u6Xy3Fx7rW8+V76yLTMZ2itI3MzW3YP7Z9FEzSH/NKvo 0owCDuHHkkFQ7Ta6JW5zXpu9duPmROuTN+P34/nIGrvcLSVl8m0YvFk7kTUZeJwaXMDBaRneA ctQDG1Rf39QBw9gl1eLwD7NSsb07CK1PFr0nKl4nQ5rxnfwkKkedmpXYB1SfVJe/+XtE= 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 Add a thermal zone in order to make the example complete. Signed-off-by: Stefan Wahren Acked-by: Rob Herring --- .../bindings/thermal/brcm,bcm2835-thermal.txt | 32 +++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt index 474531d..da8c5b7 100644 --- a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt +++ b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt @@ -3,15 +3,39 @@ Binding for Thermal Sensor driver for BCM2835 SoCs. Required parameters: ------------------- -compatible: should be one of: "brcm,bcm2835-thermal", - "brcm,bcm2836-thermal" or "brcm,bcm2837-thermal" -reg: Address range of the thermal registers. -clocks: Phandle of the clock used by the thermal sensor. +compatible: should be one of: "brcm,bcm2835-thermal", + "brcm,bcm2836-thermal" or "brcm,bcm2837-thermal" +reg: Address range of the thermal registers. +clocks: Phandle of the clock used by the thermal sensor. +#thermal-sensor-cells: should be 0 (see thermal.txt) Example: +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"; + }; + }; + + coefficients = <(-538) 407000>; + + cooling-maps { + }; + }; +}; + thermal: thermal@7e212000 { compatible = "brcm,bcm2835-thermal"; reg = <0x7e212000 0x8>; clocks = <&clocks BCM2835_CLOCK_TSENS>; + #thermal-sensor-cells = <0>; };