|
104 | 104 | vcc5v0_otg: vcc5v0-otg-regulator { |
105 | 105 | compatible = "regulator-fixed"; |
106 | 106 | regulator-name = "vcc5v0_otg"; |
| 107 | + regulator-boot-on; |
| 108 | + regulator-always-on; |
107 | 109 | regulator-min-microvolt = <5000000>; |
108 | 110 | regulator-max-microvolt = <5000000>; |
109 | 111 | enable-active-high; |
|
401 | 403 | &i2c6 { |
402 | 404 | status = "okay"; |
403 | 405 |
|
404 | | - usbc0: usb-typec@22 { |
405 | | - compatible = "fcs,fusb302"; |
406 | | - reg = <0x22>; |
407 | | - interrupt-parent = <&gpio3>; |
408 | | - interrupts = <RK_PC7 IRQ_TYPE_LEVEL_LOW>; |
409 | | - pinctrl-names = "default"; |
410 | | - pinctrl-0 = <&usbc0_int>; |
411 | | - vbus-supply = <&vcc5v0_otg>; |
412 | | - status = "okay"; |
413 | | - |
414 | | - connector { |
415 | | - compatible = "usb-c-connector"; |
416 | | - data-role = "dual"; |
417 | | - label = "USB-C"; |
418 | | - op-sink-microwatt = <1000000>; |
419 | | - /* fusb302 supports PD Rev 2.0 Ver 1.2 */ |
420 | | - pd-revision = /bits/ 8 <0x2 0x0 0x1 0x2>; |
421 | | - power-role = "dual"; |
422 | | - sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; |
423 | | - source-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)>; |
424 | | - try-power-role = "source"; |
425 | | - typec-power-opmode = "1.5A"; |
426 | | - |
427 | | - ports { |
428 | | - #address-cells = <1>; |
429 | | - #size-cells = <0>; |
430 | | - |
431 | | - port@0 { |
432 | | - reg = <0>; |
433 | | - usbc0_hs: endpoint { |
434 | | - remote-endpoint = <&usb_host0_xhci_drd_sw>; |
435 | | - }; |
436 | | - }; |
437 | | - |
438 | | - port@1 { |
439 | | - reg = <1>; |
440 | | - usbc0_ss: endpoint { |
441 | | - remote-endpoint = <&usbdp_phy0_typec_ss>; |
442 | | - }; |
443 | | - }; |
444 | | - |
445 | | - port@2 { |
446 | | - reg = <2>; |
447 | | - usbc0_sbu: endpoint { |
448 | | - remote-endpoint = <&usbdp_phy0_typec_sbu>; |
449 | | - }; |
450 | | - }; |
451 | | - }; |
452 | | - }; |
453 | | - }; |
454 | | - |
455 | 406 | hym8563: rtc@51 { |
456 | 407 | compatible = "haoyu,hym8563"; |
457 | 408 | reg = <0x51>; |
|
621 | 572 | }; |
622 | 573 |
|
623 | 574 | usb-typec { |
624 | | - usbc0_int: usbc0-int { |
| 575 | + usbc0_int: usbc0-int { // @TODO missing fusb302 |
625 | 576 | rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; |
626 | 577 | }; |
627 | 578 |
|
|
1031 | 982 | }; |
1032 | 983 | }; |
1033 | 984 |
|
1034 | | -&usbdp_phy0 { |
1035 | | - mode-switch; |
1036 | | - orientation-switch; |
1037 | | - sbu1-dc-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; |
1038 | | - sbu2-dc-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; |
1039 | | - status = "okay"; |
1040 | | - |
1041 | | - port { |
1042 | | - #address-cells = <1>; |
1043 | | - #size-cells = <0>; |
1044 | | - |
1045 | | - usbdp_phy0_typec_ss: endpoint@0 { |
1046 | | - reg = <0>; |
1047 | | - remote-endpoint = <&usbc0_ss>; |
1048 | | - }; |
1049 | | - |
1050 | | - usbdp_phy0_typec_sbu: endpoint@1 { |
1051 | | - reg = <1>; |
1052 | | - remote-endpoint = <&usbc0_sbu>; |
1053 | | - }; |
1054 | | - }; |
1055 | | -}; |
1056 | | - |
1057 | 985 | &usbdp_phy1 { |
1058 | 986 | rockchip,dp-lane-mux = <0 1 2 3>; |
1059 | 987 | status = "okay"; |
|
1072 | 1000 | maximum-speed = "high-speed"; |
1073 | 1001 | phys = <&u2phy0_otg>; |
1074 | 1002 | phy-names = "usb2-phy"; |
1075 | | - |
1076 | | - usb-role-switch; |
1077 | 1003 | status = "okay"; |
1078 | | - |
1079 | | - port { |
1080 | | - usb_host0_xhci_drd_sw: endpoint { |
1081 | | - remote-endpoint = <&usbc0_hs>; |
1082 | | - }; |
1083 | | - }; |
1084 | 1004 | }; |
1085 | 1005 |
|
1086 | 1006 | &u2phy1 { // for usbdp_phy1 which is also usb_host1_xhci |
|
0 commit comments