From patchwork Fri Mar 31 20:03:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9657261 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 74C9E601D2 for ; Fri, 31 Mar 2017 20:04:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 669DD28703 for ; Fri, 31 Mar 2017 20:04:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B5B228707; Fri, 31 Mar 2017 20:04:12 +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 0FFC1286FC for ; Fri, 31 Mar 2017 20:04:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933127AbdCaUEH (ORCPT ); Fri, 31 Mar 2017 16:04:07 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:57548 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755155AbdCaUEF (ORCPT ); Fri, 31 Mar 2017 16:04:05 -0400 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.167]) with ESMTPSA (Nemesis) id 0M5tFN-1bwqZq2xnV-00xweD; Fri, 31 Mar 2017 22:03:19 +0200 From: Stefan Wahren To: Eduardo Valentin , Zhang Rui , kernel@martin.sperl.org Cc: Eric Anholt , Rob Herring , Frank Rowand , Florian Fainelli , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Stefan Wahren Subject: [PATCH V12 1/4] dt-bindings: Add thermal zone to bcm2835-thermal example Date: Fri, 31 Mar 2017 20:03:03 +0000 Message-Id: <1490990586-30898-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1490990586-30898-1-git-send-email-stefan.wahren@i2se.com> References: <1490990586-30898-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:xSXFCI7ira1czLIF+uTKJbuUUd5o44E+McFclKtVqiw0RufwMsl OIyrzOeCigm02WB3KMLXcateriJ8Bdny9QcHVJ6froQDulXtdOR3uZX2oLsnEkrIisdeZ6v W0JSiyAWTz7+dSPtK8Ob/KmoLKLJ7ykGBorWjCo+ShUJh/H6jnvuHbn9s/mTwb8Kb6uoJUT 7Sq2z6UXtpvttX1/l859A== X-UI-Out-Filterresults: notjunk:1; V01:K0:+iy3Hr7yHvA=:CqIZzDcjF4bGnYxHdLZWNs L+dej9k3jFLCWUZZEVHaUAEW8Cuawf5R3+D0CBvasMbqclsnmqS/3pkAblABotBC3+ltiwQ/F QtTUj2jp2UMHQwkH4gkeoxq0ipj9/9EsYYfxQrlLurShtv1YcrRkEE8MSIvamfSCoAsfUNYyx TISXV92jI2pWDN+nWCYQ2ElDW9VPW2xKlXY/K2BJqSzE9IC2VmhwLRoNNoWh5FMt0ukF2VH2l 7GH9N2zro3Sf48relthxAgumwgCYmc4MSdYU/kBoQUd+JMNlOuzfyO3XW4nHxPUgrFsYtWsCg bAxJdoz0lO/L1u/bCNg3wmuBsmgKU4o3fr/d5yTNWJoJTTnB3jGSxDS0aIzoHRak15g2mpWwf 5ixbYIEyXvahfVEBDZyioOXegZU6uAc8w0IujFnUURA6cGPhYPOrEtWf6XwUt9Si/WJMIlqP+ g1parQTa3e+poLBO9dBUOxS/F1dcPr1dnthk3ckgheGmrKo4tgn9wXPQ1fGFZ3AEYOurc2LSE /4OcyzBoG3CB/BhBzZDNOTUOTMXJGorhWZVbgWwGV7QBPAs2OQRADh2/JiGJNLxxHAi4+dxCb 47C2GIyYmGHXOiNn9mllMatq1LGim/SzgzTAdB4pvl2BQj35c9J8o2Gs/WmRtybkiY2FLoYiJ 7YIiQovq+BIitu9ELydVc/jRMX+LuMAj7s/au5RTU/lmTFBs/3AAJZSZNv3Bjxv/8gBo= 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>; };