summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChukun Pan2025-10-19 14:01:25 +0000
committerZoltan HERPAI2026-01-27 15:30:02 +0000
commit947bcc95f87af1c3e04e39af6a31bef652020049 (patch)
tree35e501287efdcda6a49e45af99ebecb35e0a9888
parent5c72cd46dbf767d399e8fed0464304c36482012f (diff)
downloadopenwrt-947bcc95f87af1c3e04e39af6a31bef652020049.tar.gz
d1: enable usbgadget feature
The USB of most d1 devices works in otg or peripheral mode. Enable this feature to use usbgadget and fix musb errors: musb-sunxi 4100000.usb: Invalid or missing 'dr_mode' property musb-sunxi 4100000.usb: probe with driver musb-sunxi failed with error -22 Fixes: 99545b4bb1faf7c3 ("d1: add new target") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> (cherry picked from commit 81580cc92c37665a0d4646c155727905ee8539da)
-rw-r--r--target/linux/d1/Makefile2
-rw-r--r--target/linux/d1/config-6.123
2 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/d1/Makefile b/target/linux/d1/Makefile
index 23a987bc58..0d30c8233c 100644
--- a/target/linux/d1/Makefile
+++ b/target/linux/d1/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
ARCH:=riscv64
BOARD:=d1
BOARDNAME:=AllWinner D1 RISC-V SoC
-FEATURES:=ext4 squashfs
+FEATURES:=ext4 squashfs usbgadget
KERNELNAME:=Image dtbs
SUBTARGETS:=generic
diff --git a/target/linux/d1/config-6.12 b/target/linux/d1/config-6.12
index 5d2b2e58fe..fc733f3455 100644
--- a/target/linux/d1/config-6.12
+++ b/target/linux/d1/config-6.12
@@ -435,9 +435,10 @@ CONFIG_USB=y
CONFIG_USB_COMMON=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_HCD_PLATFORM=y
+CONFIG_USB_GADGET=y
CONFIG_USB_HID=y
+CONFIG_USB_MUSB_DUAL_ROLE=y
CONFIG_USB_MUSB_HDRC=y
-CONFIG_USB_MUSB_HOST=y
CONFIG_USB_MUSB_SUNXI=y
CONFIG_USB_NET_DRIVERS=y
CONFIG_USB_OHCI_HCD=y