2021-11-16 14:33:06

by Maxime Ripard

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Maxime Ripard <[email protected]>
---
.../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



2021-11-16 16:13:31

by Jernej Škrabec

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: crypto: Add optional dma properties

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 <[email protected]>

Acked-by: Jernej Skrabec <[email protected]>

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
>
>



2021-11-18 18:19:57

by Corentin Labbe

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: crypto: Add optional dma properties

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 <[email protected]>

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

Acked-by: Corentin Labbe <[email protected]>

Thanks
Regards

2021-11-22 09:08:11

by Maxime Ripard

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: crypto: Add optional dma properties

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