Skip to content

Commit

Permalink
dt-bindings: qcom-qce: Add compatibles for SM6115 and QCM2290
Browse files Browse the repository at this point in the history
The core clock for the Crypto Engine block on Qualcomm SoCs SM6115 and
QCM2290 are provided via the RPM block.

So mark the compatibles for these SoCs to indicate that only 'core'
clock is required for such SoCs.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Bhupesh Sharma authored and Herbert Xu committed Jun 2, 2023
1 parent b3b266f commit 1d217fa
Showing 1 changed file with 35 additions and 9 deletions.
44 changes: 35 additions & 9 deletions Documentation/devicetree/bindings/crypto/qcom-qce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ properties:
- qcom,ipq6018-qce
- qcom,ipq8074-qce
- qcom,msm8996-qce
- qcom,qcm2290-qce
- qcom,sdm845-qce
- qcom,sm6115-qce
- const: qcom,ipq4019-qce
- const: qcom,qce

Expand All @@ -52,16 +54,12 @@ properties:
maxItems: 1

clocks:
items:
- description: iface clocks register interface.
- description: bus clocks data transfer interface.
- description: core clocks rest of the crypto block.
minItems: 1
maxItems: 3

clock-names:
items:
- const: iface
- const: bus
- const: core
minItems: 1
maxItems: 3

iommus:
minItems: 1
Expand Down Expand Up @@ -95,9 +93,37 @@ allOf:
enum:
- qcom,crypto-v5.1
- qcom,crypto-v5.4
- qcom,ipq4019-qce
- qcom,ipq6018-qce
- qcom,ipq8074-qce
- qcom,msm8996-qce
- qcom,sdm845-qce
then:
properties:
clocks:
maxItems: 3
clock-names:
items:
- const: iface
- const: bus
- const: core
required:
- clocks
- clock-names

- if:
properties:
compatible:
contains:
enum:
- qcom,qcm2290-qce
- qcom,sm6115-qce
then:
properties:
clocks:
maxItems: 1
clock-names:
items:
- const: core
required:
- clocks
- clock-names
Expand Down

0 comments on commit 1d217fa

Please sign in to comment.