Ottercast / buildroot-ottercast-audio

Buildroot for the OtterCast Audio V2 *pfot*
GNU General Public License v2.0
8 stars 6 forks source link

USB host mode doesn't work #27

Open Manawyrm opened 3 years ago

Manawyrm commented 3 years ago
&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 commented 3 years ago
# 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.