[PATCH] dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

50 views
Skip to first unread message

Corentin Labbe

unread,
Sep 2, 2020, 5:17:29 AM9/2/20
to da...@davemloft.net, her...@gondor.apana.org.au, mri...@kernel.org, rob...@kernel.org, ro...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, m.ce...@computer.org, Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset.
Furthermore, there are no need to use items to list only one compatible
in compatible list.

Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS")
Signed-off-by: Corentin Labbe <clabbe....@gmail.com>
---
.../bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
index fc823572bcff..1075f0e75368 100644
--- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
+++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
@@ -23,8 +23,7 @@ properties:
- items:
- const: allwinner,sun7i-a20-crypto
- const: allwinner,sun4i-a10-crypto
- - items:
- - const: allwinner,sun8i-a33-crypto
+ - const: allwinner,sun8i-a33-crypto

reg:
maxItems: 1
@@ -59,7 +58,9 @@ if:
properties:
compatible:
contains:
- const: allwinner,sun6i-a31-crypto
+ oneOf:
+ - const: allwinner,sun6i-a31-crypto
+ - const: allwinner,sun8i-a33-crypto

then:
required:
--
2.26.2

Corentin Labbe

unread,
Sep 3, 2020, 10:55:05 AM9/3/20
to da...@davemloft.net, her...@gondor.apana.org.au, mri...@kernel.org, rob...@kernel.org, ro...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, m.ce...@computer.org, Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset.
Furthermore, there are no need to use items to list only one compatible
in compatible list.

Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS")
Signed-off-by: Corentin Labbe <clabbe....@gmail.com>
---
Change since v1:
- use an enum for adding allwinner,sun8i-a33-crypto to "reset list"

.../bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
index fc823572bcff..279f4a2e1dd7 100644
--- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
+++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
@@ -23,8 +23,7 @@ properties:
- items:
- const: allwinner,sun7i-a20-crypto
- const: allwinner,sun4i-a10-crypto
- - items:
- - const: allwinner,sun8i-a33-crypto
+ - const: allwinner,sun8i-a33-crypto

reg:
maxItems: 1
@@ -59,7 +58,9 @@ if:
properties:
compatible:
contains:
- const: allwinner,sun6i-a31-crypto
+ enum:

Maxime Ripard

unread,
Sep 4, 2020, 5:15:28 AM9/4/20
to Corentin Labbe, da...@davemloft.net, her...@gondor.apana.org.au, rob...@kernel.org, ro...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, m.ce...@computer.org
That's not the proper syntax for an enum, this would be

> + enum:
> + - allwinner,sun6i-a31-crypto
> + - allwinner,sun8i-a33-crypto

Maxime
signature.asc

Corentin Labbe

unread,
Sep 7, 2020, 1:54:50 PM9/7/20
to da...@davemloft.net, her...@gondor.apana.org.au, mri...@kernel.org, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, m.ce...@computer.org, Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset.
Furthermore, there are no need to use items to list only one compatible
in compatible list.

Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS")
Signed-off-by: Corentin Labbe <clabbe....@gmail.com>
---
Change since v2:
- fixed enum syntax

Change since v1:
- use an enum for adding allwinner,sun8i-a33-crypto to "reset list"

.../bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
index fc823572bcff..90c6d039b91b 100644
--- a/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
+++ b/Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
@@ -23,8 +23,7 @@ properties:
- items:
- const: allwinner,sun7i-a20-crypto
- const: allwinner,sun4i-a10-crypto
- - items:
- - const: allwinner,sun8i-a33-crypto
+ - const: allwinner,sun8i-a33-crypto

reg:
maxItems: 1
@@ -59,7 +58,9 @@ if:
properties:
compatible:
contains:
- const: allwinner,sun6i-a31-crypto
+ enum:
+ - allwinner,sun6i-a31-crypto
+ - allwinner,sun8i-a33-crypto

then:
required:
--
2.26.2

Maxime Ripard

unread,
Sep 8, 2020, 2:16:06 AM9/8/20
to Corentin Labbe, da...@davemloft.net, her...@gondor.apana.org.au, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, m.ce...@computer.org
On Mon, Sep 07, 2020 at 07:54:37PM +0200, Corentin Labbe wrote:
> When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset.
> Furthermore, there are no need to use items to list only one compatible
> in compatible list.
>
> Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS")
> Signed-off-by: Corentin Labbe <clabbe....@gmail.com>

Acked-by: Maxime Ripard <mri...@kernel.org>

Thanks!
Maxime
signature.asc

Maxime Ripard

unread,
Sep 8, 2020, 2:20:00 AM9/8/20
to Corentin Labbe, da...@davemloft.net, her...@gondor.apana.org.au, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linux...@googlegroups.com, m.ce...@computer.org
Nevermind, I assumed that there would be crypto patches, but there's
none so I ended up taking it through our tree.

Maxime
signature.asc
Reply all
Reply to author
Forward
0 new messages