Devicetree
 help / color / mirror / Atom feed
From: Meng Li <meng.li_g@thundersoft.com>
To: hongyang.zhao@163.com
Cc: broonie@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, gregkh@linuxfoundation.org,
	heikki.krogerus@linux.intel.com, krzk+dt@kernel.org,
	lgirdwood@gmail.com, linux-kernel@vger.kernel.org,
	linux-usb@vger.kernel.org, robh@kernel.org, rosh@debian.org,
	Meng Li <meng.li_g@thundersoft.com>
Subject: Re: [PATCH 2/3] usb: typec: Add Hynetek HUSB320 Type-C controller driver
Date: Mon, 24 Aug 2026 18:35:42 +0800	[thread overview]
Message-ID: <20260824103542.633058-1-meng.li_g@thundersoft.com> (raw)
In-Reply-To: <20260720-husb320-v1-2-4a1e259d7dc8@163.com>

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@163.com>

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@thundersoft.com>

  parent reply	other threads:[~2026-08-24 10:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-20  8:17 [PATCH 0/3] Add Hynetek HUSB320 Type-C controller support Hongyang Zhao
2026-07-20  8:17 ` [PATCH 1/3] dt-bindings: usb: Add Hynetek HUSB320 Type-C controller Hongyang Zhao
2026-07-31 22:53   ` Rob Herring (Arm)
2026-07-20  8:17 ` [PATCH 2/3] usb: typec: Add Hynetek HUSB320 Type-C controller driver Hongyang Zhao
2026-07-20  8:32   ` sashiko-bot
2026-07-21 10:27   ` Heikki Krogerus
2026-08-24 10:35   ` Meng Li [this message]
2026-07-20  8:17 ` [PATCH 3/3] MAINTAINERS: Add HUSB320 Type-C controller entry Hongyang Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260824103542.633058-1-meng.li_g@thundersoft.com \
    --to=meng.li_g@thundersoft.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=hongyang.zhao@163.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=rosh@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox