From patchwork Sat Jun 17 13:36:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13283621 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 2A009EB64D9 for ; Sat, 17 Jun 2023 13:37:40 +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=8DlXjc67U0/6OGLtY7Z6lMRd1s01BZjLIRuzl8ZF/4Q=; b=OE0wpfjGVbwsSo Fra4N0UGGEIKDeiEZ3ale1o9OrcB20VAr2MGX3NjV+Mc40g+/kpEsqQgdoByxu96Z98U/dNq/3cU7 nwFpzHfYUE00Ke/mEYZ/O5Sfvbiw6oQHahS702v4zDbsz9+hnMPMYB6a+2xWDwNLAfyVi5Srm6fYE 8tO9R3pWM8UhISzuTaHeY8la3Gub4r31A4j26ONgNP9NLd/5hZZSQwicQ35aTpKadRxvOLoNlyzID 4cMg7s+sdIm+vE3nuObh/gJiRPf9s+isG7sHGXZSp13GwGuq+KAgcwf8+BRf7Mg65y4hpT+eW7oLv tQPTd9q5/EKYMXBPeIhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qAW7D-003fxi-3D; Sat, 17 Jun 2023 13:37:20 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qAW6s-003fpD-0L for linux-arm-kernel@lists.infradead.org; Sat, 17 Jun 2023 13:37:01 +0000 Received: from stefanw-SCHENKER ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M2fDr-1q7UlX1Vhn-0048wI; Sat, 17 Jun 2023 15:36:44 +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?= , Daniel Lezcano , 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 , Rob Herring Subject: [PATCH V2 7/7] dt-bindings: timer: convert bcm2835-system-timer bindings to YAML Date: Sat, 17 Jun 2023 15:36:20 +0200 Message-Id: <20230617133620.53129-8-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230617133620.53129-1-stefan.wahren@i2se.com> References: <20230617133620.53129-1-stefan.wahren@i2se.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:mVFiliFboW4LEd+X1TQBa6vvRmi7USdo/RW69BmRyNa/pJtjGzS tVQ6dwdnHEHr/ZHHezkQhqcYQeI6DcMTENVHZf6OczxoEATjvn8NKf1lIAxB1OpX4zWvY08 1sP8GK5j5nAf4xocAOTABS5MDo/6bn++VaK84cFyxqD07Z80Bj2+pOq//rMnClwhW6nUT7s OL/kAvNBJ4QbODLW9ofkQ== UI-OutboundReport: notjunk:1;M01:P0:k3o+1+WCnak=;kZTS2j9JKgdWiZJIdgoojnSBunZ v5G6RxeF4Dxj/+70lqlWOpPlNBqM4KXbk32usUF2YpAqt0xTXNVcFgp00+dFCKcWTA6q7GrM6 PEy+gygnn+U7K6RK884qlrDrrkDIn+w5GmPTz4qtexBjLIFjx2Yw5dT5Ge7wBOmGtKXHX/lPS cCSECr1NXrA73jiIEOCdVW02aGe5dxDlyx1Ldg6bL4oOKRHwvpBqY1hCJAs1FH112gNsSMQoI MxvgJ7rR2G+j7ODdqoYQi5bMYxCBypziL8BTwMSkdwA6nKBTgAB616DmtTxEjnG5/8tenMAHs XucYu9qA+eKpOD38cfIiePIrTRV72Rq5Gn2il8aWGwOFubKAO8CFJPOahjf6/UtYJ/1QiAx+L VDGjBlM6i48ENY/Q0B+RFIh7LlAf0JsHlqrrAhHXWc4pJPQsAasmHWub8iR9R7UYyr5vTtYB2 bwjawE1QJB8f+YMH0VB74BoHcQLlJ+FWWbZ2bVQ3uVGsRQN79/f+ZbE//LjvqJm4mxvYeUDvq Je0StFdClVaMDfBw5pkt6RMtOj2o68SMjHHNgZTsVJ/iqcJKJdooVj7k54g5QmoW+S9W7YOHB pI1QoIV+WJSv9/1RL7C/cdwLHh90NBCSc3HMrA/bwnIU+9Cwm4kSmdo5nn5qoedy6WHzUSOff 7HihJio1Ej4GkDQ1oCra+TCQdFyxyV7WTJDrVV5Sew== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230617_063658_446043_398D39F1 X-CRM114-Status: GOOD ( 15.67 ) 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-system-timer from .txt to YAML. Signed-off-by: Stefan Wahren Reviewed-by: Rob Herring --- .../timer/brcm,bcm2835-system-timer.txt | 22 --------- .../timer/brcm,bcm2835-system-timer.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.txt create mode 100644 Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.yaml diff --git a/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.txt b/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.txt deleted file mode 100644 index 844bd5fbd04c..000000000000 --- a/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.txt +++ /dev/null @@ -1,22 +0,0 @@ -BCM2835 System Timer - -The System Timer peripheral provides four 32-bit timer channels and a -single 64-bit free running counter. Each channel has an output compare -register, which is compared against the 32 least significant bits of the -free running counter values, and generates an interrupt. - -Required properties: - -- compatible : should be "brcm,bcm2835-system-timer" -- reg : Specifies base physical address and size of the registers. -- interrupts : A list of 4 interrupt sinks; one per timer channel. -- clock-frequency : The frequency of the clock that drives the counter, in Hz. - -Example: - -timer { - compatible = "brcm,bcm2835-system-timer"; - reg = <0x7e003000 0x1000>; - interrupts = <1 0>, <1 1>, <1 2>, <1 3>; - clock-frequency = <1000000>; -}; diff --git a/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.yaml b/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.yaml new file mode 100644 index 000000000000..227b44788a48 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/timer/brcm,bcm2835-system-timer.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BCM2835 System Timer + +maintainers: + - Stefan Wahren + +description: + The System Timer peripheral provides four 32-bit timer channels and a + single 64-bit free running counter. Each channel has an output compare + register, which is compared against the 32 least significant bits of the + free running counter values, and generates an interrupt. + +properties: + compatible: + const: brcm,bcm2835-system-timer + + reg: + maxItems: 1 + + interrupts: + items: + - description: System Timer Compare 0 match (used by VideoCore GPU) + - description: System Timer Compare 1 match (usable for ARM core) + - description: System Timer Compare 2 match (used by VideoCore GPU) + - description: System Timer Compare 3 match (usable for ARM core) + + clock-frequency: true + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + timer@7e003000 { + compatible = "brcm,bcm2835-system-timer"; + reg = <0x7e003000 0x1000>; + interrupts = <1 0>, <1 1>, <1 2>, <1 3>; + clock-frequency = <1000000>; + };