From: Konrad Dybcio Date: Fri, 11 Aug 2023 20:50:56 +0000 (+0200) Subject: dt-bindings: crypto: qcom,prng: Add SM8450 X-Git-Tag: v6.6.17~4031^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9296bb41275ef2173d2c8b144b808f5e6d18bbe;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Conor Dooley Signed-off-by: Herbert Xu --- diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml index bb42f45..36b0ebd 100644 --- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml @@ -11,9 +11,13 @@ maintainers: properties: compatible: - enum: - - qcom,prng # 8916 etc. - - qcom,prng-ee # 8996 and later using EE + oneOf: + - enum: + - qcom,prng # 8916 etc. + - qcom,prng-ee # 8996 and later using EE + - items: + - const: qcom,sm8450-prng-ee + - const: qcom,prng-ee reg: maxItems: 1 @@ -28,8 +32,18 @@ properties: required: - compatible - reg - - clocks - - clock-names + +allOf: + - if: + not: + properties: + compatible: + contains: + const: qcom,sm8450-prng-ee + then: + required: + - clocks + - clock-names additionalProperties: false