From patchwork Mon Aug 12 10:36:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13760428 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 57112C52D7C for ; Mon, 12 Aug 2024 10:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IMh4FjVIipmJTy4+pD0doUDz2cuv0Dpwf6VJPrLqVFQ=; b=dP372QT9odUY0xcpSlu2ouuQPx ImA/XpkW72e+9wGyfXjIA/yhk2JFtWBgj1wpOcIRWtTNuy3h5qTXupZQmO6lmg8DKNsxExS/KsnJ/ 2nps0y+cWRCrxr8Do6kFTnCNI13r6HIAHNEMYugmLIO6dbWXZruDyuqjNqmKeC3U/W4EEuU8ESa8K e5RGFrkSRE91KVf0IIAUijtNc5jgLpDpah+seCuxoSFJn+ExHi/3IXkioEQtT8aw7Vr3P3vflD1H3 7Xzakwqhkk1YzJnP3gX/0Sk3OIjKF+PEaZlCmIVNb2C5vrc66BnV/OO4obOEEAQDShSLdf5GolsI1 9y0WJTEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdST6-000000003T8-2Y5k; Mon, 12 Aug 2024 10:40:04 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdSQI-0000000031u-0G3s for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 10:37:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1723459016; x=1724063816; i=wahrenst@gmx.net; bh=IMh4FjVIipmJTy4+pD0doUDz2cuv0Dpwf6VJPrLqVFQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:Message-Id:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=dFdcObxRsBYNGEuYr1aFMvMzIUqUkWPaKB72an80AB77+Bpj1j3fcnaQvM8AVKAm 78FUZmB0xSCXaafcgEPWByoSQ/5fY+50n1nUk+bdmecQuCzJlFj7MzctvBxFhtV4p N74BSa2U7td/zRt1S2Uo09ko6H4VNRjrIrF3rfptJGFSOw0Md3IfNcjQP1d+UlZq9 VlBEB0MwVOXardkK/ZplNeb1uZjV2bGPJlyH/+iRB5dLjzsJMEx1cuI+B4/cFEvmK Cl+FyesYzRUDhyBzMKRx5AXMDXgftbBuZkBlksMYvt8IXVWU1xAKYb7eMO5jaQYvN KY5Ncc7EaU+ht18Vfw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MEUz4-1sObOP3uA6-00DaHm; Mon, 12 Aug 2024 12:36:56 +0200 From: Stefan Wahren To: Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Daniel Lezcano Cc: bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, kernel-list@raspberrypi.com, Stefan Wahren Subject: [PATCH V3 1/4] dt-bindings: timer: convert bcm2835-system-timer bindings to YAML Date: Mon, 12 Aug 2024 12:36:49 +0200 Message-Id: <20240812103652.29221-2-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240812103652.29221-1-wahrenst@gmx.net> References: <20240812103652.29221-1-wahrenst@gmx.net> MIME-Version: 1.0 X-Provags-ID: V03:K1:Kl+M6FLccxauXdTsfBLQthCU2prHFOcUwCkFkWXm305ABIe7vSx ndV5oVE3jcVdy3F4Q22/qG2GkReprXYiJVnlVR6h4leVxpcoTZZXWkgINGzEUidJnjJbBEi an49IAH/W5k8G/H05VARYMxZaEum5n7tw1lqLIfMXK9sFEipm+ru8E/jIwCkPD2X29pmzUR Eq7VAqWvSTNXiySDAohBg== UI-OutboundReport: notjunk:1;M01:P0:7aDysgcNVsA=;xYy8JX6TrYfXkeKKDIfijKIC7WE hMjmqRuh2YbAObqbj74KSxBwhI6YNGLMDfj3BAP2OEFZJOJdx0Fpm8OQP+aQrC3/P2HJ2P9wk UpkrxGAvx/6crKnmyHOriailuYYf4+jjwMf7UTqJpRJYddpnojGnJ6iKRSUKZoQhHtXwG8cN3 BbM0DCquZv2C+GAH6NRUljYDmMnHhZKYIi+vzi9+/z89oCtjH4YgNJvX5hKh6bA9UBLgP+ZB7 W8IUKIdPgaPCF3rypad1hgLVW3UKD7Cm7aqakghif5d0UNoTamMZA97qfehq+aq5jQc+Hi0VT Uv7vi5qihkkuO1bqpaj4DC2Ghc3HZN0M0X7tOqNINP5g40iD58uSdcwFn6ClYeb4V68Rrrn2M wdJN74e1wvkR5HZpIexVfkLRJ80p4IkoCm5t7HH8vE6N665BGMCGnqUXh4FcR4lDIFosPuawo 38tQcq8f3I5CS8zZ1UV4PwIq6v3lRDTTHJ29DN2fJHwjuHM64IWLQVaZnwgqmVH4uIkIcdIFn ZwTQasAUKI5V9dAVoZe4w5LIGp/rApjeziNK3BZXzCF1bWlUgaKjuWjttUibAvMyBXwk18wi9 NNm1alSHgrNL6oN4p4VIyz8feh670dftuy63IWxAMAv9pK0uG+AtjHb/zaWbwZwzH9bkJvbZB bCGDwY+gBppsFc62X3pPrXocM2MPjJ7ObH8kT5aNuHa42OXqzfD0CQn5V8SgMqqdeI3o4VIh5 lIvE7j+ctljMHDh7diWt20819zIxv/gfUR0aSsRYWAo3Lsao4yv8p6fyaBS9xjiDigZZjm/2M Cgz6ocgml4fLaWyvk413d9kQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_033710_442416_DB5CF456 X-CRM114-Status: GOOD ( 13.41 ) 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 --- .../timer/brcm,bcm2835-system-timer.txt | 22 -------- .../timer/brcm,bcm2835-system-timer.yaml | 50 +++++++++++++++++++ 2 files changed, 50 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 -- 2.34.1 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..f5804b5b0e63 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/brcm,bcm2835-system-timer.yaml @@ -0,0 +1,50 @@ +# 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 + - Raspberry Pi Kernel Maintenance + +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>; + }; +...