]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: onboard-hub: add support for Microchip USB5744
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Mon, 25 Nov 2024 04:12:00 +0000 (09:42 +0530)
committerMarek Vasut <marex@denx.de>
Mon, 25 Nov 2024 04:40:49 +0000 (05:40 +0100)
Add support for the Microchip USB5744 USB3.0 and USB2.0 Hub.
The usb5744 driver trigger hub reset signal after soft reset.
The usb5744 hub need to reset after the phy initialization,
which toggles the gpio.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Reviewed-by: Marek Vasut <marex@denx.de>
common/usb_onboard_hub.c

index 812e7749de5247af4e8200334d2ef9a40ed45436..4860de5323edc61b1df577232270fae79d1e3673 100644 (file)
@@ -93,10 +93,21 @@ static const struct onboard_hub_data usb2514_data = {
        .reset_us = 1,
 };
 
+static const struct onboard_hub_data usb5744_data = {
+       .power_on_delay_us = 1000,
+       .reset_us = 5,
+};
+
 static const struct udevice_id usb_onboard_hub_ids[] = {
        /* Use generic usbVID,PID dt-bindings (usb-device.yaml) */
        {       .compatible = "usb424,2514",    /* USB2514B USB 2.0 */
                .data = (ulong)&usb2514_data,
+       }, {
+               .compatible = "usb424,2744",    /* USB2744 USB 2.0 */
+               .data = (ulong)&usb5744_data,
+       }, {
+               .compatible = "usb424,5744",    /* USB5744 USB 3.0 */
+               .data = (ulong)&usb5744_data,
        }
 };