Skip to contentSkip to conversation

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

PATCH In review Corentin Labbe 2 participants 3 messages Sep 7, 2020 – Sep 8, 2020

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

PATCH v3 1/1 dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

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

---
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(-)
Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml +4 -3
index fc823572bcff..90c6d039b91b 100644
@@ -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:
Signature · 1 line
2.26.2
#2 lore raw
Quoted 9 lines · Maxime Ripard
Quoted 6 lines · 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")

Nevermind, I assumed that there would be crypto patches, but there's none so I ended up taking it through our tree.

Maxime