Skip to content

Commit dc5cb63

Browse files
lumagvinodkoul
authored andcommitted
dt-bindings: phy: migrate QMP UFS PHY bindings to qcom,sc8280xp-qmp-ufs-phy.yaml
Migrate legacy bindings (described in qcom,msm8996-qmp-ufs-phy.yaml) to qcom,sc8280xp-qmp-ufs-phy.yaml. This removes a need to declare the child PHY node or split resource regions. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent fd097f4 commit dc5cb63

File tree

2 files changed

+45
-231
lines changed

2 files changed

+45
-231
lines changed

Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-ufs-phy.yaml

Lines changed: 0 additions & 228 deletions
This file was deleted.

Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,31 @@ description:
1616
properties:
1717
compatible:
1818
enum:
19+
- qcom,msm8996-qmp-ufs-phy
20+
- qcom,msm8998-qmp-ufs-phy
1921
- qcom,sa8775p-qmp-ufs-phy
22+
- qcom,sc8180x-qmp-ufs-phy
2023
- qcom,sc8280xp-qmp-ufs-phy
24+
- qcom,sdm845-qmp-ufs-phy
25+
- qcom,sm6115-qmp-ufs-phy
2126
- qcom,sm6125-qmp-ufs-phy
27+
- qcom,sm6350-qmp-ufs-phy
2228
- qcom,sm7150-qmp-ufs-phy
29+
- qcom,sm8150-qmp-ufs-phy
30+
- qcom,sm8250-qmp-ufs-phy
31+
- qcom,sm8350-qmp-ufs-phy
32+
- qcom,sm8450-qmp-ufs-phy
2333
- qcom,sm8550-qmp-ufs-phy
2434

2535
reg:
2636
maxItems: 1
2737

2838
clocks:
29-
minItems: 2
39+
minItems: 1
3040
maxItems: 3
3141

3242
clock-names:
33-
minItems: 2
43+
minItems: 1
3444
items:
3545
- const: ref
3646
- const: ref_aux
@@ -75,19 +85,51 @@ allOf:
7585
contains:
7686
enum:
7787
- qcom,sa8775p-qmp-ufs-phy
88+
- qcom,sm8450-qmp-ufs-phy
7889
then:
7990
properties:
8091
clocks:
8192
minItems: 3
8293
clock-names:
8394
minItems: 3
84-
else:
95+
96+
- if:
97+
properties:
98+
compatible:
99+
contains:
100+
enum:
101+
- qcom,msm8998-qmp-ufs-phy
102+
- qcom,sc8180x-qmp-ufs-phy
103+
- qcom,sc8280xp-qmp-ufs-phy
104+
- qcom,sdm845-qmp-ufs-phy
105+
- qcom,sm6115-qmp-ufs-phy
106+
- qcom,sm6125-qmp-ufs-phy
107+
- qcom,sm6350-qmp-ufs-phy
108+
- qcom,sm7150-qmp-ufs-phy
109+
- qcom,sm8150-qmp-ufs-phy
110+
- qcom,sm8250-qmp-ufs-phy
111+
- qcom,sm8350-qmp-ufs-phy
112+
- qcom,sm8550-qmp-ufs-phy
113+
then:
85114
properties:
86115
clocks:
87116
maxItems: 2
88117
clock-names:
89118
maxItems: 2
90119

120+
- if:
121+
properties:
122+
compatible:
123+
contains:
124+
enum:
125+
- qcom,msm8996-qmp-ufs-phy
126+
then:
127+
properties:
128+
clocks:
129+
maxItems: 1
130+
clock-names:
131+
maxItems: 1
132+
91133
additionalProperties: false
92134

93135
examples:

0 commit comments

Comments
 (0)