From: Dharma Balasubiramani <dharma.b@microchip.com>
To: Ludovic Desroches <ludovic.desroches@microchip.com>,
Vinod Koul <vkoul@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Charan Pedumuru <charan.pedumuru@microchip.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
<dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>,
"Dharma Balasubiramani" <dharma.b@microchip.com>,
Tony Han <tony.han@microchip.com>,
Cristian Birsan <cristian.birsan@microchip.com>
Subject: [PATCH 2/2] dt-bindings: dma: at_xdmac: document dma-channels property
Date: Wed, 5 Feb 2025 11:17:03 +0530 [thread overview]
Message-ID: <20250205-mchp-dma-v1-2-124b639d5afe@microchip.com> (raw)
In-Reply-To: <20250205-mchp-dma-v1-0-124b639d5afe@microchip.com>
Add document for the property "dma-channels" for XDMA controller.
Also reorder properties to group related items together.
Signed-off-by: Tony Han <tony.han@microchip.com>
Reviewed-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
---
.../devicetree/bindings/dma/atmel,sama5d4-dma.yaml | 26 ++++++++++++++--------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/atmel,sama5d4-dma.yaml b/Documentation/devicetree/bindings/dma/atmel,sama5d4-dma.yaml
index 9ca1c5d1f00f..b9fda35d2138 100644
--- a/Documentation/devicetree/bindings/dma/atmel,sama5d4-dma.yaml
+++ b/Documentation/devicetree/bindings/dma/atmel,sama5d4-dma.yaml
@@ -33,15 +33,6 @@ properties:
- microchip,sam9x7-dma
- const: atmel,sama5d4-dma
- "#dma-cells":
- description: |
- Represents the number of integer cells in the `dmas` property of client
- devices. The single cell specifies the channel configuration register:
- - bit 13: SIF (Source Interface Identifier) for memory interface.
- - bit 14: DIF (Destination Interface Identifier) for peripheral interface.
- - bit 30-24: PERID (Peripheral Identifier).
- const: 1
-
reg:
maxItems: 1
@@ -54,6 +45,23 @@ properties:
clock-names:
const: dma_clk
+ "#dma-cells":
+ description: |
+ Represents the number of integer cells in the `dmas` property of client
+ devices. The single cell specifies the channel configuration register:
+ - bit 13: SIF (Source Interface Identifier) for memory interface.
+ - bit 14: DIF (Destination Interface Identifier) for peripheral interface.
+ - bit 30-24: PERID (Peripheral Identifier).
+ const: 1
+
+ dma-channels:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Represents the number of DMA channels available in XDMA controller. This
+ property is required when the channel count cannot be read from the
+ XDMAC_GTYPE register (which occurs when accessing from non-secure world
+ on certain devices).
+
required:
- compatible
- reg
--
2.43.0
next prev parent reply other threads:[~2025-02-05 5:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 5:47 [PATCH 0/2] dmaengine: at_xdmac: retrieve DMA channels from device tree Dharma Balasubiramani
2025-02-05 5:47 ` [PATCH 1/2] dmaengine: at_xdmac: get the number of " Dharma Balasubiramani
2025-02-05 5:47 ` Dharma Balasubiramani [this message]
2025-02-05 11:40 ` [PATCH 2/2] dt-bindings: dma: at_xdmac: document dma-channels property Krzysztof Kozlowski
2025-02-05 13:58 ` Dharma.B
2025-02-05 14:16 ` Krzysztof Kozlowski
2025-02-06 2:34 ` Dharma.B
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=20250205-mchp-dma-v1-2-124b639d5afe@microchip.com \
--to=dharma.b@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=charan.pedumuru@microchip.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=cristian.birsan@microchip.com \
--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=ludovic.desroches@microchip.com \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.org \
--cc=tony.han@microchip.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