| .. | .. |
|---|
| 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-android.dtsi" |
|---|
| 13 | 14 | #include "rk3399-opp.dtsi" |
|---|
| .. | .. |
|---|
| 125 | 126 | prepare-delay-ms = <20>; |
|---|
| 126 | 127 | enable-delay-ms = <20>; |
|---|
| 127 | 128 | reset-delay-ms = <20>; |
|---|
| 129 | + width-mm = <120>; |
|---|
| 130 | + height-mm = <160>; |
|---|
| 128 | 131 | |
|---|
| 129 | 132 | display-timings { |
|---|
| 130 | 133 | native-mode = <&timing0>; |
|---|
| .. | .. |
|---|
| 198 | 201 | reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; |
|---|
| 199 | 202 | }; |
|---|
| 200 | 203 | |
|---|
| 204 | + vbus_typec: vbus-typec-regulator { |
|---|
| 205 | + compatible = "regulator-fixed"; |
|---|
| 206 | + enable-active-high; |
|---|
| 207 | + gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; |
|---|
| 208 | + pinctrl-names = "default"; |
|---|
| 209 | + pinctrl-0 = <&vcc5v0_typec0_en>; |
|---|
| 210 | + regulator-name = "vbus_typec"; |
|---|
| 211 | + vin-supply = <&vcc5v0_sys>; |
|---|
| 212 | + }; |
|---|
| 213 | + |
|---|
| 201 | 214 | vcc_phy: vcc-phy-regulator { |
|---|
| 202 | 215 | compatible = "regulator-fixed"; |
|---|
| 203 | 216 | regulator-name = "vcc_phy"; |
|---|
| .. | .. |
|---|
| 240 | 253 | |
|---|
| 241 | 254 | &cdn_dp { |
|---|
| 242 | 255 | status = "okay"; |
|---|
| 243 | | - extcon = <&fusb0>; |
|---|
| 244 | 256 | phys = <&tcphy0_dp>; |
|---|
| 245 | 257 | }; |
|---|
| 246 | 258 | |
|---|
| .. | .. |
|---|
| 618 | 630 | }; |
|---|
| 619 | 631 | }; |
|---|
| 620 | 632 | |
|---|
| 621 | | - vdd_cpu_b: tcs452x@1c { |
|---|
| 622 | | - compatible = "tcs,tcs452x"; |
|---|
| 633 | + vdd_cpu_b: tcs4525@1c { |
|---|
| 634 | + compatible = "tcs,tcs4525"; |
|---|
| 623 | 635 | reg = <0x1c>; |
|---|
| 624 | 636 | vin-supply = <&vcc5v0_sys>; |
|---|
| 625 | 637 | regulator-compatible = "fan53555-reg"; |
|---|
| .. | .. |
|---|
| 638 | 650 | }; |
|---|
| 639 | 651 | }; |
|---|
| 640 | 652 | |
|---|
| 641 | | - vdd_gpu: tcs452x@10 { |
|---|
| 642 | | - compatible = "tcs,tcs452x"; |
|---|
| 653 | + vdd_gpu: tcs4526@10 { |
|---|
| 654 | + compatible = "tcs,tcs4526"; |
|---|
| 643 | 655 | reg = <0x10>; |
|---|
| 644 | 656 | vin-supply = <&vcc5v0_sys>; |
|---|
| 645 | 657 | regulator-compatible = "fan53555-reg"; |
|---|
| .. | .. |
|---|
| 661 | 673 | bq25700: bq25700@6b { |
|---|
| 662 | 674 | compatible = "ti,bq25703"; |
|---|
| 663 | 675 | reg = <0x6b>; |
|---|
| 664 | | - extcon = <&fusb0>; |
|---|
| 665 | 676 | interrupt-parent = <&gpio1>; |
|---|
| 666 | 677 | interrupts = <RK_PA1 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 667 | 678 | pinctrl-names = "default"; |
|---|
| .. | .. |
|---|
| 735 | 746 | i2c-scl-falling-time-ns = <11>; |
|---|
| 736 | 747 | clock-frequency = <100000>; |
|---|
| 737 | 748 | |
|---|
| 738 | | - fusb0: fusb30x@22 { |
|---|
| 739 | | - compatible = "fairchild,fusb302"; |
|---|
| 749 | + usbc0: fusb302@22 { |
|---|
| 750 | + compatible = "fcs,fusb302"; |
|---|
| 740 | 751 | reg = <0x22>; |
|---|
| 752 | + interrupt-parent = <&gpio1>; |
|---|
| 753 | + interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 741 | 754 | pinctrl-names = "default"; |
|---|
| 742 | | - pinctrl-0 = <&fusb0_int>; |
|---|
| 743 | | - int-n-gpios = <&gpio1 RK_PA2 GPIO_ACTIVE_HIGH>; |
|---|
| 744 | | - vbus-5v-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_LOW>; |
|---|
| 755 | + pinctrl-0 = <&usbc0_int>; |
|---|
| 756 | + vbus-supply = <&vbus_typec>; |
|---|
| 745 | 757 | status = "okay"; |
|---|
| 746 | | - }; |
|---|
| 747 | 758 | |
|---|
| 759 | + ports { |
|---|
| 760 | + #address-cells = <1>; |
|---|
| 761 | + #size-cells = <0>; |
|---|
| 762 | + |
|---|
| 763 | + port@0 { |
|---|
| 764 | + reg = <0>; |
|---|
| 765 | + usbc0_role_sw: endpoint@0 { |
|---|
| 766 | + remote-endpoint = <&dwc3_0_role_switch>; |
|---|
| 767 | + }; |
|---|
| 768 | + }; |
|---|
| 769 | + }; |
|---|
| 770 | + |
|---|
| 771 | + usb_con: connector { |
|---|
| 772 | + compatible = "usb-c-connector"; |
|---|
| 773 | + label = "USB-C"; |
|---|
| 774 | + data-role = "dual"; |
|---|
| 775 | + power-role = "dual"; |
|---|
| 776 | + try-power-role = "sink"; |
|---|
| 777 | + op-sink-microwatt = <1000000>; |
|---|
| 778 | + sink-pdos = |
|---|
| 779 | + <PDO_FIXED(5000, 2500, PDO_FIXED_USB_COMM)>; |
|---|
| 780 | + source-pdos = |
|---|
| 781 | + <PDO_FIXED(5000, 1500, PDO_FIXED_USB_COMM)>; |
|---|
| 782 | + |
|---|
| 783 | + ports { |
|---|
| 784 | + #address-cells = <1>; |
|---|
| 785 | + #size-cells = <0>; |
|---|
| 786 | + |
|---|
| 787 | + port@0 { |
|---|
| 788 | + reg = <0>; |
|---|
| 789 | + usbc0_orien_sw: endpoint { |
|---|
| 790 | + remote-endpoint = <&tcphy0_orientation_switch>; |
|---|
| 791 | + }; |
|---|
| 792 | + }; |
|---|
| 793 | + }; |
|---|
| 794 | + }; |
|---|
| 795 | + }; |
|---|
| 748 | 796 | }; |
|---|
| 749 | 797 | |
|---|
| 750 | 798 | &i2s1 { |
|---|
| .. | .. |
|---|
| 838 | 886 | }; |
|---|
| 839 | 887 | |
|---|
| 840 | 888 | &tcphy0 { |
|---|
| 841 | | - extcon = <&fusb0>; |
|---|
| 842 | 889 | status = "okay"; |
|---|
| 890 | + orientation-switch; |
|---|
| 891 | + port { |
|---|
| 892 | + #address-cells = <1>; |
|---|
| 893 | + #size-cells = <0>; |
|---|
| 894 | + tcphy0_orientation_switch: endpoint@0 { |
|---|
| 895 | + reg = <0>; |
|---|
| 896 | + remote-endpoint = <&usbc0_orien_sw>; |
|---|
| 897 | + }; |
|---|
| 898 | + }; |
|---|
| 843 | 899 | }; |
|---|
| 844 | 900 | |
|---|
| 845 | 901 | &tcphy1 { |
|---|
| .. | .. |
|---|
| 854 | 910 | |
|---|
| 855 | 911 | &u2phy0 { |
|---|
| 856 | 912 | status = "okay"; |
|---|
| 857 | | - extcon = <&fusb0>; |
|---|
| 858 | 913 | |
|---|
| 859 | 914 | u2phy0_otg: otg-port { |
|---|
| 860 | 915 | status = "okay"; |
|---|
| .. | .. |
|---|
| 911 | 966 | |
|---|
| 912 | 967 | &usbdrd_dwc3_0 { |
|---|
| 913 | 968 | status = "okay"; |
|---|
| 914 | | - extcon = <&fusb0>; |
|---|
| 969 | + usb-role-switch; |
|---|
| 970 | + port { |
|---|
| 971 | + #address-cells = <1>; |
|---|
| 972 | + #size-cells = <0>; |
|---|
| 973 | + dwc3_0_role_switch: endpoint@0 { |
|---|
| 974 | + reg = <0>; |
|---|
| 975 | + remote-endpoint = <&usbc0_role_sw>; |
|---|
| 976 | + }; |
|---|
| 977 | + }; |
|---|
| 915 | 978 | }; |
|---|
| 916 | 979 | |
|---|
| 917 | 980 | &usbdrd_dwc3_1 { |
|---|
| .. | .. |
|---|
| 936 | 999 | charger_ok_int: charger-ok-int { |
|---|
| 937 | 1000 | rockchip,pins = |
|---|
| 938 | 1001 | <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 939 | | - }; |
|---|
| 940 | | - }; |
|---|
| 941 | | - |
|---|
| 942 | | - fusb30x { |
|---|
| 943 | | - fusb0_int: fusb0-int { |
|---|
| 944 | | - rockchip,pins = |
|---|
| 945 | | - <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 946 | 1002 | }; |
|---|
| 947 | 1003 | }; |
|---|
| 948 | 1004 | |
|---|
| .. | .. |
|---|
| 1031 | 1087 | }; |
|---|
| 1032 | 1088 | }; |
|---|
| 1033 | 1089 | |
|---|
| 1090 | + usb-typec { |
|---|
| 1091 | + usbc0_int: usbc0-int { |
|---|
| 1092 | + rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; |
|---|
| 1093 | + }; |
|---|
| 1094 | + |
|---|
| 1095 | + vcc5v0_typec0_en: vcc5v0-typec0-en { |
|---|
| 1096 | + rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
|---|
| 1097 | + }; |
|---|
| 1098 | + }; |
|---|
| 1099 | + |
|---|
| 1034 | 1100 | wireless-bluetooth { |
|---|
| 1035 | 1101 | uart0_gpios: uart0-gpios { |
|---|
| 1036 | 1102 | rockchip,pins = |
|---|