Debian Codegraph @

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

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Qualcomm QMP USB4-USB3-DP PHY controller (SC8280XP)
8
9 maintainers:
10 - Vinod Koul <[email protected]>
11
12 description:
13 The QMP PHY controller supports physical layer functionality for a number of
14 controllers on Qualcomm chipsets, such as, PCIe, UFS and USB.
15
16 properties:
17 compatible:
18 oneOf:
19 - items:
20 - enum:
21 - qcom,kaanapali-qmp-usb3-dp-phy
22 - const: qcom,sm8750-qmp-usb3-dp-phy
23 - enum:
24 - qcom,glymur-qmp-usb3-dp-phy
25 - qcom,sar2130p-qmp-usb3-dp-phy
26 - qcom,sc7180-qmp-usb3-dp-phy
27 - qcom,sc7280-qmp-usb3-dp-phy
28 - qcom,sc8180x-qmp-usb3-dp-phy
29 - qcom,sc8280xp-qmp-usb43dp-phy
30 - qcom,sdm845-qmp-usb3-dp-phy
31 - qcom,sm6350-qmp-usb3-dp-phy
32 - qcom,sm8150-qmp-usb3-dp-phy
33 - qcom,sm8250-qmp-usb3-dp-phy
34 - qcom,sm8350-qmp-usb3-dp-phy
35 - qcom,sm8450-qmp-usb3-dp-phy
36 - qcom,sm8550-qmp-usb3-dp-phy
37 - qcom,sm8650-qmp-usb3-dp-phy
38 - qcom,sm8750-qmp-usb3-dp-phy
39 - qcom,x1e80100-qmp-usb3-dp-phy
40
41 reg:
42 maxItems: 1
43
44 clocks:
45 minItems: 4
46 maxItems: 5
47
48 clock-names:
49 minItems: 4
50 items:
51 - const: aux
52 - const: ref
53 - const: com_aux
54 - const: usb3_pipe
55 - const: cfg_ahb
56
57 power-domains:
58 maxItems: 1
59
60 resets:
61 maxItems: 2
62
63 reset-names:
64 items:
65 - const: phy
66 - const: common
67
68 vdda-phy-supply: true
69
70 vdda-pll-supply: true
71
72 refgen-supply: true
73
74 "#clock-cells":
75 const: 1
76 description:
77 See include/dt-bindings/phy/phy-qcom-qmp.h
78
79 "#phy-cells":
80 const: 1
81 description:
82 See include/dt-bindings/phy/phy-qcom-qmp.h
83
84 mode-switch: true
85 orientation-switch: true
86
87 ports:
88 $ref: /schemas/graph.yaml#/properties/ports
89
90 properties:
91 port@0:
92 $ref: /schemas/graph.yaml#/$defs/port-base
93 description: Output endpoint of the PHY
94 unevaluatedProperties: false
95
96 properties:
97 endpoint:
98 $ref: /schemas/graph.yaml#/$defs/endpoint-base
99 unevaluatedProperties: false
100
101 endpoint@0:
102 $ref: /schemas/graph.yaml#/$defs/endpoint-base
103 description: Display Port Output lanes of the PHY when used with static mapping,
104 The entry index is the DP lanes index, and the number is the PHY
105 signal in the order RX0, TX0, TX1, RX1.
106 unevaluatedProperties: false
107
108 properties:
109 # Static lane mappings are mutually exclusive with typec-mux/orientation-mux
110 data-lanes:
111 $ref: /schemas/types.yaml#/definitions/uint32-array
112 minItems: 2
113 maxItems: 4
114 oneOf:
115 - items: # DisplayPort 1 lane, normal orientation
116 - const: 3
117 - items: # DisplayPort 1 lane, flipped orientation
118 - const: 0
119 - items: # DisplayPort 2 lanes, normal orientation
120 - const: 3
121 - const: 2
122 - items: # DisplayPort 2 lanes, flipped orientation
123 - const: 0
124 - const: 1
125 - items: # DisplayPort 4 lanes, normal orientation
126 - const: 3
127 - const: 2
128 - const: 1
129 - const: 0
130 - items: # DisplayPort 4 lanes, flipped orientation
131 - const: 0
132 - const: 1
133 - const: 2
134 - const: 3
135 required:
136 - data-lanes
137
138 endpoint@1:
139 $ref: /schemas/graph.yaml#/$defs/endpoint-base
140 description: USB Output lanes of the PHY when used with static mapping.
141 The entry index is the USB3 lane in the order TX then RX, and the
142 number is the PHY signal in the order RX0, TX0, TX1, RX1.
143 unevaluatedProperties: false
144
145 properties:
146 # Static lane mappings are mutually exclusive with typec-mux/orientation-mux
147 data-lanes:
148 $ref: /schemas/types.yaml#/definitions/uint32-array
149 minItems: 2
150 oneOf:
151 - items: # USB3, normal orientation
152 - const: 1
153 - const: 0
154 - items: # USB3, flipped orientation
155 - const: 2
156 - const: 3
157
158 required:
159 - data-lanes
160
161 port@1:
162 $ref: /schemas/graph.yaml#/properties/port
163 description: Incoming endpoint from the USB controller
164
165 port@2:
166 $ref: /schemas/graph.yaml#/properties/port
167 description: Incoming endpoint from the DisplayPort controller
168
169 required:
170 - compatible
171 - reg
172 - clocks
173 - clock-names
174 - resets
175 - reset-names
176 - vdda-phy-supply
177 - vdda-pll-supply
178 - "#clock-cells"
179 - "#phy-cells"
180
181 allOf:
182 - $ref: /schemas/usb/usb-switch.yaml#
183 - if:
184 properties:
185 compatible:
186 enum:
187 - qcom,sc7180-qmp-usb3-dp-phy
188 - qcom,sdm845-qmp-usb3-dp-phy
189 then:
190 properties:
191 clocks:
192 maxItems: 5
193 clock-names:
194 maxItems: 5
195 else:
196 properties:
197 clocks:
198 maxItems: 4
199 clock-names:
200 maxItems: 4
201
202 - if:
203 properties:
204 compatible:
205 contains:
206 enum:
207 - qcom,glymur-qmp-usb3-dp-phy
208 - qcom,sar2130p-qmp-usb3-dp-phy
209 - qcom,sc8280xp-qmp-usb43dp-phy
210 - qcom,sm6350-qmp-usb3-dp-phy
211 - qcom,sm8550-qmp-usb3-dp-phy
212 - qcom,sm8650-qmp-usb3-dp-phy
213 - qcom,sm8750-qmp-usb3-dp-phy
214 - qcom,x1e80100-qmp-usb3-dp-phy
215 then:
216 required:
217 - power-domains
218 else:
219 properties:
220 power-domains: false
221
222 - if:
223 properties:
224 compatible:
225 enum:
226 - qcom,glymur-qmp-usb3-dp-phy
227 then:
228 required:
229 - refgen-supply
230 else:
231 properties:
232 refgen-supply: false
233
234 additionalProperties: false
235
236 examples:
237 - |
238 #include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
239
240 phy@88eb000 {
241 compatible = "qcom,sc8280xp-qmp-usb43dp-phy";
242 reg = <0x088eb000 0x4000>;
243
244 clocks = <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>,
245 <&gcc GCC_USB4_EUD_CLKREF_CLK>,
246 <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>,
247 <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
248 clock-names = "aux", "ref", "com_aux", "usb3_pipe";
249
250 power-domains = <&gcc USB30_PRIM_GDSC>;
251
252 resets = <&gcc GCC_USB3_PHY_PRIM_BCR>,
253 <&gcc GCC_USB4_DP_PHY_PRIM_BCR>;
254 reset-names = "phy", "common";
255
256 vdda-phy-supply = <&vreg_l9d>;
257 vdda-pll-supply = <&vreg_l4d>;
258
259 orientation-switch;
260
261 #clock-cells = <1>;
262 #phy-cells = <1>;
263
264 ports {
265 #address-cells = <1>;
266 #size-cells = <0>;
267
268 port@0 {
269 reg = <0>;
270
271 endpoint {
272 remote-endpoint = <&typec_connector_ss>;
273 };
274 };
275
276 port@1 {
277 reg = <1>;
278
279 endpoint {
280 remote-endpoint = <&dwc3_ss_out>;
281 };
282 };
283
284 port@2 {
285 reg = <2>;
286
287 endpoint {
288 remote-endpoint = <&mdss_dp_out>;
289 };
290 };
291 };
292 };