From patchwork Sun Jun 4 12:12:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13266571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E228FC7EE2E for ; Sun, 4 Jun 2023 12:13:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=r2+PtMx04OWNXk2KlQ+JGhgNlVGO5RC4kYT5jIf3XlM=; b=Y6kdO53eArlNCo t6gaxPAn1gUm6Gbgh9vsy5NKrJXVzh+yt6IFIfnMZFqyJ4VP7B5/hcKulA2X06qPnyVjerUHbnq7a dBtrwdmAZc4JLCP3F3j2Ml/qwLd57fIfy1Dcr5GnXI+AR+iS8Yn6BpkEg97VazTrRx12zAV+mOmae nxAlnouazkG0EzM9dd4ZUSu28pb+UsB9LY/U4/W2qaT/fHMsjjXY4A2gnvC7jRa3tuC1Bv13iEDZZ KsH8eiEAtTqyIen845kaGZm5FTzDjvTW8gGugQWgtxhH097Rg/N4cRiqHJrodXrHJhKhYie6R6MUW aptaEXAbLPW717/NXjFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbm-00C6f5-2w; Sun, 04 Jun 2023 12:13:18 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbd-00C6Z4-29 for linux-arm-kernel@lists.infradead.org; Sun, 04 Jun 2023 12:13:12 +0000 Received: from stefanw-SCHENKER ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MI4cT-1psFYU0nYt-00F8Q0; Sun, 04 Jun 2023 14:12:49 +0200 From: Stefan Wahren To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Jassi Brar , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , "Rafael J. Wysocki" , Daniel Lezcano , Amit Kucheria , Zhang Rui , Thomas Gleixner Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-pm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Stefan Wahren Subject: [PATCH 09/10] dt-bindings: thermal: convert bcm2835-thermal bindings to YAML Date: Sun, 4 Jun 2023 14:12:22 +0200 Message-Id: <20230604121223.9625-10-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230604121223.9625-1-stefan.wahren@i2se.com> References: <20230604121223.9625-1-stefan.wahren@i2se.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:nMYk1gRGD+2AiImzkO6DtPOxKPY+MYA5ImlbZwhx4QpHbydnjwi sFqFSyvDUR+sI4OmmfBzssR2ybgas4BCOwvRshfr5mAz4rH/ZPsXIBe0MikVM0aRNTbhgjH 34ndg/Gfi2TtUZrqMz9Oo4xR146EK/e1IQY0giLEQggJQAF3ogRwJBrdbNmVVC6W7Tf+CmQ 3CEzDZjUQmwU9w6//7x9Q== UI-OutboundReport: notjunk:1;M01:P0:AFBIMyp3Zyw=;qMpPxv3dGa4DbTK46rNrQprBpkF QHEiLJ3yBaYzi330gDjoYrsdsRzCvZdh0FmRbzELpn0pIJYYsapD6B4cHe9DzYg0ILeSrC2Tv d8RJmbv5GjPHsS8agmhchDhBoiEvIPlwZOUIAcCzryUlqx6BryQwNVEMK189HC9mbS5mV/lmZ FiqlpO3wwWW/4xZx0aeVN1+Z3PP6uz+riYr3WYjUWP5Go+lsM4SeErLYr4r2dJ2BGPUqhtHv6 922VC4V8NroIiB9slXXaetiCnLtRBmcW+3XBA02YxCm7cpcGlqk+SXnWpYZVNaazNzelEKIYh MpmY8uQ4bLr9JFDWaSGp2pFRboqey14VyBwG9DemKcMnyy9QvhVumXXUgRcXiD/r4PR2l/f5x UcKW8ArZT5Hujnez4FYEv+dHdyipoE6TqONYz95dTJxM8XYWsMWQuqtF57uw/ym1xI1gTxWLr 7Nbv89/hElqLUqpz1sLW/+OYS7i0KFgOShHED/V9OWaItxJdl9B4hcBCOIOihedH2Pr4qTe3W 0sEyFKnBOY0bK/jHo6rJuZhXyl6Cy2bBOVWVyg+mwL3R2IYsYvZGn+/RlQH5ZGDCneOrE6WLP Cw08ETMd+Oa8FceXrFS8a0XDMt1APk/Uxg822co3FGblw0nedjBnB8gHMG/gWiXYkSwQUtNPK OH3JR6dpvnD3QBGoSL1Swk9tOF4LxMP7BUdCmfhMkQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_051309_993858_4D78E931 X-CRM114-Status: GOOD ( 16.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the DT binding document for bcm2835-thermal from .txt to YAML. Signed-off-by: Stefan Wahren Reviewed-by: Rob Herring --- .../bindings/thermal/brcm,bcm2835-thermal.txt | 41 ---------------- .../thermal/brcm,bcm2835-thermal.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt create mode 100644 Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.yaml diff --git a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt deleted file mode 100644 index a3e9ec5dc7ac..000000000000 --- a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt +++ /dev/null @@ -1,41 +0,0 @@ -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. -#thermal-sensor-cells: should be 0 (see Documentation/devicetree/bindings/thermal/thermal-sensor.yaml) - -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>; -}; diff --git a/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.yaml b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.yaml new file mode 100644 index 000000000000..2b6026d9fbcf --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/brcm,bcm2835-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2835 thermal sensor + +maintainers: + - Stefan Wahren + +allOf: + - $ref: thermal-sensor.yaml# + +properties: + compatible: + enum: + - brcm,bcm2835-thermal + - brcm,bcm2836-thermal + - brcm,bcm2837-thermal + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#thermal-sensor-cells": + const: 0 + +unevaluatedProperties: false + +required: + - compatible + - reg + - clocks + - '#thermal-sensor-cells' + +examples: + - | + #include + + thermal@7e212000 { + compatible = "brcm,bcm2835-thermal"; + reg = <0x7e212000 0x8>; + clocks = <&clocks BCM2835_CLOCK_TSENS>; + #thermal-sensor-cells = <0>; + };