Commit 9b7c13b8 authored by Abel Vesa's avatar Abel Vesa Committed by Martin K. Petersen
Browse files

scsi: dt-bindings: ufs: qcom: Fix ICE phandle



The check for 'qcom,ice' property is wrong. Fix it by checking using
if-required clause and expand the clocks minItems and maxItems for
platforms where 'qcom,ice' is not required so that it includes platforms
with single reg entry and clocks that do not provide an ICE one.

Fixes: 29a6d121 ("scsi: ufs: dt-bindings: qcom: Add ICE phandle")
Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230623113009.2512206-2-abel.vesa@linaro.org


Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 71e3e85c
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -194,9 +194,8 @@ allOf:
    # TODO: define clock bindings for qcom,msm8994-ufshc

  - if:
      properties:
        qcom,ice:
          maxItems: 1
      required:
        - qcom,ice
    then:
      properties:
        reg:
@@ -207,10 +206,10 @@ allOf:
    else:
      properties:
        reg:
          minItems: 2
          minItems: 1
          maxItems: 2
        clocks:
          minItems: 9
          minItems: 8
          maxItems: 11

unevaluatedProperties: false