mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <Charan.Pedumuru@microchip.com>
To: <robh@kernel.org>
Cc: <Ludovic.Desroches@microchip.com>, <vkoul@kernel.org>,
	<krzk+dt@kernel.org>, <conor+dt@kernel.org>,
	<Nicolas.Ferre@microchip.com>, <alexandre.belloni@bootlin.com>,
	<claudiu.beznea@tuxon.dev>, <Andrei.Simion@microchip.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<dmaengine@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <Durai.ManickamKR@microchip.com>
Subject: Re: [PATCH v3] dt-bindings: dma: convert atmel-dma.txt to YAML
Date: Tue, 28 Jan 2025 06:46:44 +0000	[thread overview]
Message-ID: <7ee1b6cb-f743-4d15-8c90-a3d4fc4eac4d@microchip.com> (raw)
In-Reply-To: <20250127204613.GA820642-robh@kernel.org>

On 28/01/25 02:16, Rob Herring wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On Mon, Jan 27, 2025 at 03:51:58PM +0530, Charan Pedumuru wrote:
>> From: Durai Manickam KR <durai.manickamkr@microchip.com>
>>
>> Add a description, required properties, appropriate compatibles and
>> missing properties like clocks and clock-names which are not defined in
>> the text binding for all the SoCs that are supported by microchip.
>> Update the text binding name `atmel-dma.txt` to
>> `atmel,at91sam9g45-dma.yaml` for the files which reference to
>> `atmel-dma.txt`. Drop Tudor name from maintainers.
>>
>> Signed-off-by: Durai Manickam KR <durai.manickamkr@microchip.com>
>> Signed-off-by: Charan Pedumuru <charan.pedumuru@microchip.com>
>> ---
>> Changes in v3:
>> - Renamed the text binding name `atmel-dma.txt` to
>>    `atmel,at91sam9g45-dma.yaml` for the files which reference to
>>    `atmel-dma.txt`.
>> - Removed `oneOf` and add a blank line in properties.
>> - Dropped Tudor name from maintainers.
>> - Link to v2: https://lore.kernel.org/r/20250123-dma-v1-1-054f1a77e733@microchip.com
>>
>> Changes in v2:
>> - Renamed the yaml file to a compatible.
>> - Removed `|` and description for common properties.
>> - Modified the commit message.
>> - Dropped the label for the node in examples.
>> - Link to v1: https://lore.kernel.org/all/20240215-dmac-v1-1-8f1c6f031c98@microchip.com
>> ---
>>   .../bindings/dma/atmel,at91sam9g45-dma.yaml        | 66 ++++++++++++++++++++++
>>   .../devicetree/bindings/dma/atmel-dma.txt          | 42 --------------
>>   .../devicetree/bindings/misc/atmel-ssc.txt         |  2 +-
>>   MAINTAINERS                                        |  2 +-
>>   4 files changed, 68 insertions(+), 44 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml b/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml
>> new file mode 100644
>> index 000000000000..d6d16869b7db
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/dma/atmel,at91sam9g45-dma.yaml
>> @@ -0,0 +1,66 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/dma/atmel,at91sam9g45-dma.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Atmel Direct Memory Access Controller (DMA)
>> +
>> +maintainers:
>> +  - Ludovic Desroches <ludovic.desroches@microchip.com>
>> +
>> +description:
>> +  The Atmel Direct Memory Access Controller (DMAC) transfers data from a source
>> +  peripheral to a destination peripheral over one or more AMBA buses. One channel
>> +  is required for each source/destination pair. In the most basic configuration,
>> +  the DMAC has one master interface and one channel. The master interface reads
>> +  the data from a source and writes it to a destination. Two AMBA transfers are
>> +  required for each DMAC data transfer. This is also known as a dual-access transfer.
>> +  The DMAC is programmed via the APB interface.
>> +
>> +properties:
>> +  compatible:
>> +    enum:
>> +      - atmel,at91sam9g45-dma
>> +      - atmel,at91sam9rl-dma
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +
>> +  "#dma-cells":
>> +    description:
>> +      Must be <2>, used to represent the number of integer cells in the dmas
>> +      property of client devices.
> You failed to address Conor's comment on this. The above is useless
> because the schema says it is 2 and the description is for any #dma-cells.
>
> What's missing is answering "what do the 2 cells contain exactly?" That
> was captured in this text:

Sure, thanks for pointing it out, I will rewrite the description 
following the below format excluding the phandle part.

>
>> -The three cells in order are:
>> -
>> -1. A phandle pointing to the DMA controller.
>> -2. The memory interface (16 most significant bits), the peripheral interface
>> -(16 less significant bits).
>> -3. Parameters for the at91 DMA configuration register which are device
>> -dependent:
>> -  - bit 7-0: peripheral identifier for the hardware handshaking interface. The
>> -  identifier can be different for tx and rx.
>> -  - bit 11-8: FIFO configuration. 0 for half FIFO, 1 for ALAP, 2 for ASAP.
> Adapt this for the description. (Note it is phandle plus 2 cells, not 3
> cells, so you *can* omit the phandle part.)
>
> Rob


-- 
Best Regards,
Charan.


      reply	other threads:[~2025-01-28  6:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-27 10:21 Charan Pedumuru
2025-01-27 20:46 ` Rob Herring
2025-01-28  6:46   ` Charan.Pedumuru [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=7ee1b6cb-f743-4d15-8c90-a3d4fc4eac4d@microchip.com \
    --to=charan.pedumuru@microchip.com \
    --cc=Andrei.Simion@microchip.com \
    --cc=Durai.ManickamKR@microchip.com \
    --cc=Ludovic.Desroches@microchip.com \
    --cc=Nicolas.Ferre@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®