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