From: Stefan Eichenberger <[email protected]> Enable the DWC3 USB host controller on the Verdin iMX95. Enable the DWC3 driver support by enabling the wrapper driver CONFIG_USB_DWC3_GENERIC and ensure the device tree nodes are kept enabled for U-Boot.
CONFIG_USB_DWC3_GADGET has to be enabled along with it. dwc3-generic.c builds its peripheral driver whenever DM_USB_GADGET is set, and that driver calls dwc3_gadget_uboot_handle_interrupt(), which is only built with USB_DWC3_GADGET: drivers/usb/dwc3/dwc3-generic.c:220: undefined reference to `dwc3_gadget_uboot_handle_interrupt' Signed-off-by: Stefan Eichenberger <[email protected]> --- arch/arm/dts/imx95-verdin-wifi-dev-u-boot.dtsi | 8 -------- configs/verdin-imx95_defconfig | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/dts/imx95-verdin-wifi-dev-u-boot.dtsi b/arch/arm/dts/imx95-verdin-wifi-dev-u-boot.dtsi index 8ab70cf7399..ab6e1054a9f 100644 --- a/arch/arm/dts/imx95-verdin-wifi-dev-u-boot.dtsi +++ b/arch/arm/dts/imx95-verdin-wifi-dev-u-boot.dtsi @@ -90,14 +90,6 @@ /delete-property/power-domains; }; -&usb3 { - status = "disabled"; -}; - -&usb3_dwc3 { - status = "disabled"; -}; - &usb_recov_ctrl { bootph-pre-ram; }; diff --git a/configs/verdin-imx95_defconfig b/configs/verdin-imx95_defconfig index 77b22a2f8a5..e49af4a9861 100644 --- a/configs/verdin-imx95_defconfig +++ b/configs/verdin-imx95_defconfig @@ -172,7 +172,7 @@ CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_DWC3=y -# CONFIG_USB_DWC3_GADGET is not set +CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Toradex" -- 2.55.0
