Commit 7fb5aafc authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: ufs: qcom: document SC7180 UFS

Document already upstreamed and used Qualcomm SC7180 UFS host controller
to fix dtbs_check warnings like:

  sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ...
  sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short
  sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240326174632.209745-2-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent ad91c1d7
...@@ -27,6 +27,7 @@ properties: ...@@ -27,6 +27,7 @@ properties:
- qcom,msm8996-ufshc - qcom,msm8996-ufshc
- qcom,msm8998-ufshc - qcom,msm8998-ufshc
- qcom,sa8775p-ufshc - qcom,sa8775p-ufshc
- qcom,sc7180-ufshc
- qcom,sc7280-ufshc - qcom,sc7280-ufshc
- qcom,sc8180x-ufshc - qcom,sc8180x-ufshc
- qcom,sc8280xp-ufshc - qcom,sc8280xp-ufshc
...@@ -43,11 +44,11 @@ properties: ...@@ -43,11 +44,11 @@ properties:
- const: jedec,ufs-2.0 - const: jedec,ufs-2.0
clocks: clocks:
minItems: 8 minItems: 7
maxItems: 11 maxItems: 11
clock-names: clock-names:
minItems: 8 minItems: 7
maxItems: 11 maxItems: 11
dma-coherent: true dma-coherent: true
...@@ -113,6 +114,31 @@ required: ...@@ -113,6 +114,31 @@ required:
allOf: allOf:
- $ref: ufs-common.yaml - $ref: ufs-common.yaml
- if:
properties:
compatible:
contains:
enum:
- qcom,sc7180-ufshc
then:
properties:
clocks:
minItems: 7
maxItems: 7
clock-names:
items:
- const: core_clk
- const: bus_aggr_clk
- const: iface_clk
- const: core_clk_unipro
- const: ref_clk
- const: tx_lane0_sync_clk
- const: rx_lane0_sync_clk
reg:
maxItems: 1
reg-names:
maxItems: 1
- if: - if:
properties: properties:
compatible: compatible:
...@@ -250,7 +276,7 @@ allOf: ...@@ -250,7 +276,7 @@ allOf:
reg: reg:
maxItems: 1 maxItems: 1
clocks: clocks:
minItems: 8 minItems: 7
maxItems: 8 maxItems: 8
else: else:
properties: properties:
...@@ -258,7 +284,7 @@ allOf: ...@@ -258,7 +284,7 @@ allOf:
minItems: 1 minItems: 1
maxItems: 2 maxItems: 2
clocks: clocks:
minItems: 8 minItems: 7
maxItems: 11 maxItems: 11
unevaluatedProperties: false unevaluatedProperties: false
......
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