From: Conor Dooley <conor@kernel.org>
To: Guodong Xu <guodong@riscstar.com>
Cc: vkoul@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, dlan@gentoo.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
p.zabel@pengutronix.de, drew@pdp7.com,
emil.renner.berthing@canonical.com, inochiama@gmail.com,
geert+renesas@glider.be, tglx@linutronix.de,
hal.feng@starfivetech.com, joel@jms.id.au,
duje.mihanovic@skole.hr, elder@riscstar.com,
dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
spacemit@lists.linux.dev
Subject: Re: [PATCH 1/8] dt-bindings: dma: marvell,mmp-dma: Add SpacemiT PDMA compatibility
Date: Wed, 11 Jun 2025 17:27:10 +0100 [thread overview]
Message-ID: <20250611-kabob-unmindful-3b1e9728e77d@spud> (raw)
In-Reply-To: <20250611125723.181711-2-guodong@riscstar.com>
[-- Attachment #1: Type: text/plain, Size: 2548 bytes --]
On Wed, Jun 11, 2025 at 08:57:16PM +0800, Guodong Xu wrote:
> Add "spacemit,pdma-1.0" compatible string to support SpacemiT PDMA
> controller in the Marvell MMP DMA device tree bindings. This enables:
>
> - Support for SpacemiT PDMA controller configuration
> - New optional properties for platform-specific integration:
> * clocks: Clock controller for the DMA
> * resets: Reset controller for the DMA
>
> Also, add explicit #dma-cells property definition to avoid
> "make dtbs_check W=3" warnings about unevaluated properties.
>
> The #dma-cells property is defined as 2 cells to maintain compatibility
> with existing ARM device trees. The first cell specifies the DMA request
> line number, while the second cell is currently unused by the driver but
> required for backward compatibility with PXA device tree files.
>
> Signed-off-by: Guodong Xu <guodong@riscstar.com>
> ---
> .../bindings/dma/marvell,mmp-dma.yaml | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/dma/marvell,mmp-dma.yaml b/Documentation/devicetree/bindings/dma/marvell,mmp-dma.yaml
> index d447d5207be0..e117a81414bd 100644
> --- a/Documentation/devicetree/bindings/dma/marvell,mmp-dma.yaml
> +++ b/Documentation/devicetree/bindings/dma/marvell,mmp-dma.yaml
> @@ -18,6 +18,7 @@ properties:
> - marvell,pdma-1.0
> - marvell,adma-1.0
> - marvell,pxa910-squ
> + - spacemit,pdma-1.0
You need a soc-specific compatible here.
>
> reg:
> maxItems: 1
> @@ -32,6 +33,21 @@ properties:
> A phandle to the SRAM pool
> $ref: /schemas/types.yaml#/definitions/phandle
>
> + clocks:
> + description: Clock for the controller
> + maxItems: 1
> +
> + resets:
> + description: Reset controller for the DMA controller
> + maxItems: 1
> +
> + '#dma-cells':
> + const: 2
> + description:
> + The first cell contains the DMA request number for the peripheral
> + device. The second cell is currently unused but must be present for
> + backward compatibility.
These properties are only valid for your new device, right?
If so, please restrict them to only the spacemit platform.
> +
> '#dma-channels':
> deprecated: true
>
> @@ -52,6 +68,7 @@ allOf:
> contains:
> enum:
> - marvell,pdma-1.0
> + - spacemit,pdma-1.0
> then:
> properties:
> asram: false
> --
> 2.43.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-06-11 16:27 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-11 12:57 [PATCH 0/8] dma: mmp_pdma: Add SpacemiT K1 SoC support with 64-bit addressing Guodong Xu
2025-06-11 12:57 ` [PATCH 1/8] dt-bindings: dma: marvell,mmp-dma: Add SpacemiT PDMA compatibility Guodong Xu
2025-06-11 16:27 ` Conor Dooley [this message]
2025-06-12 0:03 ` Yixun Lan
2025-06-12 1:48 ` Guodong Xu
2025-06-12 1:44 ` Guodong Xu
2025-06-11 12:57 ` [PATCH 2/8] dma: mmp_pdma: Add optional clock support Guodong Xu
2025-06-17 6:00 ` Vinod Koul
2025-06-19 2:29 ` Guodong Xu
2025-06-11 12:57 ` [PATCH 3/8] dma: mmp_pdma: Add optional reset controller support Guodong Xu
2025-06-11 12:57 ` [PATCH 4/8] dma: mmp_pdma: Add SpacemiT PDMA support with 64-bit addressing Guodong Xu
2025-06-17 6:02 ` Vinod Koul
2025-06-19 2:37 ` Guodong Xu
2025-06-11 12:57 ` [PATCH 5/8] riscv: dts: spacemit: Add dma bus and PDMA node for K1 SoC Guodong Xu
2025-06-13 3:06 ` Vivian Wang
2025-06-13 13:22 ` Yixun Lan
2025-06-14 3:33 ` Guodong Xu
2025-06-13 14:15 ` Ze Huang
2025-06-14 2:53 ` Guodong Xu
2025-06-14 8:37 ` Vivian Wang
2025-06-11 12:57 ` [PATCH 6/8] riscv: dts: spacemit: Enable PDMA0 controller on Banana Pi F3 Guodong Xu
2025-06-11 13:57 ` Yixun Lan
2025-06-11 14:32 ` Guodong Xu
2025-06-11 15:02 ` Yixun Lan
2025-06-12 8:00 ` Guodong Xu
2025-06-11 12:57 ` [PATCH 7/8] dma: Kconfig: MMP_PDMA: Add support for ARCH_SPACEMIT Guodong Xu
2025-06-11 13:51 ` Yixun Lan
2025-06-11 14:40 ` Guodong Xu
2025-06-11 12:57 ` [PATCH 8/8] riscv: defconfig: Enable MMP_PDMA support for SpacemiT K1 SoC Guodong Xu
2025-06-11 13:48 ` Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250611-kabob-unmindful-3b1e9728e77d@spud \
--to=conor@kernel.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=dmaengine@vger.kernel.org \
--cc=drew@pdp7.com \
--cc=duje.mihanovic@skole.hr \
--cc=elder@riscstar.com \
--cc=emil.renner.berthing@canonical.com \
--cc=geert+renesas@glider.be \
--cc=guodong@riscstar.com \
--cc=hal.feng@starfivetech.com \
--cc=inochiama@gmail.com \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=tglx@linutronix.de \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox