Commit 55174159 authored by Chanho Park's avatar Chanho Park Committed by Vinod Koul
Browse files

dt-bindings: phy: samsung,ufs-phy: match clock items



Below error is detected from dtbs_check. exynos7-ufs-phy is required
symbol clocks otherwise only PLL ref clock is required.

clock-names: ['ref_clk'] is too short

Reported-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Suggested-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Suggested-by: default avatarAlim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: default avatarChanho Park <chanho61.park@samsung.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220725000249.30509-1-chanho61.park@samsung.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 533e1330
Loading
Loading
Loading
Loading
+37 −10
Original line number Diff line number Diff line
@@ -27,18 +27,12 @@ properties:
      - const: phy-pma

  clocks:
    items:
      - description: PLL reference clock
      - description: symbol clock for input symbol ( rx0-ch0 symbol clock)
      - description: symbol clock for input symbol ( rx1-ch1 symbol clock)
      - description: symbol clock for output symbol ( tx0 symbol clock)
    minItems: 1
    maxItems: 4

  clock-names:
    items:
      - const: ref_clk
      - const: rx1_symbol_clk
      - const: rx0_symbol_clk
      - const: tx0_symbol_clk
    minItems: 1
    maxItems: 4

  samsung,pmu-syscon:
    $ref: '/schemas/types.yaml#/definitions/phandle-array'
@@ -62,6 +56,39 @@ required:
  - clock-names
  - samsung,pmu-syscon

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: samsung,exynos7-ufs-phy

    then:
      properties:
        clocks:
          items:
            - description: PLL reference clock
            - description: symbol clock for input symbol (rx0-ch0 symbol clock)
            - description: symbol clock for input symbol (rx1-ch1 symbol clock)
            - description: symbol clock for output symbol (tx0 symbol clock)

        clock-names:
          items:
            - const: ref_clk
            - const: rx1_symbol_clk
            - const: rx0_symbol_clk
            - const: tx0_symbol_clk

    else:
      properties:
        clocks:
          items:
            - description: PLL reference clock

        clock-names:
          items:
            - const: ref_clk

additionalProperties: false

examples: