Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795781953; b=C5/sqoEc7qC//OYBjc5iDpIHAiRoUkmlvbqkyxl5bBmbiXLXzTyLip+8fCrJ/Fxz3nRY LysEZSJi7OB4oqgRYfBx2qfQeFY6w6ehU8Fch+payteOSYtC1HRhtxDCNPxQhWArx2b6T jTnYNDklpUoa/TWZNZDylkin+6r0KTLA2U0+wnolUhl2zOtwjA0lVS8zOOMV0/JCTgmcj vPgPxJ3A22wvPmNRM6SLLqO4hO1bIkjoKdV3DIWQsES6/eHaJq2NTaAqFHqXDjIW07lKh /EVmv4JjHmTLzOraUQt0mqL0iVdK/1GiS55mLkBROjoqU+WMBtKzTabcHeaWWwi90SQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795781953; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=R3AnFPOxgAgx5s9ofy+ghKg7a/HyXXQSnc09fl1YVw8=; b=P2/Qaqq06V38SNoXPgMNlBOAnVK2Lts8xKWGEsojv43OeF1dqaAdYd3UmVvPl75G9z7e fUXLq8ai0FYbsOH+/dDGMXbqM9LfubGM2XndO3Nyg2MPIvpmOUqzi996BCk+sT6CRA5PS 8q9CK/i80EQJErCXsAdjcx1FL9+bt1PA94sfWPNiRHBsDEsIbTfq2POmS+6sEfc+eQh6W B5mUB7RUYHsf5V99QwchLS6hXrppyvCkOaE4Ld4MYcP0S96Rv26iKi+738mvGOZvBbZ0H l3H5G1KprscxW20VD4gYFfr0ryBnnkJ8XuayQqLB3m2lJtz0VxJyVspUqNqaH5+SDxA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b="HtDJMx0/"; arc=none smtp.remote-ip=209.85.128.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34A28606B806 for ; Fri, 27 Nov 2026 12:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 34A28606B806 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.a=rsa-sha256 header.s=google header.b=HtDJMx0/ Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4bba5e17728so26071395e9.2 for ; Fri, 27 Nov 2026 04:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1795781951; x=1796386751; darn=vger.kernel.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:content-type; bh=R3AnFPOxgAgx5s9ofy+ghKg7a/HyXXQSnc09fl1YVw8=; b=HtDJMx0//Ztf2mzoZz95DmiOpLMxYRts4sLL3SwarcjnV78nqWfuYjTJQg5TnS9aaE jsWsoEYKD7l+serS9ZgtXbhj4UBCI/haitQDZmwhu7DkpgdG6lEynM+ueKEaEya4jmMf RVOZ1CA6128q+uZfcfdJUysvqE684zpkHTzzg0A7m61t7xa5aEpIJ6CBczpS1ttvE70E t1SY88ATW3AAEHiIG3NEliyEJo3THf9pOdalkk29ZXe50atSLuS1qQkagDA5kxTg3dH1 Ic/q/P1Gbs1oWbA//uJSsTcyiTiFFxE6pePcfo5Xsv27cbnz4XoZXO+WPAGzhw0eoKAg ZpfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795781951; x=1796386751; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=R3AnFPOxgAgx5s9ofy+ghKg7a/HyXXQSnc09fl1YVw8=; b=uS0EOn1ZXtL+/l/g3fNwUvUmJVN7nepIhV1+0ag/0+hFB8IT6USYoeb7LtjmolxTFk vqIqlGIsMdXQNlGDAEaBuEl3krCUcJviJe7ni4BrQCaqjN8UEwWWdaAR634cBV7bOZe/ t39r4yrlB/zVTIwYX1TKfqaKKXk/HyCV73mwbT+r9qJDmETx6GyKFg7uKZ2wg127JKVB RDF/qHm8phS8+XbyDnZD/fsqGiF/oEnOexKVZ9GKPZ+MOZwTzUFfXIT/p01adIQn1gaC QMDNj1z23EMrgXfKurO7EybM8cJv++mud/HuvOPqMahcHKU8zA8L8hSJw03ZIbgp6Pdo j0cg== X-Forwarded-Encrypted: i=1; AL+hErHqm1Y6JgkmkpG8jcl82eHFqJZUqUrr9hLGamre5ePISxW1RQcyeDoHzosJXf21+USDWv5onsjbsmk=@vger.kernel.org X-Gm-Message-State: APuU4Z+w7675SygH3BPlM+TgAwnE78cU3wpM8CfoYEsBlgRNymfnEKjr h/W0g+4mkLI8KQiKlGXwkLfRx68GO9psjE9TzSgsuJxID/dzhDSGeL2roLL32Q+ePpI= X-Gm-Gg: AZFdTZfdVBD+XIoxh7+5G3wP80iStYtIY0rVFwQ3yMnVc0tp2ZM0erXOHwFrodCye9G Z2O5I4R2ns5Atm7SidO8TvDsq/+FH/Y5URPuk6eIh2i4yf0irICM4uNy6Ktbr1hsnSVxyDPI4Db PSTVJZe7iBXvRKUrvTi05Q6wl3erCDJVC9oF+Q4d6k/at/Dm5zk6b1agFmUfoMsmdZPmjSLheYM t87f1+gHoaO9DZts9bbFHT6KFRMSCPgYzOwObjXtTEunYJAXovp8SH6ZIGZT5xdkkAe1tY6xErs 8gn1gofgTcTh1Ea7ei/wQ1l+GnIRdQ/TrueOOw/WbPaaPb48uJM3O97PuJsixOGjf6CCODOQEe4 +ZMeuLMnZmQo94BrogydntTkZbhuAQRFERXPkZgBvu5xVueXdchBzTsUjtm+9V1peYGmS8qmlMV 5necOrx18htUekGPRetdAPEVeLReKogFHHvd3v26weIvcWRFWiAwVYVnQvnfawING+DdeH/if++ CgE86CnU0jXvgitsBi1gb506v+y8pdy0fjISgmcxYJWHbzLM7SUufBpJlQiSSaNotTliU97LITr KtzqOrHwezERRN9w6wH6a8c8jNnp X-Received: by 2002:a05:600c:a08b:b0:4bb:6651:9eda with SMTP id 5b1f17b1804b1-4bb88922ca4mr460860355e9.14.1795781951466; Fri, 27 Nov 2026 04:19:11 -0800 (PST) Received: from localhost ([195.94.148.180]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853c9170sm753770715e9.14.2026.11.27.04.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 04:19:11 -0800 (PST) From: Andrea della Porta To: Vinod Koul Cc: Frank Li , dmaengine@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Saenz Julienne , Stefan Wahren , Dave Stevenson , Phil Elwell , Dom Cobley , Maxime Ripard , Robin Murphy , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrea della Porta Subject: [PATCH v4 21/28] dt-bindings: dma: brcm,bcm2835-dma: Add BCM2711 40-bit DMA Date: Fri, 27 Nov 2026 13:22:11 +0100 Message-ID: <20261127122236.4976-22-andrea.porta@suse.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20261127122236.4976-1-andrea.porta@suse.com> References: <20261127122236.4976-1-andrea.porta@suse.com> X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On BCM2711 the last four channels of the DMA block (11 to 14) have a different programming model allowing them to address 40 bits, and are described by a separate node with their own compatible. Each of them has a dedicated interrupt. Constrain the interrupt names, whose numbering refers to the whole DMA block also for nodes describing a subset of the channels, and require them for the new compatible. Signed-off-by: Andrea della Porta --- .../bindings/dma/brcm,bcm2835-dma.yaml | 47 ++++++++++++++++++- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml index 51ad8bc33d5b..d4a7001d6f97 100644 --- a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml +++ b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml @@ -9,18 +9,41 @@ title: BCM2835 DMA controller maintainers: - Nicolas Saenz Julienne -description: +description: | The BCM2835 DMA controller has 16 channels in total. Only the lower 13 channels have an associated IRQ. Some arbitrary channels are used by the VideoCore firmware (1,3,6,7 in the current firmware version). The channels 0, 2 and 3 have special functionality and should not be used by the driver. + On BCM2711 the channels 11 to 14 of the same DMA block have a different + programming model, which allows them to address 40 bits, and are described + by a separate node. + + The channel numbers used in the channel mask and in the interrupt names + always refer to the whole DMA block, also when a node only describes some + of its channels. + allOf: - $ref: dma-controller.yaml# + - if: + properties: + compatible: + contains: + const: brcm,bcm2711-dma + then: + properties: + interrupts: + maxItems: 4 + interrupt-names: + maxItems: 4 + required: + - interrupt-names properties: compatible: - const: brcm,bcm2835-dma + enum: + - brcm,bcm2711-dma + - brcm,bcm2835-dma reg: maxItems: 1 @@ -35,6 +58,8 @@ properties: interrupt-names: minItems: 1 maxItems: 16 + items: + pattern: "^dma([0-9]|1[0-4]|-shared-all)$" '#dma-cells': description: | @@ -120,4 +145,22 @@ examples: dma-channel-mask = <0x7f35>; }; + - | + #include + + dma-controller@7e007b00 { + compatible = "brcm,bcm2711-dma"; + reg = <0x7e007b00 0x400>; + interrupts = , + , + , + ; + interrupt-names = "dma11", + "dma12", + "dma13", + "dma14"; + #dma-cells = <1>; + dma-channel-mask = <0x7000>; + }; + ... -- 2.51.0