From patchwork Sun Oct 17 13:06:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12564297 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 5DEF7C4332F for ; Sun, 17 Oct 2021 13:08:25 +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 21F3660FED for ; Sun, 17 Oct 2021 13:08:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 21F3660FED 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=B/+yRjHfOK3WD5V7YgMc/1sMqNAFvWQYn2e3XIxTJP8=; b=WP397b9+nBY2t2 u3IPJm76poL3brldvlNj7118TUxmiZ689Oh+nppPL1KtfT5EMhnoiea5OMn8K5N78n1MgpOfqbJOl 65GVbbU8SQ3yeYNrzUmKkMhvUa5FvnABU+nYXDuCQ12R0WNwifOwl+9XNJA+L+Z4Jfg41002ui3fm pn0znhibx/TA77Q3X71s26ATxFdh8jrHiMcKM6lEytgT3pbbJObESVVBZS+DZPQjKQUb6bpiF8fnD Zw8vT3Ey81cg/QAGZG2QSXsZekc7zjZprYAccZrt2WzHiPsKL2Gp+/pFyNdNF1BFzBdEai+bHTgxb 1WfRNAiJc3qy+MFRuyEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc5sk-00CZE8-QN; Sun, 17 Oct 2021 13:07:18 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mc5sX-00CZCF-Ao for linux-arm-kernel@lists.infradead.org; Sun, 17 Oct 2021 13:07:07 +0000 Received: from localhost.localdomain ([37.4.249.122]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MadGG-1n9lff0tJK-00c9Qs; 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 1/2] ARM: dts: bcm283x: Drop fallback compatible for vchiq Date: Sun, 17 Oct 2021 15:06:35 +0200 Message-Id: <1634475996-6809-2-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:CUdsPQthYM4D87Cyk8FMVpNf6oxobzYTEpaKlcSB12KnlqXQbGj Gdyv9Uooq3iyHyVugncvOCTp+Yi58QjIZXM3qkmEqPtnID7sTlOxXgU7mGVVy/QAPL2KcZO oh9z/cDi4pLThGlgZ74RGciExt8k6kTdmn24DMt4rhadDaztSj4Txq8wMXrDbBZ/Tk6wApH 2G0FF6WQHaJH5jFx6Hmbw== X-UI-Out-Filterresults: notjunk:1;V03:K0:HyTkRJbFX2I=:W01LaF3YFMZInrLr/Nc57w y+QnlEtgaNRYin0mngfbOnW+gdYFgnDoNAYv7Y5l7WCW3S5UzJLrRH4iRiiJ+jCCvIXQbhMZx Va+O8OgFz2tOJ0Q33dVjoCZnMIUvmzv7hc08nyt6sNzt8G3n8dHtuWZZOumnWhdeUKShj0geB BK5y4QZKMLrDiGb/GzZ96tm7yhTwljAADaSk2V0WWp85BQb+2JpO2rS7ZnxTJBvo+fg0I/YaQ EogT0DrPBv8Gh2YPV2OexgQ8B2yAl8JNK8KxieT4MKHB6cFSVFaMSeWZ9rKz6XGQR/yv84dLJ VXqTFVMCrvi9l4MY6JYg3yCbI/U1I99IuiJDcYEjj9/uH2/+1waAHmH9tZr3D/e5R78C/ej3J YvCeFVBrnHdLLsjYUe+a49zBcS8wFV2D4WJ0WytImECMd/QaKtJFEiJ9WPSiZilBIOxn3e6iv 8u+f5ePdpCM3LvBPStsyRINtxmlPnr1lgtEI3fiXhJDDRuuLc/P135fKBL31wFR64rNHyta3g HgvtJfQau04O8R9WgedxWIdB+lAVPF32PTfFsGRxGvcm5x/7klIFXeJ+OViAl16rTx+2T1Veq Hl6SSE4QtmWVsQV3r/1lK4jiXPWd3pk2c7q5Avzo78hLsBBIbee521s9Xs5ZqR/33hh9Jr7xn MobG/Ve/eS09Fckt7+dGacOmHwNmDpaGE7GzRnxpy6q9MWZlPoHBnpRQaPI1CnChiTUPZYwc1 2MP6FpD84IOdwlDsTSwxKhyiFcJI9ivoI1vdcr42V3BUJz8igpq6FTPpp4Y= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211017_060705_710791_A40C75B2 X-CRM114-Status: GOOD ( 12.59 ) 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 With introduction of SoC specific vchiq compatible back in 2018, we kept the original "brcm,bcm2835-vchiq" as a fallback for older Kernel versions. Now this fallback isn't necessary anymore. So before we create a DT schema which also handles this fallback better fix this on the DTS side. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2836-rpi.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm2836-rpi.dtsi b/arch/arm/boot/dts/bcm2836-rpi.dtsi index c4c858b..f98e0e4 100644 --- a/arch/arm/boot/dts/bcm2836-rpi.dtsi +++ b/arch/arm/boot/dts/bcm2836-rpi.dtsi @@ -2,5 +2,5 @@ #include "bcm2835-rpi.dtsi" &vchiq { - compatible = "brcm,bcm2836-vchiq", "brcm,bcm2835-vchiq"; + compatible = "brcm,bcm2836-vchiq"; }; 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>; + }; + +...