Thread (12 messages) flat view 12 messages, 4 authors, 2022-09-08
STALE1432d

[PATCH 1/3] dt-bindings: i2c: mv64xxx: Document DMA properties

From: Samuel Holland <samuel@sholland.org>
Date: 2022-08-30 02:08:37
Also in: linux-devicetree, linux-i2c, linux-sunxi, lkml
Subsystem: i2c mv64xxx marvell and allwinner driver, i2c subsystem host drivers, open firmware and flattened device tree bindings, the rest · Maintainers: Gregory CLEMENT, Andi Shyti, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

Allwinner's I2C offload engine includes bidirectional DMA support. Add
the properties for describing this in the devicetree. "dmas" is optional
because not all instances of the controller have their DRQs hooked up.
For example, R_I2C0 and R_I2C1 on V536 have no DRQ number assigned.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---

 .../bindings/i2c/marvell,mv64xxx-i2c.yaml           | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
index 0ec033e48830..63d665a4f9bb 100644
--- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
@@ -66,6 +66,19 @@ properties:
   resets:
     maxItems: 1
 
+  dmas:
+    items:
+      - description: RX DMA Channel
+      - description: TX DMA Channel
+
+  dma-names:
+    items:
+      - const: rx
+      - const: tx
+
+dependencies:
+  dmas: [ dma-names ]
+
 required:
   - compatible
   - reg
-- 
2.35.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help