From patchwork Sun Oct 31 12:08:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12594999 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 678B9C433FE for ; Sun, 31 Oct 2021 12:10:47 +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 2BEE660EB8 for ; Sun, 31 Oct 2021 12:10:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2BEE660EB8 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=Ej3IMGh3Gopcs1085b1+71WZ/yLEAWkI3yR0VQMIuh0=; b=tmUTvQWj0ewS+u sBX84Kgamlf3GSBRld29qz+JKQmE6tOXhAvduV4cjQns+UkXozQvQV3WwWV30FsSah7ZxAqiig/xr +IK+2yWTK6jj/0CJvCBwUkS3A8+aEJAEnYzQNl8gWODOnLclLERgbqE7CV0J4IGXJiGbAK4F1BQDO diJlWAE4gBKNckiCJM0d55kYof8zRznFGysU/iJAKGeoUqLyTPmxNYA4vQkKwOOPjhxnw2k4yo2RX ExE2KEb07eS66YH5ewd7rooHSE1h5SI3Zj7xAF3IA28GIgIx8l7NBVkstGNxoVLzf3q+ap1RAN2tg SgPJWwVC/km++y13VXDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mh9ds-00DwyA-Sa; Sun, 31 Oct 2021 12:08:53 +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 1mh9dn-00Dwx6-A7 for linux-arm-kernel@lists.infradead.org; Sun, 31 Oct 2021 12:08:49 +0000 Received: from localhost.localdomain ([37.4.249.122]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MvsR7-1mxIoQ3yWl-00swQs; Sun, 31 Oct 2021 13:08:34 +0100 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 V2 1/2] ARM: dts: bcm283x: Drop fallback compatible for vchiq Date: Sun, 31 Oct 2021 13:08:05 +0100 Message-Id: <1635682086-3200-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1635682086-3200-1-git-send-email-stefan.wahren@i2se.com> References: <1635682086-3200-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:ulQB8P8DB86F6bZYbKr9KxNanL/NIBPH3ICHoUxDCXumR3GySzL NSbAWqx5jb1vwvFL8TjwXY3x4hGAjlxviXgCj0DOX/fQxjVkWuTBeb2do8pfxFdA1XmMGMs PRfxwZJNCal8lLQBK7Jk0AnWPzYA+3jfKlQdkerJcv4WYMhK+saXGZ2FpghmGeJGxULPwqK /iTTuEwHuTerIWsAq6iMQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:KOKz8qQmFC4=:1oDApW1xH5hyb3pjv6zDad Sn05Ay6B3POwGxE+NfB6IlsC6kwByVcSNbBcc5E0tqCIHx4jcMSJghcCHT6i0saasu+mmjiEO 4N8gt1eGow56JHnLZ5/mwIXzmGK/JVCSbKBUe/8sWOnI7q7damSq2kR0dnvfqORJAa4/a3gsl gR5MPuD1I/fH4F21aImCRqLVb8i11tjMuPxPrLxht+KxzZmmkDQjfFVfTKeBJ6oBNx5I9CKQh o52/jM1AczXT+okLuczHb7oijGnbMtpG39yU1gvorWdTJiJhL0axQk2ubkgoHgBmIB6TbQm/P kCgtZHzXkRrZXU6Y2Q/1yxmKSrLL8dYzAB4k2gmov2IxoSOf+CGgYVcPVAYTY9lPjNPKxbSqU 1saM6WQGsN14qizsJuHlVZXoH8frG2ROVEsgmx0/mPFN2ifRu7je/vLTmF3bjVvRuQc0vLSTm l2AfYljX31oSQQ7zg7dSj/PMg93DTSexpAu9d3RAjt+wjHkHoJpTvfTEtC2QA4fU1WXY8z4wR 1T+/BTrO6e2BOQaPsO+P3WJISQTjGggHp8QtmWaRBsJa7Y3mwjivdlXPgjf+VmXsQr5jvj/Na QvltVr+76X9SE4X5HhKJWWMLQ1Ev3EHeCVPp0dhPD+5cFNBT3DHjiFbz8s80adTIjJmk/t3vc C+TLAZt/bJK6EjB8LcjTykpwx/mkebR+oZ0OkF8hFlBPqc/a7MUz0mfuocAiG8DKT0GuTgMCk iGwlOXPIuxUMvtux X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211031_050847_698931_D687FC9A X-CRM114-Status: GOOD ( 12.64 ) 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 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 31 12:08:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12594997 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 D535EC433EF for ; Sun, 31 Oct 2021 12:10:46 +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 9BE0A60F4A for ; Sun, 31 Oct 2021 12:10:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9BE0A60F4A 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=eh/QCs2w1lhlD+luVzSZHdDegEsvf3G6fXrIrjHmRNU=; b=xD8GYq492Covvq wa7TXK3aYB9cURiIOiMrwDbuQFktbj5ddVQUiMre3GZk+jH9AwETyfhWFZipqAcmPpF4GOt0oQ9CL e6Tk3cR8Af7TBEI20BfY1riOdbgRt0df+mjmPoOysB+N8aJE+n1CcqudM7VFUuZrneJcoDcWQs1xF 8PwQ+Otq9n+J12GGDYvaW9s757gFj3DTlE3Z1Y9p2FnyPcbTCeMtyjs6poIZTO/pLtunfsOk6TeBD OqwZxji6dM0y2vhXwHqKvdPdmblBURVxOSGnjAT6sruFDALiZ+Zm6YpnmIVC/VJ95LFDT+ASF60sm GkuBgsEUauNJrZhihiGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mh9e2-00DwzM-I0; Sun, 31 Oct 2021 12:09:02 +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 1mh9dn-00Dwx5-IS for linux-arm-kernel@lists.infradead.org; Sun, 31 Oct 2021 12:08:49 +0000 Received: from localhost.localdomain ([37.4.249.122]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mn2iP-1n64Gr3FQt-00k6kE; Sun, 31 Oct 2021 13:08:34 +0100 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 V2 2/2] dt-bindings: soc: bcm: Convert brcm, bcm2835-vchiq to json-schema Date: Sun, 31 Oct 2021 13:08:06 +0100 Message-Id: <1635682086-3200-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1635682086-3200-1-git-send-email-stefan.wahren@i2se.com> References: <1635682086-3200-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:BvkruI4+bJ2+q1yCTzxfbVcw0LKTklBvoa5CX0rTeOR4nuyH2vX gwmqRAZgCnPZcCZGgAV+E6D/4s1oLsmL47vTc9WnGuB19+wj6ngMQWadWFg6EEqpcFuMM/S Jomv1NxSA7ixJP7eXm9FtXqmeTSmRdX2E0alEZLIneZmkMrvtTKnQ2SRdyqG+mdwBsxINy2 cH2w9bns7y3z3qdoGph2A== X-UI-Out-Filterresults: notjunk:1;V03:K0:mxChIPk60zw=:vl5z3GZGrpSdcVIgRwisV0 4GfB6epJIR8s+TyrD9xm0LWcxbHfrfz53nioUEyEK62hoTglwLnUYaQ1vaW5cwdACQHHPF1e1 63CJnj898NLtE0w7KL8mVFPDJJzpmzJeV497snIU7grcGE5Ys3Ad2Ubkl/6Aipa9w/fITmM2Z peqDgXVbebaA8Az5qSBsTWJsuPcaR4j8RQE6JAEanMTwjs6ncSoiWoxkHuOnPeEgmikSNwKEx xaRpeHMm/X1kvAeApG9Aj6InyxRZ1uYU2lv6PiSrJGVa++U1pq9i9ZiWH4W9q0UIc/zNxtCV5 gtvJnXVMzi03EZlCERcUagY9+r+KMlhaZeV4AfAsWcDFGASEl1ObkbVyOx4WYX9WmtXzpYU5P 9TeQJI1LaFM0UyD/Th2AzXEdpgTu6JYfmgg5AK9/vmms1nSyNB8NS7hYI9ilP193WvXB0m5pP Q/AjNvQV+uwkl5OyoI8xNp0MDRLp36Ub3c/ZA7p9rbgKh4i718bb7Uzkse8yc/Dca5cjCOoL2 lIRJ93exd+SKJvSiPhjXAXyRxHD6mHBiMMGR92gqAKj1GCGhQSG4j22+FoYZVkpNixTjxaoGE ocAfMWrDr+b11WIFW/M5CAQGBCHNQphfYXFd38b9c7VerY4nGhiuhmvquV+3NOoymNtxEjnHS N6/KykaMTv5r3WP05dyiOjt83xm3P37rb375adTEKWip22AITPHRq08gjyEhS+0oWm7/9YvGC /sRocNe/RyQSI2Hk X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211031_050847_954110_F686B2F3 X-CRM114-Status: GOOD ( 15.27 ) 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 Reviewed-by: Rob Herring --- .../bindings/soc/bcm/brcm,bcm2835-vchiq.txt | 17 -------- .../bindings/soc/bcm/brcm,bcm2835-vchiq.yaml | 45 ++++++++++++++++++++++ 2 files changed, 45 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..a1d5cd4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-vchiq.yaml @@ -0,0 +1,45 @@ +# 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 + minItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + mailbox@7e00b840 { + compatible = "brcm,bcm2835-vchiq"; + reg = <0x7e00b840 0xf>; + interrupts = <0 2>; + }; + +...