Skip to content

Commit

Permalink
dt-bindings: clock: qcom,videocc: correct clocks per variant
Browse files Browse the repository at this point in the history
Different SoCs come with a bit different clock inputs:

  sm8250-mtp.dtb: clock-controller@abf0000: clock-names:0: 'bi_tcxo' was expected
  sm8250-mtp.dtb: clock-controller@abf0000: clock-names: ['iface', 'bi_tcxo', 'bi_tcxo_ao'] is too long

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20221224154152.43272-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Rob Herring committed Jan 17, 2023
1 parent 323b8d0 commit 37483c2
Showing 1 changed file with 55 additions and 4 deletions.
59 changes: 55 additions & 4 deletions Documentation/devicetree/bindings/clock/qcom,videocc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ properties:
- qcom,sm8250-videocc

clocks:
items:
- description: Board XO source
minItems: 1
maxItems: 3

clock-names:
items:
- const: bi_tcxo
minItems: 1
maxItems: 3

'#clock-cells':
const: 1
Expand Down Expand Up @@ -68,6 +68,57 @@ required:
- '#reset-cells'
- '#power-domain-cells'

allOf:
- if:
properties:
compatible:
enum:
- qcom,sc7180-videocc
- qcom,sdm845-videocc
- qcom,sm8150-videocc
then:
properties:
clocks:
items:
- description: Board XO source
clock-names:
items:
- const: bi_tcxo

- if:
properties:
compatible:
enum:
- qcom,sc7280-videocc
then:
properties:
clocks:
items:
- description: Board XO source
- description: Board active XO source
clock-names:
items:
- const: bi_tcxo
- const: bi_tcxo_ao

- if:
properties:
compatible:
enum:
- qcom,sm8250-videocc
then:
properties:
clocks:
items:
- description: AHB
- description: Board XO source
- description: Board active XO source
clock-names:
items:
- const: iface
- const: bi_tcxo
- const: bi_tcxo_ao

additionalProperties: false

examples:
Expand Down

0 comments on commit 37483c2

Please sign in to comment.