提交 87a267b4 编写于 作者: S Samuel Holland 提交者: Heiko Stuebner

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: NSamuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220413035614.31045-3-samuel@sholland.orgSigned-off-by: NHeiko Stuebner <heiko@sntech.de>
上级 8d411beb
......@@ -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>;
};
};
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册