From: Chukun Pan Date: Fri, 5 Jun 2026 12:08:18 +0000 (+0800) Subject: rockchip: enable dwc3 usb dual-role mode for otg X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58ba08c4935bcd96e5d1b76ccf929cd73cbd3dc5;p=thirdparty%2Fopenwrt.git rockchip: enable dwc3 usb dual-role mode for otg Most Rockchip boards have an OTG port. Enable DWC3 USB Dual-role mode for the OTG port to fix the following error: Configuration mismatch. dr_mode forced to host Signed-off-by: Chukun Pan Link: https://github.com/openwrt/openwrt/pull/23770 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/rockchip/armv8/config-6.18 b/target/linux/rockchip/armv8/config-6.18 index 9c1f1d4a30d..c1213b5da5e 100644 --- a/target/linux/rockchip/armv8/config-6.18 +++ b/target/linux/rockchip/armv8/config-6.18 @@ -733,11 +733,14 @@ CONFIG_UNMAP_KERNEL_AT_EL0=y CONFIG_USB=y CONFIG_USB_COMMON=y CONFIG_USB_DWC3=y -CONFIG_USB_DWC3_HOST=y +CONFIG_USB_DWC3_DUAL_ROLE=y +# CONFIG_USB_DWC3_GADGET is not set +# CONFIG_USB_DWC3_HOST is not set CONFIG_USB_DWC3_OF_SIMPLE=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD_PLATFORM=y # CONFIG_USB_EHCI_ROOT_HUB_TT is not set +CONFIG_USB_GADGET=y CONFIG_USB_OHCI_HCD=y CONFIG_USB_OHCI_HCD_PLATFORM=y CONFIG_USB_PHY=y