Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Samuel Holland <samuel@sholland.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Samuel Holland and committed by
Herbert Xu
197286f8 55ef6c81

+25 -8
+25 -8
Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml
··· 14 14 enum: 15 15 - allwinner,sun8i-h3-crypto 16 16 - allwinner,sun8i-r40-crypto 17 + - allwinner,sun20i-d1-crypto 17 18 - allwinner,sun50i-a64-crypto 18 19 - allwinner,sun50i-h5-crypto 19 20 - allwinner,sun50i-h6-crypto ··· 30 29 - description: Bus clock 31 30 - description: Module clock 32 31 - description: MBus clock 32 + - description: TRNG clock (RC oscillator) 33 33 minItems: 2 34 34 35 35 clock-names: ··· 38 36 - const: bus 39 37 - const: mod 40 38 - const: ram 39 + - const: trng 41 40 minItems: 2 42 41 43 42 resets: ··· 47 44 if: 48 45 properties: 49 46 compatible: 50 - const: allwinner,sun50i-h6-crypto 47 + enum: 48 + - allwinner,sun20i-d1-crypto 51 49 then: 52 50 properties: 53 51 clocks: 54 - minItems: 3 52 + minItems: 4 55 53 clock-names: 56 - minItems: 3 54 + minItems: 4 57 55 else: 58 - properties: 59 - clocks: 60 - maxItems: 2 61 - clock-names: 62 - maxItems: 2 56 + if: 57 + properties: 58 + compatible: 59 + const: allwinner,sun50i-h6-crypto 60 + then: 61 + properties: 62 + clocks: 63 + minItems: 3 64 + maxItems: 3 65 + clock-names: 66 + minItems: 3 67 + maxItems: 3 68 + else: 69 + properties: 70 + clocks: 71 + maxItems: 2 72 + clock-names: 73 + maxItems: 2 63 74 64 75 required: 65 76 - compatible