From: Stefan Eichenberger <[email protected]>

The iMX95 USB controller is DWC3-based, but the DWC3 core/glue driver
was never enabled for this board, therefore enable CONFIG_USB_DWC3,
CONFIG_USB_XHCI_DWC3 and CONFIG_USB_DWC3_GENERIC to enable support for
USB in U-Boot for the Toradex SMARC iMX95.

Remove the dwc3 nodes from the U-Boot device tree to keep them enabled
now that the driver is there.

Signed-off-by: Stefan Eichenberger <[email protected]>
---
 arch/arm/dts/imx95-toradex-smarc-dev-u-boot.dtsi | 8 --------
 configs/toradex-smarc-imx95_defconfig            | 4 ++++
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/arm/dts/imx95-toradex-smarc-dev-u-boot.dtsi 
b/arch/arm/dts/imx95-toradex-smarc-dev-u-boot.dtsi
index e4eda61e5c4..d9fe4abe877 100644
--- a/arch/arm/dts/imx95-toradex-smarc-dev-u-boot.dtsi
+++ b/arch/arm/dts/imx95-toradex-smarc-dev-u-boot.dtsi
@@ -88,14 +88,6 @@
        /delete-property/power-domains;
 };
 
-&usb3 {
-       status = "disabled";
-};
-
-&usb3_dwc3 {
-       status = "disabled";
-};
-
 &usdhc1 {
        bootph-pre-ram;
 };
diff --git a/configs/toradex-smarc-imx95_defconfig 
b/configs/toradex-smarc-imx95_defconfig
index 9abadb0ed1a..5b687f9bb3d 100644
--- a/configs/toradex-smarc-imx95_defconfig
+++ b/configs/toradex-smarc-imx95_defconfig
@@ -166,7 +166,11 @@ CONFIG_SPI=y
 CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 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

Reply via email to