Commit 197286f8 authored by Samuel Holland's avatar Samuel Holland Committed by Herbert Xu

dt-bindings: crypto: sun8i-ce: Add compatible for D1

D1 has a crypto engine similar to the one in other Allwinner SoCs.
Like H6, it has a separate MBUS clock gate.

It also requires the internal RC oscillator to be enabled for the TRNG
to return data, presumably because noise from the oscillator is used as
an entropy source. This is likely the case for earlier variants as well,
but it really only matters for H616 and newer SoCs, as H6 provides no
way to disable the internal oscillator.
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 55ef6c81
...@@ -14,6 +14,7 @@ properties: ...@@ -14,6 +14,7 @@ properties:
enum: enum:
- allwinner,sun8i-h3-crypto - allwinner,sun8i-h3-crypto
- allwinner,sun8i-r40-crypto - allwinner,sun8i-r40-crypto
- allwinner,sun20i-d1-crypto
- allwinner,sun50i-a64-crypto - allwinner,sun50i-a64-crypto
- allwinner,sun50i-h5-crypto - allwinner,sun50i-h5-crypto
- allwinner,sun50i-h6-crypto - allwinner,sun50i-h6-crypto
...@@ -29,6 +30,7 @@ properties: ...@@ -29,6 +30,7 @@ properties:
- description: Bus clock - description: Bus clock
- description: Module clock - description: Module clock
- description: MBus clock - description: MBus clock
- description: TRNG clock (RC oscillator)
minItems: 2 minItems: 2
clock-names: clock-names:
...@@ -36,6 +38,7 @@ properties: ...@@ -36,6 +38,7 @@ properties:
- const: bus - const: bus
- const: mod - const: mod
- const: ram - const: ram
- const: trng
minItems: 2 minItems: 2
resets: resets:
...@@ -44,19 +47,33 @@ properties: ...@@ -44,19 +47,33 @@ properties:
if: if:
properties: properties:
compatible: compatible:
const: allwinner,sun50i-h6-crypto enum:
- allwinner,sun20i-d1-crypto
then: then:
properties: properties:
clocks: clocks:
minItems: 3 minItems: 4
clock-names: clock-names:
minItems: 3 minItems: 4
else: else:
properties: if:
clocks: properties:
maxItems: 2 compatible:
clock-names: const: allwinner,sun50i-h6-crypto
maxItems: 2 then:
properties:
clocks:
minItems: 3
maxItems: 3
clock-names:
minItems: 3
maxItems: 3
else:
properties:
clocks:
maxItems: 2
clock-names:
maxItems: 2
required: required:
- compatible - compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment