]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: misc: onboard_dev: Add WCH CH334 USB2.0 Hub (1a86:8091)
authorChaoyi Chen <chaoyi.chen@rock-chips.com>
Tue, 13 Jan 2026 09:58:27 +0000 (17:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Jan 2026 12:48:10 +0000 (13:48 +0100)
The WCH CH334/CH335[0] are USB2.0 protocol compliant 4-port USB HUB
controller chips, supporting USB2.0 high-speed and full-speed for
upstream ports, and USB2.0 high-speed 480Mbps, full-speed 12Mbps and
low-speed 1.5Mbps for downstream ports, supporting not only low-cost STT
mode (single TT schedules 4 downstream ports in time share), but also
supports high performance MTT mode (4 TTs each corresponding to 1 port,
concurrent processing).

[0]: https://www.wch-ic.com/downloads/CH334DS1_PDF.html

Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Link: https://patch.msgid.link/20260113095827.115-3-kernel@airkyi.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/onboard_usb_dev.h

index c1462be5526d5c15de2493742d27155e6d1ad8ee..1a1e86e60e04258d66e7c111a4cfdc53fed486e6 100644 (file)
@@ -115,6 +115,13 @@ static const struct onboard_dev_pdata vialab_vl817_data = {
        .is_hub = true,
 };
 
+static const struct onboard_dev_pdata wch_ch334_data = {
+       .reset_us = 14000,
+       .num_supplies = 2,
+       .supply_names = { "vdd33", "v5" },
+       .is_hub = true,
+};
+
 static const struct onboard_dev_pdata xmos_xvf3500_data = {
        .reset_us = 1,
        .num_supplies = 2,
@@ -146,6 +153,7 @@ static const struct of_device_id onboard_dev_match[] = {
        { .compatible = "usbbda,5411", .data = &realtek_rts5411_data, },
        { .compatible = "usbbda,414", .data = &realtek_rts5411_data, },
        { .compatible = "usbbda,5414", .data = &realtek_rts5411_data, },
+       { .compatible = "usb1a86,8091", .data = &wch_ch334_data, },
        { .compatible = "usb1da0,5511", .data = &parade_ps5511_data, },
        { .compatible = "usb1da0,55a1", .data = &parade_ps5511_data, },
        { .compatible = "usb2109,817", .data = &vialab_vl817_data, },