aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2017-12-15 06:00:01 -0500
committerHeiko Stuebner <heiko@sntech.de>2017-12-16 12:07:28 -0500
commitcea5735c934f64a1659be7ea27c5848190c6c15a (patch)
treee90a3c4fcbb19bbc17ef039049cfa6ea86bba72e
parentc301b327aea898af558b2387252a2f5fc0117dee (diff)
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>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
index 470105d651c2..03f195025390 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
@@ -855,6 +855,20 @@ ap_i2c_audio: &i2c8 {
855 compatible = "google,cros-ec-pwm"; 855 compatible = "google,cros-ec-pwm";
856 #pwm-cells = <1>; 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
@@ -865,6 +879,16 @@ ap_i2c_audio: &i2c8 {
865 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */ 879 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
866}; 880};
867 881
882&tcphy0 {
883 status = "okay";
884 extcon = <&usbc_extcon0>;
885};
886
887&tcphy1 {
888 status = "okay";
889 extcon = <&usbc_extcon1>;
890};
891
868&u2phy0 { 892&u2phy0 {
869 status = "okay"; 893 status = "okay";
870}; 894};
@@ -911,6 +935,7 @@ ap_i2c_audio: &i2c8 {
911 935
912&usbdrd3_0 { 936&usbdrd3_0 {
913 status = "okay"; 937 status = "okay";
938 extcon = <&usbc_extcon0>;
914}; 939};
915 940
916&usbdrd_dwc3_0 { 941&usbdrd_dwc3_0 {
@@ -920,6 +945,7 @@ ap_i2c_audio: &i2c8 {
920 945
921&usbdrd3_1 { 946&usbdrd3_1 {
922 status = "okay"; 947 status = "okay";
948 extcon = <&usbc_extcon1>;
923}; 949};
924 950
925&usbdrd_dwc3_1 { 951&usbdrd_dwc3_1 {