Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795781926; b=AohzRoc1BzAiDdkBTATQwgUq/LJrYhuuNfvKl1Hsv9GrQLQhZAfpkBXNJLfNbHFLASxQ Z1GnWLrezX3libFkpk3W3rHtDvU1CNd3J7m1D9k6ZEKsqZ2JCT/9Yw5gdxnN3pYOhAAUn vkLAi8kl0pvr+9BV4ynnHy5nuePKAYnlYWaWWJRh8sslP0v8hBZXKzK9D7DbaWQGvg9GT Z0er/yFA5pkSI3a+9ry2MXHfLGsxhFPVf48sy5ZGBxEKW5+AT6uEah2GV2pl+KBDdx1y/ 2i2bMK1OPHhoctipFcta0lDLHOJQVL8e9VzldyRl+nAVMBfvuUl/noZQTjprqPmyPqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795781926; 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=nnn/mFpoR7L3dnATqzoKoqtIs3zKchqzDBWjzMLVr8g=; b=48UrBT4Zw81Yt+tI8rga3e6wJ+s5tGuRYV8MXotpqlmittIxaAXzMTY8jFGzHS22G/Tu c3eTcevx4L09wLZvnwExIoEDVZaz1nnmKOCxukleCYG3YJ/iA2xhvk0Sp/z3iGAINcEwX gWgGZffdE0pFZEvgOFqY/y4whAgQNJ/DLtM5IUR8Li+YK+rBA/BTdnluuk6WDXDac6MAU YY31JSgim+dLnvHo5AWMhNVhnwNEEVrlopPCOMrPm0MMQhSibkSHiIcFT4vuRsvuzcD7U 7CgRHpxQJ5KA1J32Cq+1ZDcbZM3Xld02uMY+Xxr160Fz0y/Pbc4bAuoSVgRRiVsDOuQ== 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=SM47LHuP; arc=none smtp.remote-ip=209.85.221.41 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 8768A606A693 for ; Fri, 27 Nov 2026 12:18:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8768A606A693 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=SM47LHuP Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-4a7b8abe209so6256681f8f.0 for ; Fri, 27 Nov 2026 04:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1795781924; x=1796386724; 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=nnn/mFpoR7L3dnATqzoKoqtIs3zKchqzDBWjzMLVr8g=; b=SM47LHuPhTeAXndjkqj6zx/iIGjRZu9YMHQ/bxgxsXVsjd93y1tAIlNTKJ+2FJ3KRo lgcnesAPP/2v8JH9utitM8SbbIyYjSHjGjCqG4Eg8WRhJ/KwRBAVFqh4spWziDMtXsZL SQIn+woZGCT70hnYh7SLvDhdl/WOcV3HeEtvW/C4mgl3bQDaVXFpbFjQ6NYDVUiCU9F4 4cyeqOboJoFqvia7EUA2pNJs7ed76fW0wjqjLxWnEWVi5ruNhD8JM/5muIKqmjG6fUFP 0fEaVhfPfi4naerv+cwwg1wa/NLwQtuPpok7AyyGNxOI5KwijvnmPzK04kkBNaZx15E/ flVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795781924; x=1796386724; 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=nnn/mFpoR7L3dnATqzoKoqtIs3zKchqzDBWjzMLVr8g=; b=AbeWHbtR9dwYnKdsopE/XnKRAYvPb2NVktQdvClPa/SSWiFt97w0w4nOeabC6zLnf4 CH0WfsQR8wTWwzZyy4HRteUbQykJ2SGAccVqcyjXblCfx24bS89ELB3/6fpwoXzbA4ni 0EhX+zd+42/Hkg50wokZR/nYHWde2J7AkIP0Mf8pf/n5vPdKOCscih06Wgmml+q9KDpY XutZGO3UUPGGumgUW7Q8adsLPK+bPbolzq69P8hMhd3mfjYkhS+waDBo6017BVE7RT/o JvZNvWcOQ4VI8laPeUcGdWYB4jjn9j4TgNjszMDQaNTpP4t44wwEc+pAmzg+QaDaWyzf RpdA== X-Forwarded-Encrypted: i=1; AL+hErEA814N8N7eIGNTM4SyH6JRR3z0b3h+04sPJmmTYtN0ZPC4G4CkMC9VFaYl8Y/BPtbdJn/yBVdpc7g=@vger.kernel.org X-Gm-Message-State: APuU4Z8XtGmxrU6ugsaLpZKM5500GSAzPwjDrGhxvSxdJMonhV0YzkeK qPFOAAn+YBTlVSe8eJs2pA19G2UOmpnHE8LQMBUsnY1ni6aCY1QpQ3Fgt3X2oJtxraI= X-Gm-Gg: AZFdTZcZKRkuHT0yCNGUKXMyrbJ9muEGPfVGnmF+/n/bhkxWK7bhbUpFGe8PuRqkrcM k1IwW4rTZxhe5Jny1PutT+6MZQB0XynytMKVO0xJsduMakckIgDNuceTsO19xt5nQkSg2uxXqjj kgK5DUT22vnLlC5ojeq/M/NX7ck9Zl9euoF6QP/4YnaNuDTNsEVDcjrUG5g5em93IArIKPXZ//7 esACKOTKefGomZ2wxlxJQOvhv8rRLQDYHQ/2qnK7I6dihW0YCLTgPNbFTOvta3DBWy6tXssk5HL l+ppE4NpzdwaKqtqBkQZ+6MghDdS4q7MwoQ7/EGs6uxbdctM5g939miC2OyGDuDWZIKjnLLkcj7 FFrEpFN5gxTm3sbqmvHjYqPmQED+iM9kx6Wuh5eay/43IDTENK0gszzf2EdkENHTNRjbowPyFy3 nBunBIy4RdCfcfokQj66F5lQqcF7+iPQ1SZm5BThI2ZuxCyQeTQuPd+F16yu1g1RGSZEoYiuLJs GDAz3iLhruiTkg1h2ZT8/9gCtPAI8NUj3BPb9LgWE568zs1Nfe0ocHs9KRxEZLuIWq68CoIN+z6 LmTKtRzRIR9CAmpzDWVdG8XUbs69 X-Received: by 2002:a5d:64c9:0:b0:4a6:bc53:2478 with SMTP id ffacd0b85a97d-4abb0d5256fmr47792743f8f.13.1795781923925; Fri, 27 Nov 2026 04:18:43 -0800 (PST) Received: from localhost ([195.94.148.180]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf62f7sm47786781f8f.13.2026.11.27.04.18.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 04:18:43 -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 02/28] dt-bindings: dma: brcm,bcm2835-dma: Document the flags of the DREQ cell Date: Fri, 27 Nov 2026 13:21:52 +0100 Message-ID: <20261127122236.4976-3-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 The single specifier cell is not limited to the DREQ number: the upper bits carry per-channel flags (AXI priorities, wide accesses, burst and write-response handling), which the downstream Raspberry Pi device trees have been using for years and which the driver is going to support. Document the meaning of those bits and add a header defining them, so that device trees do not need to open code them. Signed-off-by: Andrea della Porta --- .../bindings/dma/brcm,bcm2835-dma.yaml | 13 ++++++++- include/dt-bindings/dma/brcm,bcm2835-dma.h | 27 +++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/dma/brcm,bcm2835-dma.h diff --git a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml index c9b9a5490826..f81740e49301 100644 --- a/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml +++ b/Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.yaml @@ -37,7 +37,18 @@ properties: maxItems: 16 '#dma-cells': - description: The single cell represents the DREQ number. + description: | + The single cell contains the DREQ number in bits 0-4, optionally + combined with the following per-channel flags, which are defined in + include/dt-bindings/dma/brcm,bcm2835-dma.h: + bits 16-19: AXI priority + bits 20-23: AXI panic priority + bit 24: use wide (128-bit) source reads + bit 25: use wide (128-bit) destination writes + bit 27: do not wait for AXI write responses + bit 28: wait for outstanding writes before signalling completion + bit 29: do not pause the channel when the debug signal is asserted + bit 30: use multi-beat bursts const: 1 brcm,dma-channel-mask: diff --git a/include/dt-bindings/dma/brcm,bcm2835-dma.h b/include/dt-bindings/dma/brcm,bcm2835-dma.h new file mode 100644 index 000000000000..ace34c32a860 --- /dev/null +++ b/include/dt-bindings/dma/brcm,bcm2835-dma.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Flags of the DMA specifier of the BCM2835 DMA controller. They are ORed + * with the DREQ number in the single cell of the specifier. + */ + +#ifndef _DT_BINDINGS_DMA_BRCM_BCM2835_DMA_H +#define _DT_BINDINGS_DMA_BRCM_BCM2835_DMA_H + +/* AXI priority (0-15) of the channel */ +#define BCM2835_DMA_FLAG_PRIORITY(x) (((x) & 0xf) << 16) +/* AXI panic priority (0-15) of the channel */ +#define BCM2835_DMA_FLAG_PANIC_PRIORITY(x) (((x) & 0xf) << 20) +/* Use wide (128-bit) source reads */ +#define BCM2835_DMA_FLAG_WIDE_SOURCE (1 << 24) +/* Use wide (128-bit) destination writes */ +#define BCM2835_DMA_FLAG_WIDE_DEST (1 << 25) +/* Do not wait for the AXI write responses */ +#define BCM2835_DMA_FLAG_NO_WAIT_RESP (1 << 27) +/* Wait for the outstanding writes before signalling completion */ +#define BCM2835_DMA_FLAG_WAIT_FOR_WRITES (1 << 28) +/* Do not pause the channel when the debug signal is asserted */ +#define BCM2835_DMA_FLAG_DIS_DEBUG (1 << 29) +/* Use multi-beat bursts */ +#define BCM2835_DMA_FLAG_BURST (1 << 30) + +#endif /* _DT_BINDINGS_DMA_BRCM_BCM2835_DMA_H */ -- 2.51.0