linux-sunxi.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: crypto: Add optional dma properties
@ 2021-11-16 14:32 Maxime Ripard
  2021-11-16 16:13 ` Jernej Škrabec
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Maxime Ripard @ 2021-11-16 14:32 UTC (permalink / raw)
  To: Herbert Xu, David S . Miller, Rob Herring, Frank Rowand
  Cc: devicetree, Chen-Yu Tsai, Maxime Ripard, Jernej Škrabec,
	linux-sunxi, linux-arm-kernel, linux-crypto

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.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
---
 .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
index 0429fb774f10..dedc99e34ebc 100644
--- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
+++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
@@ -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
 
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: crypto: Add optional dma properties
  2021-11-16 14:32 [PATCH] dt-bindings: crypto: Add optional dma properties Maxime Ripard
@ 2021-11-16 16:13 ` Jernej Škrabec
  2021-11-18 18:19 ` Corentin Labbe
  2021-11-22  9:07 ` Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Jernej Škrabec @ 2021-11-16 16:13 UTC (permalink / raw)
  To: Herbert Xu, David S . Miller, Rob Herring, Frank Rowand, Maxime Ripard
  Cc: devicetree, Chen-Yu Tsai, Maxime Ripard, linux-sunxi,
	linux-arm-kernel, linux-crypto

Hi Maxime,

Dne torek, 16. november 2021 ob 15:32:55 CET je Maxime Ripard napisal(a):
> 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.
> 
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej

> ---
>  .../bindings/crypto/allwinner,sun4i-a10-crypto.yaml    | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-
crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-
crypto.yaml
> index 0429fb774f10..dedc99e34ebc 100644
> --- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-
crypto.yaml
> +++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-
crypto.yaml
> @@ -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
>  
> -- 
> 2.33.1
> 
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: crypto: Add optional dma properties
  2021-11-16 14:32 [PATCH] dt-bindings: crypto: Add optional dma properties Maxime Ripard
  2021-11-16 16:13 ` Jernej Škrabec
@ 2021-11-18 18:19 ` Corentin Labbe
  2021-11-22  9:07 ` Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Corentin Labbe @ 2021-11-18 18:19 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Herbert Xu, David S . Miller, Rob Herring, Frank Rowand,
	devicetree, Chen-Yu Tsai, Jernej Škrabec, linux-sunxi,
	linux-arm-kernel, linux-crypto

Le Tue, Nov 16, 2021 at 03:32:55PM +0100, Maxime Ripard a écrit :
> 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.
> 
> Signed-off-by: Maxime Ripard <maxime@cerno.tech>

Good timing, I started to work on adding DMA to sun4i-ss.

Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>

Thanks
Regards

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dt-bindings: crypto: Add optional dma properties
  2021-11-16 14:32 [PATCH] dt-bindings: crypto: Add optional dma properties Maxime Ripard
  2021-11-16 16:13 ` Jernej Škrabec
  2021-11-18 18:19 ` Corentin Labbe
@ 2021-11-22  9:07 ` Maxime Ripard
  2 siblings, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2021-11-22  9:07 UTC (permalink / raw)
  To: Frank Rowand, David S . Miller, Rob Herring, Herbert Xu, Maxime Ripard
  Cc: linux-arm-kernel, linux-crypto, devicetree, linux-sunxi,
	Chen-Yu Tsai, Jernej Škrabec

On Tue, 16 Nov 2021 15:32:55 +0100, Maxime Ripard wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-22  9:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 14:32 [PATCH] dt-bindings: crypto: Add optional dma properties Maxime Ripard
2021-11-16 16:13 ` Jernej Škrabec
2021-11-18 18:19 ` Corentin Labbe
2021-11-22  9:07 ` Maxime Ripard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).