Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cea5735c authored by Enric Balletbo i Serra's avatar Enric Balletbo i Serra Committed by Heiko Stuebner
Browse files

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: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent c301b327
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -855,6 +855,20 @@ ap_i2c_audio: &i2c8 {
			compatible = "google,cros-ec-pwm";
			#pwm-cells = <1>;
		};

		usbc_extcon0: extcon@0 {
			compatible = "google,extcon-usbc-cros-ec";
			google,usb-port-id = <0>;

			#extcon-cells = <0>;
		};

		usbc_extcon1: extcon@1 {
			compatible = "google,extcon-usbc-cros-ec";
			google,usb-port-id = <1>;

			#extcon-cells = <0>;
		};
	};
};

@@ -865,6 +879,16 @@ ap_i2c_audio: &i2c8 {
	rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
};

&tcphy0 {
	status = "okay";
	extcon = <&usbc_extcon0>;
};

&tcphy1 {
	status = "okay";
	extcon = <&usbc_extcon1>;
};

&u2phy0 {
	status = "okay";
};
@@ -911,6 +935,7 @@ ap_i2c_audio: &i2c8 {

&usbdrd3_0 {
	status = "okay";
	extcon = <&usbc_extcon0>;
};

&usbdrd_dwc3_0 {
@@ -920,6 +945,7 @@ ap_i2c_audio: &i2c8 {

&usbdrd3_1 {
	status = "okay";
	extcon = <&usbc_extcon1>;
};

&usbdrd_dwc3_1 {