Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB host mode doesn't work #27

Open
Manawyrm opened this issue Apr 16, 2021 · 1 comment
Open

USB host mode doesn't work #27

Manawyrm opened this issue Apr 16, 2021 · 1 comment

Comments

@Manawyrm
Copy link
Member

&usb_otg {
	dr_mode = "host";
	status = "okay";
};

&usbphy {
	dr_mode = "host";
	status = "okay";
};
diff --git a/buildroot/board/otter/ottercast-S3/linux/defconfig b/buildroot/board/otter/ottercast-S3/linux/defconfig
index d5706f4..bfbcf94 100644
--- a/buildroot/board/otter/ottercast-S3/linux/defconfig
+++ b/buildroot/board/otter/ottercast-S3/linux/defconfig
@@ -150,13 +150,14 @@ CONFIG_SND_SOC_SSM2602_I2C=y
 CONFIG_SND_SOC_TAS5825M=m
 CONFIG_SND_SIMPLE_CARD=y
 CONFIG_USB=y
+CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
+CONFIG_USB_OTG=y
 CONFIG_USB_AUTOSUSPEND_DELAY=0
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_HCD_PLATFORM=y
 CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_OHCI_HCD_PLATFORM=y
 CONFIG_USB_MUSB_HDRC=y
-CONFIG_USB_MUSB_GADGET=y
 CONFIG_USB_MUSB_SUNXI=y
 CONFIG_NOP_USB_XCEIV=y
 CONFIG_USB_GADGET=y
@@ -217,4 +218,4 @@ CONFIG_PRINTK_TIME=y
 CONFIG_DYNAMIC_DEBUG=y
 CONFIG_DEBUG_FS=y
 CONFIG_DEBUG_KERNEL=y
-# CONFIG_FTRACE is not set
\ No newline at end of file
+# CONFIG_FTRACE is not set
@Manawyrm
Copy link
Member Author

# dmesg | fgrep usb
[    1.175488] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.181419] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    1.189729] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    1.198101] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.205365] usb usb1: Product: MUSB HDRC host driver
[    1.210335] usb usb1: Manufacturer: Linux 5.10.26 musb-hcd
[    1.215842] usb usb1: SerialNumber: musb-hdrc.1.auto
# lsusb
Bus 001 Device 001: ID 1d6b:0002

No device detected, 1d6b:0002 is only the (virtual) USB root hub.
Maybe PHY configuration issue? Or something with the USB hubs used, I only have 2 different USB-C hubs with power passthru.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant