]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
d1: enable usbgadget feature
authorChukun Pan <amadeus@jmu.edu.cn>
Sun, 19 Oct 2025 14:01:25 +0000 (22:01 +0800)
committerZoltan HERPAI <wigyori@uid0.hu>
Fri, 23 Jan 2026 09:35:36 +0000 (10:35 +0100)
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>
target/linux/d1/Makefile
target/linux/d1/config-6.12

index 23a987bc582e938537b050a54c39169dc0399735..0d30c8233c215028ac0e4dd5a2ebd7e24713f400 100644 (file)
@@ -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
 
index 5d2b2e58fe9a6551224c4a2d4cfcd6bb5021fbf3..fc733f3455d6d32d005b6e78a3a84987a62decc5 100644 (file)
@@ -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