Skip to content

Commit 7fb5aaf

Browse files
krzkrobherring
authored andcommitted
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: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent ad91c1d commit 7fb5aaf

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

Documentation/devicetree/bindings/ufs/qcom,ufs.yaml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ properties:
2727
- qcom,msm8996-ufshc
2828
- qcom,msm8998-ufshc
2929
- qcom,sa8775p-ufshc
30+
- qcom,sc7180-ufshc
3031
- qcom,sc7280-ufshc
3132
- qcom,sc8180x-ufshc
3233
- qcom,sc8280xp-ufshc
@@ -43,11 +44,11 @@ properties:
4344
- const: jedec,ufs-2.0
4445

4546
clocks:
46-
minItems: 8
47+
minItems: 7
4748
maxItems: 11
4849

4950
clock-names:
50-
minItems: 8
51+
minItems: 7
5152
maxItems: 11
5253

5354
dma-coherent: true
@@ -113,6 +114,31 @@ required:
113114
allOf:
114115
- $ref: ufs-common.yaml
115116

117+
- if:
118+
properties:
119+
compatible:
120+
contains:
121+
enum:
122+
- qcom,sc7180-ufshc
123+
then:
124+
properties:
125+
clocks:
126+
minItems: 7
127+
maxItems: 7
128+
clock-names:
129+
items:
130+
- const: core_clk
131+
- const: bus_aggr_clk
132+
- const: iface_clk
133+
- const: core_clk_unipro
134+
- const: ref_clk
135+
- const: tx_lane0_sync_clk
136+
- const: rx_lane0_sync_clk
137+
reg:
138+
maxItems: 1
139+
reg-names:
140+
maxItems: 1
141+
116142
- if:
117143
properties:
118144
compatible:
@@ -250,15 +276,15 @@ allOf:
250276
reg:
251277
maxItems: 1
252278
clocks:
253-
minItems: 8
279+
minItems: 7
254280
maxItems: 8
255281
else:
256282
properties:
257283
reg:
258284
minItems: 1
259285
maxItems: 2
260286
clocks:
261-
minItems: 8
287+
minItems: 7
262288
maxItems: 11
263289

264290
unevaluatedProperties: false

0 commit comments

Comments
 (0)