From patchwork Wed Mar 13 14:08:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea della Porta X-Patchwork-Id: 13591462 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 2D564C54791 for ; Wed, 13 Mar 2024 14:11:09 +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=Cuecu6iNbyQ2zS1Wb+djrUdm7XIgrkgkYPwH8CcDarw=; b=DdfXg6ZpiJn/UP bH/ON9+NGJnElzOlHejqNxFv7eSH0Ly5cYts9i9bVWN6REBzTRPnMCOWPCAbOy1uT5S2PHpMdBxtT oTHq4645UVIMTHZ7L8+6NsLS7fysy+yDFKCMUdwOfQcQAhCwhTijmzGRc2LNsjm4FOOqbhpkBEnh+ pq8Ia1J2xtAgGzEmeGuG9VfoUVm1cxNXKjIV8X/kIUKxtaC5LwD8O42zUgCTUQzt3LAyt4I2LPJXc yxoCMEoB0d+2fXriarN6WZuuQ9uvCMPNPbbHyk1hRha2eisSDgrmGSE1vapUxaXkHgGBGEdLr66lV 7UP4QU4q3kJtdYth2jDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkPJh-0000000ANNq-31NR; Wed, 13 Mar 2024 14:10:49 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkPI5-0000000AMKT-1XtC for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2024 14:09:13 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a4644bde1d4so265388066b.3 for ; Wed, 13 Mar 2024 07:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1710338948; x=1710943748; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GZRpUUNRnIq77pI2eAogF8VwCXAgFL/1g3LqDmhWq/Q=; b=LA9bXPEgyrqsiFNh24qcONr35gI/JzROTKirkO4EO3JmsDytrrus+a+9d0xVihsZkH 9DQT6tDwvYfOjZsMhopTMyVIyuh+R8CR5pK1dMvyHXbnYg0ROQJa0gEtkgafpwvH5Cf0 CplmGfd3rfyzSDenwnny65wsbcYPSRlgkG7iqBiY3LbaM+rw2E4sTY5y4iWrVGebpPjq CWYmeKeXmuplqqqTT/MgCHZAY9BnJlhijoTCAWoJwCKxCWB44r1vaWVgC+U6AWCv47L9 omqtD530k54I98SxPxzZOn7zE6QjxH0ubKUv3kj80PwhqVMnqMwug+fsdlM7OZIILuMr CRFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710338948; x=1710943748; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GZRpUUNRnIq77pI2eAogF8VwCXAgFL/1g3LqDmhWq/Q=; b=ZUqEPHjj1VoVVeVPJcj86xbP70g03yW0HFUkIgd9ckoczXqCxL4Nhpx8pn7b9pkVe6 cwolrjJ1WWTmYL0UMTX+dJz/Ok0lhZjLGdCaid39ejX7tDo3RZduwkpHWlEZ6n+/2KX2 hcAXYRsyxHrW+MNHN0RqStIcaLuopxuojMcZikSpxSjKBlOawWVbIM11v2s82a+mfJ96 rXbz9Nse9Nhrqs5kDrphoIBIinefNybFlPs2MQbKVYFdskRvBEc4DxGK9lHpi0o1EgEJ fAMb19ZEOXzlzX2Q0HB4HQxC3aDRt+82pzwZWCFNBBQCYk2JKGJ403SWcOIrvpHGCfXy yOng== X-Forwarded-Encrypted: i=1; AJvYcCV9+cPQItsKJ+pUozjUDkT22EFnSxPdL0OsjX7L+W2YLjFAIzH/PIwVpfiNxOrUnd+Z4Oq3lkeYmWIL+zqN0yQtTOO1qXesv/aM/b89dRdK29aAyeA= X-Gm-Message-State: AOJu0Yx/ewzXLs45C51KQhnTmBZhwTQP3AvzOmL/LFnt1K04IkWCiarV P0y2XdM25wI5Y7kjiyayFCVL6Djzj1BmPRPvq6tDdS0Nci6lQv2zppbKBPNhj+E= X-Google-Smtp-Source: AGHT+IHXP//swNkKDNyDphpeA3YlUW8pirt81Yn5DGc/hQTDcD01ShGZgqiYGBU6e4PUzoyKglVJzQ== X-Received: by 2002:a17:907:1819:b0:a46:5941:8927 with SMTP id lg25-20020a170907181900b00a4659418927mr1199309ejc.68.1710338947965; Wed, 13 Mar 2024 07:09:07 -0700 (PDT) Received: from localhost (host-82-56-173-172.retail.telecomitalia.it. [82.56.173.172]) by smtp.gmail.com with ESMTPSA id lf8-20020a170906ae4800b00a4657cad7e8sm701392ejb.127.2024.03.13.07.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 07:09:07 -0700 (PDT) From: Andrea della Porta To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Saenz Julienne , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dave.stevenson@raspberrypi.com Cc: Phil Elwell , Maxime Ripard , Stefan Wahren , Dom Cobley , Andrea della Porta Subject: [PATCH v2 15/15] ARM: dts: bcm2711: add bcm2711-dma node Date: Wed, 13 Mar 2024 15:08:40 +0100 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240313_070909_628072_9A257549 X-CRM114-Status: GOOD ( 10.93 ) 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 BCM2711 has 4 DMA channels with a 40-bit address range, allowing them to access the full 4GB of memory on a Pi 4. Adding a new node to make use of the DMA channels capable of 40 bit addressing. Signed-off-by: Stefan Wahren Signed-off-by: Andrea della Porta --- arch/arm/boot/dts/broadcom/bcm2711.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/broadcom/bcm2711.dtsi b/arch/arm/boot/dts/broadcom/bcm2711.dtsi index 22c7f1561344..d98e3cf0c569 100644 --- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi @@ -552,6 +552,22 @@ scb { ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>, <0x6 0x00000000 0x6 0x00000000 0x40000000>; + 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>; + }; + pcie0: pcie@7d500000 { compatible = "brcm,bcm2711-pcie"; reg = <0x0 0x7d500000 0x9310>;