Skip to content

Commit b9296bb

Browse files
konradybcioherbertx
authored andcommitted
dt-bindings: crypto: qcom,prng: Add SM8450
SM8450's PRNG does not require a core clock reference. Add a new compatible with a qcom,prng-ee fallback and handle that. Signed-off-by: Konrad Dybcio <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f9fc1ec commit b9296bb

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Documentation/devicetree/bindings/crypto/qcom,prng.yaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
enum:
15-
- qcom,prng # 8916 etc.
16-
- qcom,prng-ee # 8996 and later using EE
14+
oneOf:
15+
- enum:
16+
- qcom,prng # 8916 etc.
17+
- qcom,prng-ee # 8996 and later using EE
18+
- items:
19+
- const: qcom,sm8450-prng-ee
20+
- const: qcom,prng-ee
1721

1822
reg:
1923
maxItems: 1
@@ -28,8 +32,18 @@ properties:
2832
required:
2933
- compatible
3034
- reg
31-
- clocks
32-
- clock-names
35+
36+
allOf:
37+
- if:
38+
not:
39+
properties:
40+
compatible:
41+
contains:
42+
const: qcom,sm8450-prng-ee
43+
then:
44+
required:
45+
- clocks
46+
- clock-names
3347

3448
additionalProperties: false
3549

0 commit comments

Comments
 (0)