.. | .. |
---|
197 | 197 | reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
---|
198 | 198 | }; |
---|
199 | 199 | |
---|
| 200 | + vbus_typec: vbus-typec-regulator { |
---|
| 201 | + compatible = "regulator-fixed"; |
---|
| 202 | + enable-active-high; |
---|
| 203 | + gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; |
---|
| 204 | + pinctrl-names = "default"; |
---|
| 205 | + pinctrl-0 = <&vcc5v0_typec0_en>; |
---|
| 206 | + regulator-name = "vbus_typec"; |
---|
| 207 | + vin-supply = <&vcc5v0_sys>; |
---|
| 208 | + }; |
---|
| 209 | + |
---|
200 | 210 | vcc_phy: vcc-phy-regulator { |
---|
201 | 211 | compatible = "regulator-fixed"; |
---|
202 | 212 | regulator-name = "vcc_phy"; |
---|
.. | .. |
---|
239 | 249 | |
---|
240 | 250 | &cdn_dp { |
---|
241 | 251 | status = "okay"; |
---|
242 | | - extcon = <&fusb0>; |
---|
243 | 252 | phys = <&tcphy0_dp>; |
---|
244 | 253 | }; |
---|
245 | 254 | |
---|
.. | .. |
---|
676 | 685 | bq25700: bq25700@6b { |
---|
677 | 686 | compatible = "ti,bq25703"; |
---|
678 | 687 | reg = <0x6b>; |
---|
679 | | - extcon = <&fusb0>; |
---|
680 | 688 | interrupt-parent = <&gpio1>; |
---|
681 | 689 | interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>; |
---|
682 | 690 | pinctrl-names = "default"; |
---|
.. | .. |
---|
750 | 758 | i2c-scl-falling-time-ns = <11>; |
---|
751 | 759 | clock-frequency = <100000>; |
---|
752 | 760 | |
---|
753 | | - fusb0: fusb30x@22 { |
---|
754 | | - compatible = "fairchild,fusb302"; |
---|
| 761 | + usbc0: fusb302@22 { |
---|
| 762 | + compatible = "fcs,fusb302"; |
---|
755 | 763 | reg = <0x22>; |
---|
| 764 | + interrupt-parent = <&gpio1>; |
---|
| 765 | + interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; |
---|
756 | 766 | pinctrl-names = "default"; |
---|
757 | | - pinctrl-0 = <&fusb0_int>; |
---|
758 | | - int-n-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; |
---|
| 767 | + pinctrl-0 = <&usbc0_int>; |
---|
| 768 | + vbus-supply = <&vbus_typec>; |
---|
759 | 769 | status = "okay"; |
---|
760 | | - }; |
---|
761 | 770 | |
---|
| 771 | + ports { |
---|
| 772 | + #address-cells = <1>; |
---|
| 773 | + #size-cells = <0>; |
---|
| 774 | + |
---|
| 775 | + port@0 { |
---|
| 776 | + reg = <0>; |
---|
| 777 | + usbc0_role_sw: endpoint@0 { |
---|
| 778 | + remote-endpoint = <&dwc3_0_role_switch>; |
---|
| 779 | + }; |
---|
| 780 | + }; |
---|
| 781 | + }; |
---|
| 782 | + |
---|
| 783 | + usb_con: connector { |
---|
| 784 | + compatible = "usb-c-connector"; |
---|
| 785 | + label = "USB-C"; |
---|
| 786 | + data-role = "dual"; |
---|
| 787 | + power-role = "dual"; |
---|
| 788 | + try-power-role = "sink"; |
---|
| 789 | + op-sink-microwatt = <1000000>; |
---|
| 790 | + sink-pdos = |
---|
| 791 | + <PDO_FIXED(5000, 2500, PDO_FIXED_USB_COMM)>; |
---|
| 792 | + source-pdos = |
---|
| 793 | + <PDO_FIXED(5000, 1500, PDO_FIXED_USB_COMM)>; |
---|
| 794 | + |
---|
| 795 | + ports { |
---|
| 796 | + #address-cells = <1>; |
---|
| 797 | + #size-cells = <0>; |
---|
| 798 | + |
---|
| 799 | + port@0 { |
---|
| 800 | + reg = <0>; |
---|
| 801 | + usbc0_orien_sw: endpoint { |
---|
| 802 | + remote-endpoint = <&tcphy0_orientation_switch>; |
---|
| 803 | + }; |
---|
| 804 | + }; |
---|
| 805 | + }; |
---|
| 806 | + }; |
---|
| 807 | + }; |
---|
762 | 808 | }; |
---|
763 | 809 | |
---|
764 | 810 | &i2s1 { |
---|
.. | .. |
---|
856 | 902 | }; |
---|
857 | 903 | |
---|
858 | 904 | &tcphy0 { |
---|
859 | | - extcon = <&fusb0>; |
---|
860 | 905 | status = "okay"; |
---|
| 906 | + orientation-switch; |
---|
| 907 | + port { |
---|
| 908 | + #address-cells = <1>; |
---|
| 909 | + #size-cells = <0>; |
---|
| 910 | + tcphy0_orientation_switch: endpoint@0 { |
---|
| 911 | + reg = <0>; |
---|
| 912 | + remote-endpoint = <&usbc0_orien_sw>; |
---|
| 913 | + }; |
---|
| 914 | + }; |
---|
861 | 915 | }; |
---|
862 | 916 | |
---|
863 | 917 | &tcphy1 { |
---|
.. | .. |
---|
872 | 926 | |
---|
873 | 927 | &u2phy0 { |
---|
874 | 928 | status = "okay"; |
---|
875 | | - extcon = <&fusb0>; |
---|
876 | 929 | |
---|
877 | 930 | u2phy0_otg: otg-port { |
---|
878 | 931 | status = "okay"; |
---|
.. | .. |
---|
928 | 981 | |
---|
929 | 982 | &usbdrd_dwc3_0 { |
---|
930 | 983 | status = "okay"; |
---|
931 | | - extcon = <&fusb0>; |
---|
| 984 | + usb-role-switch; |
---|
| 985 | + port { |
---|
| 986 | + #address-cells = <1>; |
---|
| 987 | + #size-cells = <0>; |
---|
| 988 | + dwc3_0_role_switch: endpoint@0 { |
---|
| 989 | + reg = <0>; |
---|
| 990 | + remote-endpoint = <&usbc0_role_sw>; |
---|
| 991 | + }; |
---|
| 992 | + }; |
---|
932 | 993 | }; |
---|
933 | 994 | |
---|
934 | 995 | &usbdrd_dwc3_1 { |
---|
.. | .. |
---|
953 | 1014 | charger_ok_int: charger-ok-int { |
---|
954 | 1015 | rockchip,pins = |
---|
955 | 1016 | <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; |
---|
956 | | - }; |
---|
957 | | - }; |
---|
958 | | - |
---|
959 | | - fusb30x { |
---|
960 | | - fusb0_int: fusb0-int { |
---|
961 | | - rockchip,pins = |
---|
962 | | - <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
---|
963 | 1017 | }; |
---|
964 | 1018 | }; |
---|
965 | 1019 | |
---|
.. | .. |
---|
1048 | 1102 | }; |
---|
1049 | 1103 | }; |
---|
1050 | 1104 | |
---|
| 1105 | + usb-typec { |
---|
| 1106 | + usbc0_int: usbc0-int { |
---|
| 1107 | + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
---|
| 1108 | + }; |
---|
| 1109 | + |
---|
| 1110 | + vcc5v0_typec0_en: vcc5v0-typec0-en { |
---|
| 1111 | + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
| 1112 | + }; |
---|
| 1113 | + }; |
---|
| 1114 | + |
---|
1051 | 1115 | wireless-bluetooth { |
---|
1052 | 1116 | uart0_gpios: uart0-gpios { |
---|
1053 | 1117 | rockchip,pins = |
---|