Commit 75d439ed authored by Robert Marko's avatar Robert Marko Committed by Jassi Brar
Browse files

dt-bindings: mailbox: qcom: correct clocks for IPQ6018 and IPQ8074



IPQ6018 APSS driver is registered by APCS as they share the same register
space, and it uses "pll" and "xo" as inputs.

Correct the allowed clocks for IPQ6018 and IPQ8074 as they share the same
driver to allow "pll" and "xo" as clock-names.

Signed-off-by: default avatarRobert Marko <robimarko@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent f3d96129
Loading
Loading
Loading
Loading
+34 −12
Original line number Diff line number Diff line
@@ -45,10 +45,7 @@ properties:
  clocks:
    description: phandles to the parent clocks of the clock driver
    minItems: 2
    items:
      - description: primary pll parent of the clock driver
      - description: auxiliary parent
      - description: reference clock
    maxItems: 3

  '#mbox-cells':
    const: 1
@@ -58,10 +55,7 @@ properties:

  clock-names:
    minItems: 2
    items:
      - const: pll
      - const: aux
      - const: ref
    maxItems: 3

required:
  - compatible
@@ -75,8 +69,6 @@ allOf:
      properties:
        compatible:
          enum:
            - qcom,ipq6018-apcs-apps-global
            - qcom,ipq8074-apcs-apps-global
            - qcom,msm8916-apcs-kpss-global
            - qcom,msm8994-apcs-kpss-global
            - qcom,msm8996-apcs-hmss-global
@@ -90,7 +82,13 @@ allOf:
    then:
      properties:
        clocks:
          maxItems: 2
          items:
            - description: primary pll parent of the clock driver
            - description: auxiliary parent
        clock-names:
          items:
            - const: pll
            - const: aux
  - if:
      properties:
        compatible:
@@ -99,7 +97,31 @@ allOf:
    then:
      properties:
        clocks:
          maxItems: 3
          items:
            - description: primary pll parent of the clock driver
            - description: auxiliary parent
            - description: reference clock
        clock-names:
          items:
            - const: pll
            - const: aux
            - const: ref
  - if:
      properties:
        compatible:
          enum:
            - qcom,ipq6018-apcs-apps-global
            - qcom,ipq8074-apcs-apps-global
    then:
      properties:
        clocks:
          items:
            - description: primary pll parent of the clock driver
            - description: XO clock
        clock-names:
          items:
            - const: pll
            - const: xo
  - if:
      properties:
        compatible: