Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: rockchip: add extcon nodes and enable tcphy rk3399-gru

Enable tcphy and create the cros-ec's extcon node for the USB Type-C port.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Enric Balletbo i Serra and committed by
Heiko Stuebner
cea5735c c301b327

+26
+26
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
··· 855 855 compatible = "google,cros-ec-pwm"; 856 856 #pwm-cells = <1>; 857 857 }; 858 + 859 + usbc_extcon0: extcon@0 { 860 + compatible = "google,extcon-usbc-cros-ec"; 861 + google,usb-port-id = <0>; 862 + 863 + #extcon-cells = <0>; 864 + }; 865 + 866 + usbc_extcon1: extcon@1 { 867 + compatible = "google,extcon-usbc-cros-ec"; 868 + google,usb-port-id = <1>; 869 + 870 + #extcon-cells = <0>; 871 + }; 858 872 }; 859 873 }; 860 874 ··· 877 863 878 864 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */ 879 865 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */ 866 + }; 867 + 868 + &tcphy0 { 869 + status = "okay"; 870 + extcon = <&usbc_extcon0>; 871 + }; 872 + 873 + &tcphy1 { 874 + status = "okay"; 875 + extcon = <&usbc_extcon1>; 880 876 }; 881 877 882 878 &u2phy0 { ··· 935 911 936 912 &usbdrd3_0 { 937 913 status = "okay"; 914 + extcon = <&usbc_extcon0>; 938 915 }; 939 916 940 917 &usbdrd_dwc3_0 { ··· 945 920 946 921 &usbdrd3_1 { 947 922 status = "okay"; 923 + extcon = <&usbc_extcon1>; 948 924 }; 949 925 950 926 &usbdrd_dwc3_1 {