From patchwork Mon Dec 27 12:06:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12699722 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 E8ADBC433EF for ; Mon, 27 Dec 2021 12:11:23 +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: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=FMRrVsNkYH4CzXThDLnxQItfrRt764owI0lsKLMntpI=; b=yCA+wYU2N0WOI8 hYZDfkL9Q02aG6fSBrSYb4pl+VrU1xTiS+0Zlz7wVjTg4nXHjQQ9btbTUbqple4Ax9N3lDnCcVmN+ C5c+dw5h4tYlz0a/WFkb6JuJFRZyrIBQp+6yVyTOuSex3gCadk1hm0c3RdqSC0FuYgNGwOE2g1bHo Xoov9+jmqbp23qjdoCB/xDhym42Zg9z51kpZUWjpzsDlqSqKN1qwza1xUJP6/YBA/5KRbhApHD4me g6u0jEh2MC8A6G708I1aaQ1fQG1S5mWBlh/1+pNDxOrkzi6CzJY5kuA/ihizMXmL9IeIBDX4oB3D9 4GWuD7SyjsNr9vsvQs3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1opH-00GdY7-85; Mon, 27 Dec 2021 12:10:03 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1omU-00Gc6t-HX; Mon, 27 Dec 2021 12:07:13 +0000 Received: from localhost.localdomain ([37.4.249.169]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mirb8-1mXzoK2zJM-00erHu; Mon, 27 Dec 2021 13:07:04 +0100 From: Stefan Wahren To: Vinod Koul , Rob Herring , Florian Fainelli , Nicolas Saenz Julienne Cc: Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, dmaengine@vger.kernel.org, Phil Elwell , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lukas Wunner , linux-rpi-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH RFC 11/11] ARM: dts: bcm2711: add bcm2711-dma node Date: Mon, 27 Dec 2021 13:06:52 +0100 Message-Id: <1640606812-11110-2-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1640606812-11110-1-git-send-email-stefan.wahren@i2se.com> References: <1640606812-11110-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K1:U3nO36HzZGXq40n9R882naHiNjUl4oAFLiWYXZZHkaUh42dvvLS burphzCrKM4DScfSiS/mZaIkh+uybGI1l2APtf1yp9EoWu0+1FY/9Ry/OPB2kmcRbGK4WEa ndQURDst4PiujCCqJSeJGfu5+BNnHwBVdfuFSMIwLx/YjacYrvvpctnSy4Xpcma2qJ9qrAX C6uiZeOtSxYEys3O9MIdA== X-UI-Out-Filterresults: notjunk:1;V03:K0:PcMir07Pc54=:bxIJKo2MiIwel1ZhW6jVx5 e8W38T1FRN+TR0DUfVTqJNCcq4sZ18dUnvBpn0tQz41g4qmNg52LH3/xa4JhgnlF582q6dbYw KYX1R8UcQxW85FjugCnqn3AEX9uEk/QDGQx07FDg1UHXITPDlC6AYbVK96A2VNYCw1wqSRoqs p3z+1pEi6fYIv0wGedFrsmQXCweu5BoiupAV0UTd3cnCt6yAfQCIGXvXq4SrTywFiosFVi4Hx f0LWr2aA4dYS2VZ7xYgkRiZQDlDKQOKLzsS2J9cVWj6ba7rYwnxnsXkyfsz0t+e6AmdXTS96D TZlesK47HWeSJ8EWounZTgHaYyd2U6dMWQz6S5kaPVtUTxFRE+6ObJuTLoQ7R+y2xuj+yBYNv Ld9Wvo8xegHoa+ws12LL2lKucFn7f0QpQfzO7a+Alr10N/4yYcQtlAiVRk5Tz0CmEu71RMUfb j6QQm+Yrtzy57pRI/RPdXb8bZhWuXk/ruZBuocVcnMj4n/hFTQAXXDfmPsBjV4/YgdCXuAHIP jsJyXtm0xZHchTSUVxnDujGVRKwUwsCc74ptcEnw07ZRPRezn3vips9TtGupRnkXY4m0Oe3hV ImhGcrhEScceH1pa0Q+2ANQ5I4ER+dIQ/SrX2a9SkdCj/aC+if6O5XUG77ClLZoRMvXNlduWi WF48MEk8YTZZrqFO/iw3/899Es5JBVzNT340L0fkmr3t/BYAjE/muLJFXdkujchIFqDEpzdaz Zlx4qJWgfcsUgkqE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211227_040710_912763_02740838 X-CRM114-Status: GOOD ( 10.46 ) 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 BCM2711 has 4 DMA channels with a 40-bit address range, allowing them to access the full 4GB of memory on a Pi 4. Not sure which adjustments to the parent node (scb) are required. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2711.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 590068b..12f373b 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -536,6 +536,22 @@ #size-cells = <0x1>; }; }; + + dma40: dma-controller@7e007b00 { + compatible = "brcm,bcm2711-dma"; + reg = <0x0 0x7e007b00 0x400>; + interrupts = , /* dma4 11 */ + , /* dma4 12 */ + , /* dma4 13 */ + ; /* dma4 14 */ + interrupt-names = "dma11", + "dma12", + "dma13", + "dma14"; + #dma-cells = <1>; + /* The VPU firmware uses DMA channel 11 for VCHIQ */ + brcm,dma-channel-mask = <0x7000>; + }; }; };