From: Conor Dooley <conor@kernel.org>
To: Stanislav Jakubek <stano.jakubek@gmail.com>
Cc: Vinod Koul <vkoul@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Baolin Wang <baolin.wang7@gmail.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: dma: sprd,sc9860-dma: convert to YAML
Date: Thu, 4 Jul 2024 17:42:39 +0100 [thread overview]
Message-ID: <20240704-underuse-preacher-b5bb77f92ebf@spud> (raw)
In-Reply-To: <Zoa9MfYsAuqgh2Vb@standask-GA-A55M-S2HP>
[-- Attachment #1: Type: text/plain, Size: 2573 bytes --]
On Thu, Jul 04, 2024 at 05:18:09PM +0200, Stanislav Jakubek wrote:
> Convert the Spreadtrum SC9860 DMA bindings to DT schema.
>
> Changes during conversion:
> - rename file to match compatible
> - make interrupts optional, the AGCP DMA controller doesn't need it
> - describe the optional ashb_eb clock for the AGCP DMA controller
>
> Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
> ---
> .../bindings/dma/sprd,sc9860-dma.yaml | 92 +++++++++++++++++++
> .../devicetree/bindings/dma/sprd-dma.txt | 44 ---------
> 2 files changed, 92 insertions(+), 44 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/dma/sprd,sc9860-dma.yaml
> delete mode 100644 Documentation/devicetree/bindings/dma/sprd-dma.txt
>
> diff --git a/Documentation/devicetree/bindings/dma/sprd,sc9860-dma.yaml b/Documentation/devicetree/bindings/dma/sprd,sc9860-dma.yaml
> new file mode 100644
> index 000000000000..e1639593d26d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/dma/sprd,sc9860-dma.yaml
> @@ -0,0 +1,92 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/dma/sprd,sc9860-dma.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Spreadtrum SC9860 DMA controller
> +
> +description: |
> + There are three DMA controllers: AP DMA, AON DMA and AGCP DMA. For AGCP
> + DMA controller, it can or do not request the IRQ, which will save
> + system power without resuming system by DMA interrupts if AGCP DMA
> + does not request the IRQ.
> +
> +maintainers:
> + - Orson Zhai <orsonzhai@gmail.com>
> + - Baolin Wang <baolin.wang7@gmail.com>
> + - Chunyan Zhang <zhang.lyra@gmail.com>
> +
> +properties:
> + compatible:
> + const: sprd,sc9860-dma
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + minItems: 1
> + maxItems: 2
> +
> + clock-names:
> + oneOf:
> + - const: enable
> + # The ashb_eb clock is optional and only for AGCP DMA controller
> + - items:
> + - const: enable
> + - const: ashb_eb
This is better written as:
clock-names:
minItems: 1
items:
- const: enable
- const: ashb_eb
> +
> + '#dma-cells':
> + const: 1
> +
> + dma-channels:
> + const: 32
> +
> + '#dma-channels':
> + const: 32
> + deprecated: true
If there are no users of this, I'd be inclined to just drop it from the
binding.
Cheers,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-07-04 16:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 15:18 [PATCH] dt-bindings: dma: sprd,sc9860-dma: convert to YAML Stanislav Jakubek
2024-07-04 16:42 ` Conor Dooley [this message]
2024-07-04 17:09 ` Stanislav Jakubek
2024-07-04 17:24 ` Conor Dooley
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=20240704-underuse-preacher-b5bb77f92ebf@spud \
--to=conor@kernel.org \
--cc=baolin.wang7@gmail.com \
--cc=baolin.wang@linux.alibaba.com \
--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=orsonzhai@gmail.com \
--cc=robh@kernel.org \
--cc=stano.jakubek@gmail.com \
--cc=vkoul@kernel.org \
--cc=zhang.lyra@gmail.com \
/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