forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm64/boot/dts/rockchip/rk3399pro-evb-lp4-v11-linux.dts
....@@ -8,6 +8,7 @@
88 #include <dt-bindings/display/drm_mipi_dsi.h>
99 #include <dt-bindings/sensor-dev.h>
1010 #include <dt-bindings/pwm/pwm.h>
11
+#include "dt-bindings/usb/pd.h"
1112 #include "rk3399pro.dtsi"
1213 #include "rk3399-linux.dtsi"
1314 #include "rk3399-opp.dtsi"
....@@ -208,6 +209,16 @@
208209 regulator-boot-on;
209210 };
210211
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
+
211222 vcc5v0_sys: vccsys {
212223 compatible = "regulator-fixed";
213224 regulator-name = "vcc5v0_sys";
....@@ -243,7 +254,6 @@
243254
244255 &cdn_dp {
245256 status = "okay";
246
- extcon = <&fusb0>;
247257 phys = <&tcphy0_dp>;
248258 };
249259
....@@ -703,8 +713,8 @@
703713 };
704714 };
705715
706
- vdd_cpu_b: tcs452x@1c {
707
- compatible = "tcs,tcs452x";
716
+ vdd_cpu_b: tcs4525@1c {
717
+ compatible = "tcs,tcs4525";
708718 reg = <0x1c>;
709719 vin-supply = <&vcc5v0_sys>;
710720 regulator-compatible = "fan53555-reg";
....@@ -723,8 +733,8 @@
723733 };
724734 };
725735
726
- vdd_gpu: tcs452x@10 {
727
- compatible = "tcs,tcs452x";
736
+ vdd_gpu: tcs4526@10 {
737
+ compatible = "tcs,tcs4526";
728738 reg = <0x10>;
729739 vin-supply = <&vcc5v0_sys>;
730740 regulator-compatible = "fan53555-reg";
....@@ -746,7 +756,6 @@
746756 bq25700: bq25700@6b {
747757 compatible = "ti,bq25703";
748758 reg = <0x6b>;
749
- extcon = <&fusb0>;
750759 interrupt-parent = <&gpio1>;
751760 interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>;
752761 pinctrl-names = "default";
....@@ -1072,8 +1081,16 @@
10721081 };
10731082
10741083 &tcphy0 {
1075
- extcon = <&fusb0>;
10761084 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
+ };
10771094 };
10781095
10791096 &tcphy1 {
....@@ -1144,7 +1161,15 @@
11441161
11451162 &usbdrd_dwc3_0 {
11461163 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
+ };
11481173 };
11491174
11501175 &usbdrd_dwc3_1 {
....@@ -1175,13 +1200,6 @@
11751200 charger_ok_int: charger-ok-int {
11761201 rockchip,pins =
11771202 <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>;
11851203 };
11861204 };
11871205
....@@ -1275,6 +1293,16 @@
12751293 };
12761294 };
12771295
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
+
12781306 wireless-bluetooth {
12791307 bt_irq_gpio: bt-irq-gpio {
12801308 rockchip,pins =