]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
rockchip: enable dwc3 usb dual-role mode for otg 23770/head
authorChukun Pan <amadeus@jmu.edu.cn>
Fri, 5 Jun 2026 12:08:18 +0000 (20:08 +0800)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 21 Jun 2026 18:55:29 +0000 (20:55 +0200)
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 <amadeus@jmu.edu.cn>
Link: https://github.com/openwrt/openwrt/pull/23770
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/rockchip/armv8/config-6.18

index 9c1f1d4a30d370ce4353b6236e6d93a575db8a1b..c1213b5da5eb40067efac1508ba1cdabf1dc34a8 100644 (file)
@@ -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