From patchwork Sun Mar 12 22:11:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9619575 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 12A6160414 for ; Sun, 12 Mar 2017 22:11:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05CB828343 for ; Sun, 12 Mar 2017 22:11:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEC282840B; Sun, 12 Mar 2017 22:11:45 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 92D4B28343 for ; Sun, 12 Mar 2017 22:11:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935459AbdCLWLo (ORCPT ); Sun, 12 Mar 2017 18:11:44 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:53848 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935395AbdCLWLi (ORCPT ); Sun, 12 Mar 2017 18:11:38 -0400 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0La0Ij-1cNVwL3D6T-00lno1; Sun, 12 Mar 2017 23:11:20 +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 V11 3/6] dt-bindings: Add thermal zone to bcm2835-thermal example Date: Sun, 12 Mar 2017 22:11:02 +0000 Message-Id: <1489356665-3175-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1489356665-3175-1-git-send-email-stefan.wahren@i2se.com> References: <1489356665-3175-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:HNGoG9VhSD68C+Q76jUXmiGIKOkIhEVP9pBXscu72XQv98mFXoX c2+8eX0PX4g6ain5zterHZpVaLgFXYH7ELpEwT9OYhRnv1gg1EJ1+2aSEZIHRXwkKAzzWIi +aZQtbXmgpiB9bff750T+pDGb/5zoizk4nju1A15vGW5kcQ9FaDfdW/hEYb8ElPaGebVRLS fkmZWduccWLQ6q7jWamjA== X-UI-Out-Filterresults: notjunk:1; V01:K0:6i8VDaGxeFo=:UvOSMyG6GKABk738c7k6vf 6Plq8ia1fjXre0CVBxQV+tT9sT1M8FbhB1T4wdxav8dOdb+op/rLtYsPOPOb3N0jCRpIVRab3 gEqAhIYPnZ77w+1Ro7R17Swt7o9JfYsr1mOlb0OqZVDabFWFAzbJoMdmS/7cuO+eLuohxOr7l P6hyCid0U/GRHREg+JD4g+1W7t1U5GPxTWyIxSYa0+wPtXgFYt2s3IOlaJhCtf/Xkbmg/5qlg 49c7Ezd8cNe8xpNqfDTrz/MpVapopUpqYyFDiEFGR0QeZ/KIy1AyPMHo/yySY1uCdv3dr2fPi tWCEiNjTe4MvoFk3bygkT7e5o4JdQdWpQBdaNtIzUGana/Ag1H8KHMfUOubv3bAGUS+LVwpZI foy+o0QWSNHMpOOnk5ogMjO1qxTCTuxnnX4fmlk6gAAZpzT/5Fnmg5hxZYOcSCENRdFEX5SU/ wS2tt1k8dbxQuEk8SMuq96iM7LlCh0l6MrSZnn6H6zjDBt803vYc+SAguavRYOvTL+osDx290 u83dYks4vU4aEfGdpmNGiljDu8gkCCWpTfUtJZIC6k6SKMWHln4t+/f3onu+CGW8wD7Sczhnu Xvnp0shPO/sjjnZ5CJWm2CWaSr68a9uOJzsTDYuXMfv8DORiB35a9z5IpQVvUO25u0gLdyQuz FszLvmXC2+xtraD8IxfKvsS1UVmthvCe9/7n6hjRINk/MDXQg+PubvmOLIhhX2dApzYQ= 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>; };