| .. | .. |
|---|
| 8 | 8 | #include <dt-bindings/display/drm_mipi_dsi.h> |
|---|
| 9 | 9 | #include <dt-bindings/sensor-dev.h> |
|---|
| 10 | 10 | #include <dt-bindings/pwm/pwm.h> |
|---|
| 11 | +#include "dt-bindings/usb/pd.h" |
|---|
| 11 | 12 | #include "rk3399pro.dtsi" |
|---|
| 12 | 13 | #include "rk3399-linux.dtsi" |
|---|
| 13 | 14 | #include "rk3399-opp.dtsi" |
|---|
| .. | .. |
|---|
| 208 | 209 | regulator-boot-on; |
|---|
| 209 | 210 | }; |
|---|
| 210 | 211 | |
|---|
| 212 | + vbus_typec: vbus-typec-regulator { |
|---|
| 213 | + compatible = "regulator-fixed"; |
|---|
| 214 | + enable-active-high; |
|---|
| 215 | + gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; |
|---|
| 216 | + pinctrl-names = "default"; |
|---|
| 217 | + pinctrl-0 = <&vcc5v0_typec0_en>; |
|---|
| 218 | + regulator-name = "vbus_typec"; |
|---|
| 219 | + vin-supply = <&vcc5v0_sys>; |
|---|
| 220 | + }; |
|---|
| 221 | + |
|---|
| 211 | 222 | vcc5v0_sys: vccsys { |
|---|
| 212 | 223 | compatible = "regulator-fixed"; |
|---|
| 213 | 224 | regulator-name = "vcc5v0_sys"; |
|---|
| .. | .. |
|---|
| 243 | 254 | |
|---|
| 244 | 255 | &cdn_dp { |
|---|
| 245 | 256 | status = "okay"; |
|---|
| 246 | | - extcon = <&fusb0>; |
|---|
| 247 | 257 | phys = <&tcphy0_dp>; |
|---|
| 248 | 258 | }; |
|---|
| 249 | 259 | |
|---|
| .. | .. |
|---|
| 703 | 713 | }; |
|---|
| 704 | 714 | }; |
|---|
| 705 | 715 | |
|---|
| 706 | | - vdd_cpu_b: tcs452x@1c { |
|---|
| 707 | | - compatible = "tcs,tcs452x"; |
|---|
| 716 | + vdd_cpu_b: tcs4525@1c { |
|---|
| 717 | + compatible = "tcs,tcs4525"; |
|---|
| 708 | 718 | reg = <0x1c>; |
|---|
| 709 | 719 | vin-supply = <&vcc5v0_sys>; |
|---|
| 710 | 720 | regulator-compatible = "fan53555-reg"; |
|---|
| .. | .. |
|---|
| 723 | 733 | }; |
|---|
| 724 | 734 | }; |
|---|
| 725 | 735 | |
|---|
| 726 | | - vdd_gpu: tcs452x@10 { |
|---|
| 727 | | - compatible = "tcs,tcs452x"; |
|---|
| 736 | + vdd_gpu: tcs4526@10 { |
|---|
| 737 | + compatible = "tcs,tcs4526"; |
|---|
| 728 | 738 | reg = <0x10>; |
|---|
| 729 | 739 | vin-supply = <&vcc5v0_sys>; |
|---|
| 730 | 740 | regulator-compatible = "fan53555-reg"; |
|---|
| .. | .. |
|---|
| 746 | 756 | bq25700: bq25700@6b { |
|---|
| 747 | 757 | compatible = "ti,bq25703"; |
|---|
| 748 | 758 | reg = <0x6b>; |
|---|
| 749 | | - extcon = <&fusb0>; |
|---|
| 750 | 759 | interrupt-parent = <&gpio1>; |
|---|
| 751 | 760 | interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 752 | 761 | pinctrl-names = "default"; |
|---|
| .. | .. |
|---|
| 1072 | 1081 | }; |
|---|
| 1073 | 1082 | |
|---|
| 1074 | 1083 | &tcphy0 { |
|---|
| 1075 | | - extcon = <&fusb0>; |
|---|
| 1076 | 1084 | status = "okay"; |
|---|
| 1085 | + orientation-switch; |
|---|
| 1086 | + port { |
|---|
| 1087 | + #address-cells = <1>; |
|---|
| 1088 | + #size-cells = <0>; |
|---|
| 1089 | + tcphy0_orientation_switch: endpoint@0 { |
|---|
| 1090 | + reg = <0>; |
|---|
| 1091 | + remote-endpoint = <&usbc0_orien_sw>; |
|---|
| 1092 | + }; |
|---|
| 1093 | + }; |
|---|
| 1077 | 1094 | }; |
|---|
| 1078 | 1095 | |
|---|
| 1079 | 1096 | &tcphy1 { |
|---|
| .. | .. |
|---|
| 1144 | 1161 | |
|---|
| 1145 | 1162 | &usbdrd_dwc3_0 { |
|---|
| 1146 | 1163 | status = "okay"; |
|---|
| 1147 | | - extcon = <&fusb0>; |
|---|
| 1164 | + usb-role-switch; |
|---|
| 1165 | + port { |
|---|
| 1166 | + #address-cells = <1>; |
|---|
| 1167 | + #size-cells = <0>; |
|---|
| 1168 | + dwc3_0_role_switch: endpoint@0 { |
|---|
| 1169 | + reg = <0>; |
|---|
| 1170 | + remote-endpoint = <&usbc0_role_sw>; |
|---|
| 1171 | + }; |
|---|
| 1172 | + }; |
|---|
| 1148 | 1173 | }; |
|---|
| 1149 | 1174 | |
|---|
| 1150 | 1175 | &usbdrd_dwc3_1 { |
|---|
| .. | .. |
|---|
| 1175 | 1200 | charger_ok_int: charger-ok-int { |
|---|
| 1176 | 1201 | rockchip,pins = |
|---|
| 1177 | 1202 | <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 1178 | | - }; |
|---|
| 1179 | | - }; |
|---|
| 1180 | | - |
|---|
| 1181 | | - fusb30x { |
|---|
| 1182 | | - fusb0_int: fusb0-int { |
|---|
| 1183 | | - rockchip,pins = |
|---|
| 1184 | | - <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 1185 | 1203 | }; |
|---|
| 1186 | 1204 | }; |
|---|
| 1187 | 1205 | |
|---|
| .. | .. |
|---|
| 1275 | 1293 | }; |
|---|
| 1276 | 1294 | }; |
|---|
| 1277 | 1295 | |
|---|
| 1296 | + usb-typec { |
|---|
| 1297 | + usbc0_int: usbc0-int { |
|---|
| 1298 | + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 1299 | + }; |
|---|
| 1300 | + |
|---|
| 1301 | + vcc5v0_typec0_en: vcc5v0-typec0-en { |
|---|
| 1302 | + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 1303 | + }; |
|---|
| 1304 | + }; |
|---|
| 1305 | + |
|---|
| 1278 | 1306 | wireless-bluetooth { |
|---|
| 1279 | 1307 | bt_irq_gpio: bt-irq-gpio { |
|---|
| 1280 | 1308 | rockchip,pins = |
|---|