From patchwork Sun Oct 17 13:06:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12564301 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7DCEC433EF for ; Sun, 17 Oct 2021 13:08:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B76F860FED for ; Sun, 17 Oct 2021 13:08:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B76F860FED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=i2se.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=fz3DLEZSuj09OFhLV9KUtmdR3b18eX8uJEcX7K5cqOo=; b=nEtJykheGgZVVW tMZNpVO+vgp1nrNsnY1pLFbINI6wFBlbXcz/xv1GudneIwBdoMn6+KAFJFvZn5pWYM/a6yr8x0QJI xHYtbD/AJgAHt1c082eL3g9t9c+g51rKHESudq9q6MGjF8xK+pLgPTbdKvIDFnMOj7hzgzUtHe52A J8B/QbEJKB6bcGGydMTvnsY3AmZtMDf6u59Nl5oTENZI0dVmygl49qhEwbT2fgHQf4X+Dg9UlLr9M RvqTgiKqaNGfBq5PetX2BUsUjMX8GjPNXiCQyWglTVbTzyHA1CCV+EFrQ/GAoaZDEyOtaIsJ23O2K UB0UFd7l7+i8YhXran/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc5su-00CZFc-3D; Sun, 17 Oct 2021 13:07:28 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc5sX-00CZCH-OX for linux-arm-kernel@lists.infradead.org; Sun, 17 Oct 2021 13:07:08 +0000 Received: from localhost.localdomain ([37.4.249.122]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MUGNZ-1mCcUs2f7T-00RJfz; Sun, 17 Oct 2021 15:06:57 +0200 From: Stefan Wahren To: Rob Herring , Florian Fainelli , Nicolas Saenz Julienne Cc: Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Mwesigwa Guma , Ojaswin Mujoo , Phil Elwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, Stefan Wahren Subject: [PATCH 2/2] dt-bindings: soc: bcm: Convert brcm, bcm2835-vchiq to json-schema Date: Sun, 17 Oct 2021 15:06:36 +0200 Message-Id: <1634475996-6809-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1634475996-6809-1-git-send-email-stefan.wahren@i2se.com> References: <1634475996-6809-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:AcaPBRzQvJOIS90GCqh7d7/xZAYtIBl7VztA59WMnckfAVUSY6T YSAdCqwvNlxzj3TrSvRl3F+pk30LBCXFF9tRb15On5eltnxujeNGn4LnbtUoqFwSk4Z7M49 EyK1JenhDGyHDIJcrSYRD+pPUIdNePQ5cUrm1Jy/fkZhf1XShmvvWHxbMFQym3bcwxfWut/ YA8wBdxGxr6DIfNKH8fFg== X-UI-Out-Filterresults: notjunk:1;V03:K0:EWqhi6WCjHw=:Rcb336QDTYT9TdHJlZIoDX JDzrTUUewtMnWviYjjZujffnq0fHkLUzCj5aFbzXlaZGVWmZzhFtuMETMweZlQb4vpVF1+7lg D2ChyX9knlpbLrShQBmNKwCm2M3cTwE4L2Vpe0dRLQQ7P2Zdqkcjr16WA7QvN/1bcZD7LnyAZ x9PGhR+tkDGPlrLxdEbmREcRP8fuk4rZAReT0/Dgkk2HOM2nLkQdxAVHgIJaJk8DqDU5YF3AO R2kWiq7n/puG/WNvTwO2IykoA7KhE3K2eoQVYdVbKJhKh5vcM/J/0YlzQJYTVjRLrBYqX1tMh V5PjYLZBATwr29Waoden1wl95MFgaspv2JOpvmgR4sAnpwcc88NkXCMXgCgBKi8/hBD9jHlx9 W/+l9V5eX/UmeqDdI3PL+utk3rgvbWLz9BMArntRdddpAj02RsaG5ieHfyEgv8PAGaesEmDpW Gxp8olVLbK0IJIwTbBblzq/HoL85TEVBJyd9GrY0IMjbLjsMrGdLc2nzHbELm81L1sYZOiNmh WTmQwNkDpBtz49ucTJk8yAcjCFIkYCvNoa3/Fh2ApRzbV2bMlPgmafqpfYdX3jk4Fp1W5esrH 4t+OW7VXQwt+g+4DZ+EZ03/Hvn+5IR41XyYGh5majqMH502imnGGSGmK9CJFGpCDSPQ8HX3OO 6yGgBI3O0LiqrbsUt8U4XGvQSzummOC4z7M82lT6dCOn7I/l1bUkFnj8yzYFa+5OJ/J7VYU0L EGptp45cQ0XFq1F2MaoXYGM78Dsu+LvEIz2dmbisLawFbaMJObIh+Z5S9kA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211017_060706_138903_8C33C2D4 X-CRM114-Status: GOOD ( 15.54 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This converts the VCHIQ bindings to YAML format. Signed-off-by: Stefan Wahren --- .../bindings/soc/bcm/brcm,bcm2835-vchiq.txt | 17 -------- .../bindings/soc/bcm/brcm,bcm2835-vchiq.yaml | 47 ++++++++++++++++++++++ 2 files changed, 47 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.txt create mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.yaml diff --git a/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.txt b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.txt deleted file mode 100644 index f331316..0000000 --- a/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.txt +++ /dev/null @@ -1,17 +0,0 @@ -Broadcom VCHIQ firmware services - -Required properties: - -- compatible: Should be "brcm,bcm2835-vchiq" on BCM2835, otherwise - "brcm,bcm2836-vchiq". -- reg: Physical base address and length of the doorbell register pair -- interrupts: The interrupt number - See bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt - -Example: - -mailbox@7e00b840 { - compatible = "brcm,bcm2835-vchiq"; - reg = <0x7e00b840 0xf>; - interrupts = <0 2>; -}; diff --git a/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.yaml b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.yaml new file mode 100644 index 0000000..2ef6b21 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/bcm/brcm,bcm2835-vchiq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom VCHIQ firmware services + +maintainers: + - Nicolas Saenz Julienne + +description: | + The VCHIQ communication channel can be provided by BCM283x and Capri SoCs, + to communicate with the VPU-side OS services. + +properties: + compatible: + enum: + - brcm,bcm2835-vchiq + - brcm,bcm2836-vchiq + + reg: + description: Physical base address and length of the doorbell register pair + minItems: 1 + + interrupts: + description: | + Interrupt number of the doorbell interrupt + see bindings/interrupt-controller/brcm,bcm2835-armctrl-ic.txt + minItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + mailbox@7e00b840 { + compatible = "brcm,bcm2835-vchiq"; + reg = <0x7e00b840 0xf>; + interrupts = <0 2>; + }; + +...