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: 9603695 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 D23D060453 for ; Fri, 3 Mar 2017 23:22:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C24BE2861A for ; Fri, 3 Mar 2017 23:22:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5A362861D; Fri, 3 Mar 2017 23:22:38 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BBF92861A for ; Fri, 3 Mar 2017 23:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=7/y9+AP7lF7yFEdX3FpCZFvSNf30AexOkZH9ax8AhtA=; b=ixcoh102Q1k5QOZ4SGmWDJaE54 AAm8EWPkTlDJkMaUydQXZXjQ6nl9YPzKWaNB8rb1rjr9Kir47ci+aVtZm7irY2oXorjxtTEFZ9v9n nYlx++/IpnY+wtU53XT+0ZMSkUT1HBRfOq6Wderw7UsFWGbXTg0daA5CRn9baK/I99+860gos7KcB 8F6OWhKdphpUoHhiYsQSUsKayfFqMIDPJ2y/QkirD+fbDMVJc7rnCBgZ9DQQuKbYwN7zbKOrJ4LcN OQXR+wXOw21AVuEDeISI7i0SjVWPI6j41IVjm/jaLjCNo8hi+GkQnmbqonOJGiUwQkiVzlKGranA+ wGI6HOiQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cjwWz-0004hy-PV; Fri, 03 Mar 2017 23:22:37 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjwU5-0001f8-Kf; Fri, 03 Mar 2017 23:19:43 +0000 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 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_151938_029328_23C4A784 X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Wahren , devicetree@vger.kernel.org, Florian Fainelli , linux-pm@vger.kernel.org, Catalin Marinas , Will Deacon , Rob Herring , linux-rpi-kernel@lists.infradead.org, Martin Sperl , Frank Rowand , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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>; };