Skip to contentSkip to conversation

dt-bindings: crypto: Add optional dma properties

PATCH Applied Maxime Ripard 3 participants 4 messages Nov 16, 2021 – Nov 22, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: crypto: Add optional dma properties

Some platforms, like the v3s, have DMA channels assigned to the crypto engine, which were in the DTSI but were never documented.

Let's make sure they are.

---
 .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml    | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml +10 -0
index 0429fb774f10..dedc99e34ebc 100644
@@ -44,6 +44,16 @@ properties:
       - const: ahb
       - const: mod
 
+  dmas:
+    items:
+      - description: RX DMA Channel
+      - description: TX DMA Channel
+
+  dma-names:
+    items:
+      - const: rx
+      - const: tx
+
   resets:
     maxItems: 1
 
Signature · 1 line
2.33.1
maintainer Acked-by on v1 1/1
#1 lore raw

Hi Maxime,

Dne torek, 16. november 2021 ob 15:32:55 CET je Maxime Ripard napisal(a):

Quoted 6 lines

Some platforms, like the v3s, have DMA channels assigned to the crypto engine, which were in the DTSI but were never documented.

Let's make sure they are.

Best regards,
Jernej

Review

Quoted 5 lines
---
 .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml    | 10 ++++++++++
 1 file changed, 10 insertions(+)
(quoted diff) +0 -0

crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10- crypto.yaml

Quoted 2 lines

index 0429fb774f10..dedc99e34ebc 100644
--- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-

crypto.yaml

Quoted 1 line

+++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-

crypto.yaml

Quoted 21 lines
Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml +10 -0
@@ -44,6 +44,16 @@ properties:
       - const: ahb
       - const: mod
 
+  dmas:
+    items:
+      - description: RX DMA Channel
+      - description: TX DMA Channel
+
+  dma-names:
+    items:
+      - const: rx
+      - const: tx
+
   resets:
     maxItems: 1
 
Signature · 1 line
2.33.1
author Applied
#3 lore raw
In reply to Maxime Ripard
Quoted 6 lines · Maxime Ripard

Some platforms, like the v3s, have DMA channels assigned to the crypto engine, which were in the DTSI but were never documented.

Let's make sure they are.

Applied to sunxi/linux.git (sunxi/dt-for-5.17).

Thanks!
Maxime