Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: misc: onboard_usb_dev: Add Corechips SL6341 USB 2.0/3.0 hub

Add the ID entries and platform data for the Corechips SL6341 onboard
USB 2.0/3.0 hub controller, which requires a reset pin and a power supply
for proper operation.

Signed-off-by: Alexey Charkov <alchark@flipper.net>
Link: https://patch.msgid.link/20260311-sl6341-v1-3-0a890056f054@flipper.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexey Charkov and committed by
Greg Kroah-Hartman
0b9570c4 bfcb86e5

+12
+3
drivers/usb/misc/onboard_usb_dev.c
··· 565 565 /************************** USB driver **************************/ 566 566 567 567 #define VENDOR_ID_BISON 0x5986 568 + #define VENDOR_ID_CORECHIPS 0x3431 568 569 #define VENDOR_ID_CYPRESS 0x04b4 569 570 #define VENDOR_ID_GENESYS 0x05e3 570 571 #define VENDOR_ID_MICROCHIP 0x0424 ··· 650 649 651 650 static const struct usb_device_id onboard_dev_id_table[] = { 652 651 { USB_DEVICE(VENDOR_ID_BISON, 0x1198) }, /* Bison Electronics Inc. Integrated Camera */ 652 + { USB_DEVICE(VENDOR_ID_CORECHIPS, 0x6241) }, /* SL6341 2.0 HUB */ 653 + { USB_DEVICE(VENDOR_ID_CORECHIPS, 0x6341) }, /* SL6341 3.0 HUB */ 653 654 { USB_DEVICE(VENDOR_ID_CYPRESS, 0x6500) }, /* CYUSB330x 3.0 HUB */ 654 655 { USB_DEVICE(VENDOR_ID_CYPRESS, 0x6502) }, /* CYUSB330x 2.0 HUB */ 655 656 { USB_DEVICE(VENDOR_ID_CYPRESS, 0x6503) }, /* CYUSB33{0,1}x 2.0 HUB, Vendor Mode */
+9
drivers/usb/misc/onboard_usb_dev.h
··· 80 80 .is_hub = false, 81 81 }; 82 82 83 + static const struct onboard_dev_pdata corechips_sl6341_data = { 84 + .reset_us = 10000, 85 + .num_supplies = 2, 86 + .supply_names = { "vdd1v1", "vdd3v3" }, 87 + .is_hub = true, 88 + }; 89 + 83 90 static const struct onboard_dev_pdata cypress_hx3_data = { 84 91 .reset_us = 10000, 85 92 .num_supplies = 2, ··· 172 165 { .compatible = "usb2109,817", .data = &vialab_vl817_data, }, 173 166 { .compatible = "usb2109,2817", .data = &vialab_vl817_data, }, 174 167 { .compatible = "usb20b1,0013", .data = &xmos_xvf3500_data, }, 168 + { .compatible = "usb3431,6241", .data = &corechips_sl6341_data, }, 169 + { .compatible = "usb3431,6341", .data = &corechips_sl6341_data, }, 175 170 { .compatible = "usb5986,1198", .data = &bison_intcamera_data, }, 176 171 {} 177 172 };