Skip to content

Commit 15c8363

Browse files
lumagvinodkoul
authored andcommitted
dt-bindings: phy: migrate QMP USB PHY bindings to qcom,sc8280xp-qmp-usb3-uni-phy.yaml
Migrate legacy bindings (described in qcom,msm8996-qmp-usb3-phy.yaml) to qcom,sc8280xp-qmp-usb3-uni-phy.yaml. This removes a need to declare the child PHY node or split resource regions. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230824211952.1397699-2-dmitry.baryshkov@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 8abe979 commit 15c8363

2 files changed

Lines changed: 53 additions & 289 deletions

File tree

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

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

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

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,33 @@ description:
1616
properties:
1717
compatible:
1818
enum:
19+
- qcom,ipq6018-qmp-usb3-phy
20+
- qcom,ipq8074-qmp-usb3-phy
1921
- qcom,ipq9574-qmp-usb3-phy
22+
- qcom,msm8996-qmp-usb3-phy
23+
- qcom,msm8998-qmp-usb3-phy
2024
- qcom,qcm2290-qmp-usb3-phy
2125
- qcom,sa8775p-qmp-usb3-uni-phy
2226
- qcom,sc8280xp-qmp-usb3-uni-phy
27+
- qcom,sdm845-qmp-usb3-uni-phy
28+
- qcom,sdx55-qmp-usb3-uni-phy
29+
- qcom,sdx65-qmp-usb3-uni-phy
2330
- qcom,sm6115-qmp-usb3-phy
31+
- qcom,sm8150-qmp-usb3-uni-phy
32+
- qcom,sm8250-qmp-usb3-uni-phy
33+
- qcom,sm8350-qmp-usb3-uni-phy
34+
2435

2536
reg:
2637
maxItems: 1
2738

2839
clocks:
29-
maxItems: 4
40+
minItems: 4
41+
maxItems: 5
3042

3143
clock-names:
32-
maxItems: 4
44+
minItems: 4
45+
maxItems: 5
3346

3447
power-domains:
3548
maxItems: 1
@@ -74,9 +87,17 @@ allOf:
7487
compatible:
7588
contains:
7689
enum:
90+
- qcom,ipq6018-qmp-usb3-phy
91+
- qcom,ipq8074-qmp-usb3-phy
7792
- qcom,ipq9574-qmp-usb3-phy
93+
- qcom,msm8996-qmp-usb3-phy
94+
- qcom,msm8998-qmp-usb3-phy
95+
- qcom,sdx55-qmp-usb3-uni-phy
96+
- qcom,sdx65-qmp-usb3-uni-phy
7897
then:
7998
properties:
99+
clocks:
100+
maxItems: 4
80101
clock-names:
81102
items:
82103
- const: aux
@@ -109,6 +130,9 @@ allOf:
109130
enum:
110131
- qcom,sa8775p-qmp-usb3-uni-phy
111132
- qcom,sc8280xp-qmp-usb3-uni-phy
133+
- qcom,sm8150-qmp-usb3-uni-phy
134+
- qcom,sm8250-qmp-usb3-uni-phy
135+
- qcom,sm8350-qmp-usb3-uni-phy
112136
then:
113137
properties:
114138
clocks:
@@ -119,6 +143,33 @@ allOf:
119143
- const: ref
120144
- const: com_aux
121145
- const: pipe
146+
147+
- if:
148+
properties:
149+
compatible:
150+
contains:
151+
enum:
152+
- qcom,sdm845-qmp-usb3-uni-phy
153+
then:
154+
properties:
155+
clocks:
156+
maxItems: 5
157+
clock-names:
158+
items:
159+
- const: aux
160+
- const: cfg_ahb
161+
- const: ref
162+
- const: com_aux
163+
- const: pipe
164+
165+
- if:
166+
properties:
167+
compatible:
168+
contains:
169+
enum:
170+
- qcom,sa8775p-qmp-usb3-uni-phy
171+
- qcom,sc8280xp-qmp-usb3-uni-phy
172+
then:
122173
required:
123174
- power-domains
124175

0 commit comments

Comments
 (0)