forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
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"
....@@ -135,6 +136,8 @@
135136 prepare-delay-ms = <20>;
136137 enable-delay-ms = <20>;
137138 reset-delay-ms = <20>;
139
+ width-mm = <120>;
140
+ height-mm = <160>;
138141
139142 display-timings {
140143 native-mode = <&timing0>;
....@@ -208,6 +211,16 @@
208211 regulator-boot-on;
209212 };
210213
214
+ vbus_typec: vbus-typec-regulator {
215
+ compatible = "regulator-fixed";
216
+ enable-active-high;
217
+ gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>;
218
+ pinctrl-names = "default";
219
+ pinctrl-0 = <&vcc5v0_typec0_en>;
220
+ regulator-name = "vbus_typec";
221
+ vin-supply = <&vcc5v0_sys>;
222
+ };
223
+
211224 vcc5v0_sys: vccsys {
212225 compatible = "regulator-fixed";
213226 regulator-name = "vcc5v0_sys";
....@@ -243,7 +256,6 @@
243256
244257 &cdn_dp {
245258 status = "okay";
246
- extcon = <&fusb0>;
247259 phys = <&tcphy0_dp>;
248260 };
249261
....@@ -703,8 +715,8 @@
703715 };
704716 };
705717
706
- vdd_cpu_b: tcs452x@1c {
707
- compatible = "tcs,tcs452x";
718
+ vdd_cpu_b: tcs4525@1c {
719
+ compatible = "tcs,tcs4525";
708720 reg = <0x1c>;
709721 vin-supply = <&vcc5v0_sys>;
710722 regulator-compatible = "fan53555-reg";
....@@ -723,8 +735,8 @@
723735 };
724736 };
725737
726
- vdd_gpu: tcs452x@10 {
727
- compatible = "tcs,tcs452x";
738
+ vdd_gpu: tcs4526@10 {
739
+ compatible = "tcs,tcs4526";
728740 reg = <0x10>;
729741 vin-supply = <&vcc5v0_sys>;
730742 regulator-compatible = "fan53555-reg";
....@@ -746,7 +758,6 @@
746758 bq25700: bq25700@6b {
747759 compatible = "ti,bq25703";
748760 reg = <0x6b>;
749
- extcon = <&fusb0>;
750761 interrupt-parent = <&gpio1>;
751762 interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>;
752763 pinctrl-names = "default";
....@@ -1072,8 +1083,16 @@
10721083 };
10731084
10741085 &tcphy0 {
1075
- extcon = <&fusb0>;
10761086 status = "okay";
1087
+ orientation-switch;
1088
+ port {
1089
+ #address-cells = <1>;
1090
+ #size-cells = <0>;
1091
+ tcphy0_orientation_switch: endpoint@0 {
1092
+ reg = <0>;
1093
+ remote-endpoint = <&usbc0_orien_sw>;
1094
+ };
1095
+ };
10771096 };
10781097
10791098 &tcphy1 {
....@@ -1144,7 +1163,15 @@
11441163
11451164 &usbdrd_dwc3_0 {
11461165 status = "okay";
1147
- extcon = <&fusb0>;
1166
+ usb-role-switch;
1167
+ port {
1168
+ #address-cells = <1>;
1169
+ #size-cells = <0>;
1170
+ dwc3_0_role_switch: endpoint@0 {
1171
+ reg = <0>;
1172
+ remote-endpoint = <&usbc0_role_sw>;
1173
+ };
1174
+ };
11481175 };
11491176
11501177 &usbdrd_dwc3_1 {
....@@ -1175,13 +1202,6 @@
11751202 charger_ok_int: charger-ok-int {
11761203 rockchip,pins =
11771204 <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>;
11851205 };
11861206 };
11871207
....@@ -1275,6 +1295,16 @@
12751295 };
12761296 };
12771297
1298
+ usb-typec {
1299
+ usbc0_int: usbc0-int {
1300
+ rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
1301
+ };
1302
+
1303
+ vcc5v0_typec0_en: vcc5v0-typec0-en {
1304
+ rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
1305
+ };
1306
+ };
1307
+
12781308 wireless-bluetooth {
12791309 bt_irq_gpio: bt-irq-gpio {
12801310 rockchip,pins =