From: Krzysztof Kozlowski <krzk@kernel.org>
To: Mohan Kumar D <mkumard@nvidia.com>,
vkoul@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Cc: thierry.reding@gmail.com, jonathanh@nvidia.com,
spujar@nvidia.com, dmaengine@vger.kernel.org,
devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: dma: Support channel page to nvidia,tegra210-adma
Date: Thu, 5 Dec 2024 16:15:27 +0100 [thread overview]
Message-ID: <aa7eef93-6948-453c-8eb8-d7f4f7572808@kernel.org> (raw)
In-Reply-To: <20241205145859.2331691-2-mkumard@nvidia.com>
On 05/12/2024 15:58, Mohan Kumar D wrote:
> Multiple ADMA Channel page hardware support has been added from
> TEGRA186 and onwards. Update the DT binding to use any of the
> ADMA channel page address space region.
>
> Signed-off-by: Mohan Kumar D <mkumard@nvidia.com>
> ---
> .../bindings/dma/nvidia,tegra210-adma.yaml | 19 ++++++++++++++++++-
> 1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml
> index 877147e95ecc..8c76c98560c5 100644
> --- a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml
> +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml
> @@ -29,7 +29,24 @@ properties:
> - const: nvidia,tegra186-adma
>
> reg:
> - maxItems: 1
> + description: |
Do not need '|' unless you need to preserve formatting.
> + The 'page' region describes the address space of the page
> + used for accessing the DMA channel registers. The 'global'
> + region describes the address space of the global DMA registers.
> + In the absence of the 'reg-names' property, there must be a
> + single entry that covers the address space of the global DMA
> + registers and the DMA channel registers.
Rather oneOf listing the items with description.
> + minItems: 1
> + maxItems: 2
> +
> + reg-names:
> + oneOf:
> + - enum:
> + - page
> + - global
This is not correct. You said it covers both.
You also need allOf:if:then: block restricting it per each variant/device.
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-12-05 15:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 14:58 [PATCH 0/2] Add Tegra ADMA channel page support Mohan Kumar D
2024-12-05 14:58 ` [PATCH 1/2] dt-bindings: dma: Support channel page to nvidia,tegra210-adma Mohan Kumar D
2024-12-05 15:15 ` Krzysztof Kozlowski [this message]
2024-12-16 9:57 ` Mohan Kumar D
2024-12-05 14:58 ` [PATCH 2/2] dmaengine: tegra210-adma: Support channel page Mohan Kumar D
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=aa7eef93-6948-453c-8eb8-d7f4f7572808@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=jonathanh@nvidia.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=mkumard@nvidia.com \
--cc=robh@kernel.org \
--cc=spujar@nvidia.com \
--cc=thierry.reding@gmail.com \
--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