From patchwork Sun Feb 12 19:38:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 9568501 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 AD9EA60574 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 9EF652811E for ; Sun, 12 Feb 2017 19:39:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 931E628138; 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 3876D28135 for ; Sun, 12 Feb 2017 19:39:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751269AbdBLTjv (ORCPT ); Sun, 12 Feb 2017 14:39:51 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:63675 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751103AbdBLTju (ORCPT ); Sun, 12 Feb 2017 14:39:50 -0500 Received: from localhost.localdomain ([95.91.4.8]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LgL1E-1c0Jed3DZU-00niZl; Sun, 12 Feb 2017 20:39:03 +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 1/2] dt-bindings: Add thermal zone to bcm2835-thermal example Date: Sun, 12 Feb 2017 19:38:47 +0000 Message-Id: <1486928328-25870-1-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 X-Provags-ID: V03:K0:NpedhGMhhAAjW6wLWtMA6lrOqpp/8X2AOY9DCaeL/1VVT1o0Hfh zWM3v131TbXbQ4ESvMkys1O35LpTKljszWZd1Nnso/8jQB6dE5YgDK05fXWeeLdYQy25Unu umF+W6t6YvmV5yvEEOKgDrwZMAR0ftr5MgmeTJNU0Inhj4uzoKrjKpSoUqN5QdNPQMa2rkH Aus0CeAfsGr9W0LEVuaag== X-UI-Out-Filterresults: notjunk:1; V01:K0:h0ULRbW0MRg=:Hl1gl08JMaJLEmbDYl/rv2 XymR1ZrgcForQKc6ftncYwfM4YxLOhMNdUYA/iE1LksF9c/ZUzqSY+vCHnxMQ6RM3D9ykOpqk 8eyb2qtM/LY0IIYRIyZ0qhYmu8VDckSPHIrUpMw/xfWSvzq36/MdiLFyUZhQvPfJ/Dd1cWg7S rd0bKsRR5Ywnu3Zobwo3V1EWVFwV1EwqveiGGCc4Gl0i/RoLVOMmfPBalPbNPCQAmIq5BqIn8 lB1br6jzYLCkaRPHYluTxGdEsgW+Ir5azwTqYu/2oXCFqsV5Kqjr0tKgV42PbFurttj8Z9FpS MzItW1yX04oREzt/q79hjOO+L4+8D+Yo5nsl0ijo+L6KnoiiJUEuEt7Xk/p2IjItNYVXaZO/9 0WraVjK42XwGpMIWIa432uERut9JzC8WqPZnqA8TZmC/kk+EMnNg1V/YxU8mYzn8ji4pXnpzC DdZ24hb3H6vuforaFE8nOLbaZFnTzkiXViXkqwYQhi7AA01eTyg0TzF8hPqi49JDtXlwEJjLJ /R8PsWiqwmjtaMYd+v6zeqJKBN0J9QdnZmrGSHdICvSsnqSJ2gz4G44C+A37XSKKWAhXEzDX5 PpmeppombCRfjcBHJKmgpLaky9YpUc1Pwgq0P8zpCmTVT11GxuQYEFHmvBaeZjkpwXU6IXKCg FkzWGZXdK71QxJdcpvtrEQi7+WyEXaqecIUnqZlD16Y4qduPyxdjoQBQVeAmiUT2kxI8= 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 --- Changes in V2: - add missing thermal-sensor-cells property - change gpu-thermal to cpu-thermal .../bindings/thermal/brcm,bcm2835-thermal.txt | 29 +++++++++++++++++--- 1 file changed, 25 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..6b8607a 100644 --- a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt +++ b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt @@ -3,15 +3,36 @@ 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"; + }; + }; + cooling-maps { + }; + }; +}; + thermal: thermal@7e212000 { compatible = "brcm,bcm2835-thermal"; reg = <0x7e212000 0x8>; clocks = <&clocks BCM2835_CLOCK_TSENS>; + #thermal-sensor-cells = <0>; };