Re: [PATCH 2/3] usb: typec: Add Hynetek HUSB320 Type-C controller driver
From: Meng Li
Date: Mon Aug 24 2026 - 06:44:06 EST
On Mon, Jul 20, 2026 at 04:17:12PM +0800, Hongyang Zhao wrote:
> The HUSB320 is an autonomous Configuration Channel controller which
> supports fixed source or sink operation and dual-role ports without USB
> Power Delivery.
>
> Add a Type-C class driver for attach and detach detection, orientation
> and Rp current reporting, platform VBUS control, USB role switching,
> Try.SRC and Try.SNK, and audio and debug accessories.
>
> Signed-off-by: Hongyang Zhao <hongyang.zhao@xxxxxxx>
I tested this driver on a Thundercomm I615 DK based on Qualcomm
QCS615, using the following device tree configuration:
&i2c3 {
clock-frequency = <400000>;
status = "okay";
typec@31 {
compatible = "hynetek,husb320";
reg = <0x31>;
interrupts-extended = <&tlmm 55 IRQ_TYPE_LEVEL_LOW>;
pinctrl-0 = <&husb320_interrupt>;
pinctrl-names = "default";
connector {
compatible = "usb-c-connector";
label = "USB-C";
vbus-supply = <&vreg_usb0_vbus>;
data-role = "dual";
power-role = "dual";
typec-power-opmode = "default";
pd-disable;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
husb320_hs: endpoint {
remote-endpoint = <&usb_1_hs>;
};
};
port@1 {
reg = <1>;
husb320_ss: endpoint {
remote-endpoint = <&usb_qmpphy_out>;
};
};
};
};
};
};
The following tests passed:
- USB device/ADB in both connector orientations at 5 Gbit/s
- USB host with a USB 3.0 flash drive in both orientations at 5 Gbit/s
- 1 GiB read-only direct reads at 115 MB/s and 111 MB/s
- VBUS, data role and orientation switching
- No interrupt storm, USB enumeration error or I/O error was observed
Tested-by: Meng Li <meng.li_g@xxxxxxxxxxxxxxx>