From patchwork Sun Jun 4 12:12: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: 13266573 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 B666CC7EE23 for ; Sun, 4 Jun 2023 12:13:44 +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=WYumwPluLTklPx1h0i9r9Rc59T2h5y5Qlm+Bjq1G/C8=; b=kEqR1z/cINxDA/ HMnDEOamHMrHejRd1yIFyRUuFYnTFzDwBFs6soRN5++YC3ps0PHcfUWH7t1jeckopgoIGgdHcH2Bx BJ76+DE+PzKln9xQnX+eghB3OOdaiDHUkkyBxpz1p8yffenHVH5G+qeFiSvuavMv1SnQa0Vaz1n/m z33xy38i4hf1XNBPVXnTCadwfKUsnYS7yJ6YxEERwLd2fQP5DN8fHAgdY+BVN4qjIpmHkCDOnGvK4 Y4vnDEKK2DzLwAKN5utrwto8e5O50RaUQ4iP8sxPU5O8AtVWrgS6DPqUuHKk9p+2hD0pOj0aBm6sC LkaL3XmfvM28gTWWVMKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbi-00C6cF-1S; Sun, 04 Jun 2023 12:13:14 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5mbc-00C6XP-0Q for linux-arm-kernel@lists.infradead.org; Sun, 04 Jun 2023 12:13:10 +0000 Received: from stefanw-SCHENKER ([37.4.248.58]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mjjvp-1qUtfQ1qzT-00lBNY; Sun, 04 Jun 2023 14:12:47 +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 07/10] dt-bindings: mailbox: convert bcm2835-mbox bindings to YAML Date: Sun, 4 Jun 2023 14:12:20 +0200 Message-Id: <20230604121223.9625-8-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:s9bqnOjBvZVCsDcyHb08k0nMCZ7YVUD8Zw1OzqniAuKGjhTPZKf rpBfQJ3D6yT29NzeLHRWuKxFV8oD/cm3Wl4OdqRGRi0EG/4QwcLM6oPiXLq2Fihww/laM5M msjMkQdDTZ1VHJUD709v3+c4NytU68OPdJvB0NjGNzKr3YXOmYp8cF3U+vM44aujBXGw/Jt /NVJMGpfQ+BZ6n9uW4FaQ== UI-OutboundReport: notjunk:1;M01:P0:4yU37JCi/f8=;BE+D+f70115NohCmZRFqLmk4xoG /Jug1/zF1OIgoRntxGJnLtSi06FetwUFpoOQghme3GIXzunnILiywTzf7l4hA9G9Lh4Kulypc WyjZpRdH1Sh2jjouHSKajaVu8U39LCnMw1gt80uMEedbrEpxoAZZo3FGMyzi1A8RxlO87+8qL tF2rxU+wDVZfeoem1hc2Xw06QUflUh1qp8tu3x6FFht60wMngAEOL8hluIio45n7c1QMU1S58 FYat5mBpP91tY9wo98UQ14Xtme1ytmKFgAAt1WpJSTCH/Bu0SphBnoggAKZOjSEVAQGfWaroM U5bVcQuoz3mESDHJQ27Nw6Sq+/8lCtTzBsLTdZGju/yf0+buT/cpRxJEnQ2X0gSRSkf8GoM8w XLr0pnBNh97NvdXsFqGrIxM1NeEt0b0jaVY/LpgsNDNu5KplxgVL5sGzKDXylJSy+TL1X/IBH LOaIBl1NBDWAiDdaCmtRCj8xvlrtKbN4TS1lVnqadF4rFmcCjqKtYYVKb5aK23JvTRNtA/kUB 4/o5MqYFibWw362xhIjqd9q0HLBK5UngGzuskE7V36unDmzkrUBf3MSneGNdmSZNhBx6vWfi7 VRmSzXmz+w27U2EuShu+LOa7mKhWD3M0UuLOwdc9pYfijWctwHbo8uC1svAjLDEj9bU4Zsk3y 596p4X0Cdao9P3Dbk/C0LXysGd5ff0L6mCk0hsgkTg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_051308_470699_77C304D6 X-CRM114-Status: GOOD ( 16.79 ) 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-mbox from .txt to YAML. Signed-off-by: Stefan Wahren Reviewed-by: Rob Herring --- .../bindings/mailbox/brcm,bcm2835-mbox.txt | 26 ------------ .../bindings/mailbox/brcm,bcm2835-mbox.yaml | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.txt create mode 100644 Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.yaml diff --git a/Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.txt b/Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.txt deleted file mode 100644 index b48d7d30012c..000000000000 --- a/Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.txt +++ /dev/null @@ -1,26 +0,0 @@ -Broadcom BCM2835 VideoCore mailbox IPC - -Required properties: - -- compatible: Should be "brcm,bcm2835-mbox" -- reg: Specifies base physical address and size of the registers -- interrupts: The interrupt number - See bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt -- #mbox-cells: Specifies the number of cells needed to encode a mailbox - channel. The value shall be 0, since there is only one - mailbox channel implemented by the device. - -Example: - -mailbox: mailbox@7e00b880 { - compatible = "brcm,bcm2835-mbox"; - reg = <0x7e00b880 0x40>; - interrupts = <0 1>; - #mbox-cells = <0>; -}; - -firmware: firmware { - compatible = "raspberrypi,firmware"; - mboxes = <&mailbox>; - #power-domain-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.yaml b/Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.yaml new file mode 100644 index 000000000000..9588817f4511 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/brcm,bcm2835-mbox.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/brcm,bcm2835-mbox.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM2835 VideoCore mailbox IPC + +maintainers: + - Stefan Wahren + +properties: + compatible: + const: brcm,bcm2835-mbox + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#mbox-cells": + const: 0 + +required: + - compatible + - reg + - interrupts + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + mailbox@7e00b880 { + compatible = "brcm,bcm2835-mbox"; + reg = <0x7e00b880 0x40>; + interrupts = <0 1>; + #mbox-cells = <0>; + };