.. | .. |
---|
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" |
---|
.. | .. |
---|
135 | 136 | prepare-delay-ms = <20>; |
---|
136 | 137 | enable-delay-ms = <20>; |
---|
137 | 138 | reset-delay-ms = <20>; |
---|
| 139 | + width-mm = <120>; |
---|
| 140 | + height-mm = <160>; |
---|
138 | 141 | |
---|
139 | 142 | display-timings { |
---|
140 | 143 | native-mode = <&timing0>; |
---|
.. | .. |
---|
208 | 211 | regulator-boot-on; |
---|
209 | 212 | }; |
---|
210 | 213 | |
---|
| 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 | + |
---|
211 | 224 | vcc5v0_sys: vccsys { |
---|
212 | 225 | compatible = "regulator-fixed"; |
---|
213 | 226 | regulator-name = "vcc5v0_sys"; |
---|
.. | .. |
---|
243 | 256 | |
---|
244 | 257 | &cdn_dp { |
---|
245 | 258 | status = "okay"; |
---|
246 | | - extcon = <&fusb0>; |
---|
247 | 259 | phys = <&tcphy0_dp>; |
---|
248 | 260 | }; |
---|
249 | 261 | |
---|
.. | .. |
---|
703 | 715 | }; |
---|
704 | 716 | }; |
---|
705 | 717 | |
---|
706 | | - vdd_cpu_b: tcs452x@1c { |
---|
707 | | - compatible = "tcs,tcs452x"; |
---|
| 718 | + vdd_cpu_b: tcs4525@1c { |
---|
| 719 | + compatible = "tcs,tcs4525"; |
---|
708 | 720 | reg = <0x1c>; |
---|
709 | 721 | vin-supply = <&vcc5v0_sys>; |
---|
710 | 722 | regulator-compatible = "fan53555-reg"; |
---|
.. | .. |
---|
723 | 735 | }; |
---|
724 | 736 | }; |
---|
725 | 737 | |
---|
726 | | - vdd_gpu: tcs452x@10 { |
---|
727 | | - compatible = "tcs,tcs452x"; |
---|
| 738 | + vdd_gpu: tcs4526@10 { |
---|
| 739 | + compatible = "tcs,tcs4526"; |
---|
728 | 740 | reg = <0x10>; |
---|
729 | 741 | vin-supply = <&vcc5v0_sys>; |
---|
730 | 742 | regulator-compatible = "fan53555-reg"; |
---|
.. | .. |
---|
746 | 758 | bq25700: bq25700@6b { |
---|
747 | 759 | compatible = "ti,bq25703"; |
---|
748 | 760 | reg = <0x6b>; |
---|
749 | | - extcon = <&fusb0>; |
---|
750 | 761 | interrupt-parent = <&gpio1>; |
---|
751 | 762 | interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>; |
---|
752 | 763 | pinctrl-names = "default"; |
---|
.. | .. |
---|
1072 | 1083 | }; |
---|
1073 | 1084 | |
---|
1074 | 1085 | &tcphy0 { |
---|
1075 | | - extcon = <&fusb0>; |
---|
1076 | 1086 | 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 | + }; |
---|
1077 | 1096 | }; |
---|
1078 | 1097 | |
---|
1079 | 1098 | &tcphy1 { |
---|
.. | .. |
---|
1144 | 1163 | |
---|
1145 | 1164 | &usbdrd_dwc3_0 { |
---|
1146 | 1165 | 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 | + }; |
---|
1148 | 1175 | }; |
---|
1149 | 1176 | |
---|
1150 | 1177 | &usbdrd_dwc3_1 { |
---|
.. | .. |
---|
1175 | 1202 | charger_ok_int: charger-ok-int { |
---|
1176 | 1203 | rockchip,pins = |
---|
1177 | 1204 | <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 | 1205 | }; |
---|
1186 | 1206 | }; |
---|
1187 | 1207 | |
---|
.. | .. |
---|
1275 | 1295 | }; |
---|
1276 | 1296 | }; |
---|
1277 | 1297 | |
---|
| 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 | + |
---|
1278 | 1308 | wireless-bluetooth { |
---|
1279 | 1309 | bt_irq_gpio: bt-irq-gpio { |
---|
1280 | 1310 | rockchip,pins = |
---|