File tree Expand file tree Collapse file tree 3 files changed +138
-0
lines changed Expand file tree Collapse file tree 3 files changed +138
-0
lines changed Original file line number Diff line number Diff line change 267
267
rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;
268
268
};
269
269
};
270
+
271
+ vbus_host {
272
+ usb1_en_oc: usb1-en-oc {
273
+ rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
274
+ };
275
+ };
276
+
277
+ vbus_typec {
278
+ usb0_en_oc: usb0-en-oc {
279
+ rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
280
+ };
281
+ };
282
+ };
283
+
284
+ &usbphy {
285
+ status = "okay";
286
+ };
287
+
288
+ &usb_host0_ehci {
289
+ status = "okay";
290
+ };
291
+
292
+ &usb_host0_ohci {
293
+ status = "okay";
294
+ };
295
+
296
+ &usb_host1 {
297
+ status = "okay";
298
+ };
299
+
300
+ &usb_otg {
301
+ status = "okay";
302
+ };
303
+
304
+ &vbus_host {
305
+ enable-active-high;
306
+ gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
307
+ };
308
+
309
+ &vbus_typec {
310
+ enable-active-high;
311
+ gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */
270
312
};
Original file line number Diff line number Diff line change 33
33
regulator-max-microvolt = <5000000>;
34
34
vin-supply = <&vcc12v_dcin>;
35
35
};
36
+
37
+ vbus_host: vbus-host {
38
+ compatible = "regulator-fixed";
39
+ pinctrl-names = "default";
40
+ pinctrl-0 = <&usb1_en_oc>;
41
+ regulator-name = "vbus_host"; /* HOST-5V */
42
+ regulator-always-on;
43
+ vin-supply = <&vcc5v0_sys>;
44
+ };
45
+
46
+ vbus_typec: vbus-typec {
47
+ compatible = "regulator-fixed";
48
+ pinctrl-names = "default";
49
+ pinctrl-0 = <&usb0_en_oc>;
50
+ regulator-name = "vbus_typec";
51
+ regulator-always-on;
52
+ vin-supply = <&vcc5v0_sys>;
53
+ };
36
54
};
37
55
38
56
&gmac {
Original file line number Diff line number Diff line change 304
304
rockchip,pins = <1 RK_PC2 0 &pcfg_pull_up>;
305
305
};
306
306
};
307
+
308
+ vbus_host {
309
+ usb1_en_oc: usb1-en-oc {
310
+ rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
311
+ };
312
+ };
313
+
314
+ vbus_typec {
315
+ usb0_en_oc: usb0-en-oc {
316
+ rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
317
+ };
318
+ };
307
319
};
308
320
309
321
&pmu_io_domains {
324
336
max-frequency = <150000000>;
325
337
};
326
338
339
+ &tcphy0 {
340
+ status = "okay";
341
+ };
342
+
327
343
&tsadc {
328
344
rockchip,hw-tshut-mode = <1>;
329
345
rockchip,hw-tshut-polarity = <1>;
330
346
status = "okay";
331
347
};
348
+
349
+ &u2phy0 {
350
+ status = "okay";
351
+
352
+ u2phy0_otg: otg-port {
353
+ phy-supply = <&vbus_typec>;
354
+ status = "okay";
355
+ };
356
+
357
+ u2phy0_host: host-port {
358
+ phy-supply = <&vbus_host>;
359
+ status = "okay";
360
+ };
361
+ };
362
+
363
+
364
+ &u2phy1 {
365
+ status = "okay";
366
+
367
+ u2phy1_host: host-port {
368
+ phy-supply = <&vbus_host>;
369
+ status = "okay";
370
+ };
371
+ };
372
+
373
+ &usb_host0_ehci {
374
+ status = "okay";
375
+ };
376
+
377
+ &usb_host0_ohci {
378
+ status = "okay";
379
+ };
380
+
381
+ &usb_host1_ehci {
382
+ status = "okay";
383
+ };
384
+
385
+ &usb_host1_ohci {
386
+ status = "okay";
387
+ };
388
+
389
+ &usbdrd3_0 {
390
+ status = "okay";
391
+ };
392
+
393
+ &usbdrd_dwc3_0 {
394
+ status = "okay";
395
+ };
396
+
397
+ &vbus_host {
398
+ enable-active-high;
399
+ gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
400
+ pinctrl-names = "default";
401
+ pinctrl-0 = <&usb1_en_oc>;
402
+ };
403
+
404
+ &vbus_typec {
405
+ enable-active-high;
406
+ gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */
407
+ pinctrl-names = "default";
408
+ pinctrl-0 = <&usb0_en_oc>;
409
+ };
You can’t perform that action at this time.
0 commit comments