arm64: dts: rockchip: Add USB and TCPC to rk3566-pinenote

PineNote has a USB Type-C port connected to the first USB 2.0 OTG PHY
and XHCI controller via a Willsemi WUSB3801 Type-C port controller.
Add support for it.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220413035614.31045-3-samuel@sholland.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
Samuel Holland 2022-04-12 22:56:14 -05:00 committed by Heiko Stuebner
parent 8d411bebd4
commit 87a267b4af

View File

@ -466,6 +466,39 @@
default-brightness = <0>;
};
};
wusb3801: tcpc@60 {
compatible = "willsemi,wusb3801";
reg = <0x60>;
interrupt-parent = <&gpio0>;
interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&tcpc_int_l>;
pinctrl-names = "default";
connector {
compatible = "usb-c-connector";
label = "USB-C";
vbus-supply = <&otg_switch>;
power-role = "dual";
try-power-role = "sink";
data-role = "dual";
typec-power-opmode = "default";
pd-disable;
ports {
#address-cells = <0x1>;
#size-cells = <0x0>;
port@0 {
reg = <0x0>;
typec_hs_usb2phy0: endpoint {
remote-endpoint = <&usb2phy0_typec_hs>;
};
};
};
};
};
};
&i2c5 {
@ -572,6 +605,12 @@
};
};
tcpc {
tcpc_int_l: tcpc-int-l {
rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
vcc-wl {
vcc_wl_pin: vcc-wl-pin {
rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
@ -659,3 +698,22 @@
&uart2 {
status = "okay";
};
&usb_host0_xhci {
dr_mode = "otg";
status = "okay";
};
&usb2phy0 {
status = "okay";
};
&usb2phy0_otg {
status = "okay";
port {
usb2phy0_typec_hs: endpoint {
remote-endpoint = <&typec_hs_usb2phy0>;
};
};
};