Commit c5b8840c authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bjorn Andersson

dt-bindings: firmware: qcom,scm: narrow clocks and interconnects

SCM has clock inputs and interconnects only on some of the SoCs, so
disallow them inb other cases, which makes the binding stricter.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221122092345.44369-2-krzysztof.kozlowski@linaro.org
parent 8f3945a9
...@@ -82,6 +82,32 @@ properties: ...@@ -82,6 +82,32 @@ properties:
description: TCSR hardware block description: TCSR hardware block
allOf: allOf:
# Clocks
- if:
properties:
compatible:
contains:
enum:
- qcom,scm-apq8064
- qcom,scm-apq8084
- qcom,scm-mdm9607
- qcom,scm-msm8226
- qcom,scm-msm8660
- qcom,scm-msm8916
- qcom,scm-msm8953
- qcom,scm-msm8960
- qcom,scm-msm8974
- qcom,scm-msm8976
- qcom,scm-sm6375
then:
required:
- clocks
- clock-names
else:
properties:
clock-names: false
clocks: false
- if: - if:
properties: properties:
compatible: compatible:
...@@ -100,10 +126,6 @@ allOf: ...@@ -100,10 +126,6 @@ allOf:
clocks: clocks:
maxItems: 1 maxItems: 1
required:
- clocks
- clock-names
- if: - if:
properties: properties:
compatible: compatible:
...@@ -128,9 +150,17 @@ allOf: ...@@ -128,9 +150,17 @@ allOf:
minItems: 3 minItems: 3
maxItems: 3 maxItems: 3
required: # Interconnects
- clocks - if:
- clock-names not:
properties:
compatible:
contains:
enum:
- qcom,scm-sm8450
then:
properties:
interconnects: false
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