From: Krzysztof Kozlowski <krzk@kernel.org>
To: Nino Zhang <ninozhang001@gmail.com>, devicetree@vger.kernel.org
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
vkoul@kernel.org, rahulbedarkar89@gmail.com,
linux-mips@vger.kernel.org, dmaengine@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] dt-bindings: dma: img-mdc-dma: convert to DT schema
Date: Sun, 24 Aug 2025 13:24:02 +0200 [thread overview]
Message-ID: <b748f86f-68ee-47fd-8394-f6352f99f3f0@kernel.org> (raw)
In-Reply-To: <20250824034509.445743-1-ninozhang001@gmail.com>
On 24/08/2025 05:45, Nino Zhang wrote:
> Convert the img-mdc-dma binding from txt to YAML schema.
> No functional changes except dropping the consumer node
> (spi@18100f00) from the example, which belongs to the
> consumer binding instead.
>
> Signed-off-by: Nino Zhang <ninozhang001@gmail.com>
> ---
> Changes since v1:
> - All review comments addressed.
Do not attach (thread) your patchsets to some other threads (unrelated
or older versions). This buries them deep in the mailbox and might
interfere with applying entire sets.
>
> Open:
> - Maintainers: set to Rahul Bedarkar + linux-mips per MAINTAINERS entry
> for Pistachio/CI40 device tree. This seems the closest match to the
> hardware. Happy to adjust if platform maintainers suggest otherwise.
> - img,max-burst-multiplier: defined as uint32. A minimum of 1 is used to
> exclude the invalid case of 0, but the actual supported range has not
> been confirmed in available documentation. Example uses 16. A maximum
> will be added once confirmed by platform maintainers or hardware docs.
>
> .../bindings/dma/img,pistachio-mdc-dma.yaml | 90 +++++++++++++++++++
> .../devicetree/bindings/dma/img-mdc-dma.txt | 57 ------------
> 2 files changed, 90 insertions(+), 57 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/dma/img,pistachio-mdc-dma.yaml
> delete mode 100644 Documentation/devicetree/bindings/dma/img-mdc-dma.txt
>
> diff --git a/Documentation/devicetree/bindings/dma/img,pistachio-mdc-dma.yaml b/Documentation/devicetree/bindings/dma/img,pistachio-mdc-dma.yaml
> new file mode 100644
> index 000000000000..4dde54a17f52
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dma/img,pistachio-mdc-dma.yaml
> @@ -0,0 +1,90 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/dma/img,pistachio-mdc-dma.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: IMG Multi-threaded DMA Controller (MDC)
> +
> +maintainers:
> + - Rahul Bedarkar <rahulbedarkar89@gmail.com>
> + - linux-mips@vger.kernel.org
> +
> +allOf:
> + - $ref: /schemas/dma/dma-controller.yaml#
> +
> +properties:
> + compatible:
> + const: img,pistachio-mdc-dma
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + minItems: 1
> + maxItems: 32
Why is this flexible?
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + items:
> + - const: sys
> +
> + img,cr-periph:
> + $ref: /schemas/types.yaml#/definitions/phandle
> + description: >
Drop >
You already got exactly the same comment.
> + Phandle to peripheral control syscon node with DMA request to channel
> + mapping registers.
> +
> + img,max-burst-multiplier:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + minimum: 1
Does not feel like enough of constraints.
> + description: >
> + Maximum supported burst size multiplier. The maximum burst size is this
> + value multiplied by the hardware-reported bus width.
> +
> + "#dma-cells":
> + const: 3
> + description: |
> + DMA specifier cells:
> + 1: peripheral's DMA request line
> + 2: channel bitmap: bit N set indicates channel N is usable
> + 3: thread ID to be used by the channel
> +
> + dma-channels:
> + $ref: /schemas/types.yaml#/definitions/uint32
More ignored comments.
Please go back to previous posting and respond to each comment. Then
implement each one or keep discussing.
Best regards,
Krzysztof
prev parent reply other threads:[~2025-08-24 11:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 15:02 [PATCH] dt-bindings: dma: img-mdc-dma: convert to DT schema Nino Zhang
2025-08-22 19:50 ` Rob Herring
2025-08-24 18:55 ` Nino Zhang
2025-08-24 3:45 ` [PATCH v2] " Nino Zhang
2025-08-24 11:24 ` Krzysztof Kozlowski [this message]
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=b748f86f-68ee-47fd-8394-f6352f99f3f0@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=ninozhang001@gmail.com \
--cc=rahulbedarkar89@gmail.com \
--cc=robh@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).