Skip to content

Commit 6972b38

Browse files
eichenbergergregkh
authored andcommitted
usb: misc: onboard-hub: add support for Microchip USB5744
Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub. The Microchip USB5744 supports two power supplies, one for 1V2 and one for 3V3. According to the datasheet there is no need for a delay between power on and reset, so this value is set to 0. Signed-off-by: Stefan Eichenberger <[email protected]> Signed-off-by: Francesco Dolcini <[email protected]> Cc: stable <[email protected]> Acked-by: Matthias Kaehlcke <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d0c930b commit 6972b38

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/usb/misc/onboard_usb_hub.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,8 @@ static const struct usb_device_id onboard_hub_id_table[] = {
432432
{ USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2412) }, /* USB2412 USB 2.0 */
433433
{ USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2514) }, /* USB2514B USB 2.0 */
434434
{ USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2517) }, /* USB2517 USB 2.0 */
435+
{ USB_DEVICE(VENDOR_ID_MICROCHIP, 0x2744) }, /* USB5744 USB 2.0 */
436+
{ USB_DEVICE(VENDOR_ID_MICROCHIP, 0x5744) }, /* USB5744 USB 3.0 */
435437
{ USB_DEVICE(VENDOR_ID_REALTEK, 0x0411) }, /* RTS5411 USB 3.1 */
436438
{ USB_DEVICE(VENDOR_ID_REALTEK, 0x5411) }, /* RTS5411 USB 2.1 */
437439
{ USB_DEVICE(VENDOR_ID_REALTEK, 0x0414) }, /* RTS5414 USB 3.2 */

drivers/usb/misc/onboard_usb_hub.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ static const struct onboard_hub_pdata microchip_usb424_data = {
1616
.num_supplies = 1,
1717
};
1818

19+
static const struct onboard_hub_pdata microchip_usb5744_data = {
20+
.reset_us = 0,
21+
.num_supplies = 2,
22+
};
23+
1924
static const struct onboard_hub_pdata realtek_rts5411_data = {
2025
.reset_us = 0,
2126
.num_supplies = 1,
@@ -50,6 +55,8 @@ static const struct of_device_id onboard_hub_match[] = {
5055
{ .compatible = "usb424,2412", .data = &microchip_usb424_data, },
5156
{ .compatible = "usb424,2514", .data = &microchip_usb424_data, },
5257
{ .compatible = "usb424,2517", .data = &microchip_usb424_data, },
58+
{ .compatible = "usb424,2744", .data = &microchip_usb5744_data, },
59+
{ .compatible = "usb424,5744", .data = &microchip_usb5744_data, },
5360
{ .compatible = "usb451,8140", .data = &ti_tusb8041_data, },
5461
{ .compatible = "usb451,8142", .data = &ti_tusb8041_data, },
5562
{ .compatible = "usb4b4,6504", .data = &cypress_hx3_data, },

0 commit comments

Comments
 (0)