在设备树里面,将dwc3 USB控制器配置成peripheral模式,系统启动的时候会将USB控制器设置为设备模式,并初始化gadget相关资源,若配置成了otg模式,则只会初始化gadget相关资源,不会将dwc3控制器切换为设备模式,此时dwc3控制器处于otg模式,需要切换为设备模式(只有处于otg模式才可以切换为主机或设备)。 代码语言:javascript ...
1)首先根据"snps,dwc3"进行dts和driver的匹配,执行dwc3_probe() 在dwc3中先调用 dwc3_get_dr_mode()取得usb mode(dr_mode),这可以是otg、host或者device 3)然后调用 dwc3_core_init()初始化usb PHY interface和usb PHY,usb PHY的初始化参照第4节。 4)最后调用 dwc3_core_init_mode()初始化usb mode:...
1. driver driver/usb/dwc3/debugfs.c dwc3 probe ->dwc3 debugfs init() 回到顶部 2. enable debugfs mount -t debugfs none /sys/kernel/debug 回到顶部 3. user space path #Is /sys/kernel/debug/300000.dwc3/ link state mode regdump testmode 回到顶部 4. otg switch enable device mode echo ...
位于drivers/usb/dwc3/dwc3-rockchip.c文件中,主要初始化和CPU紧密相关的内容,如时钟、复位、电源、extcon(用于USB模式切换),另一个在synopsys提供的驱动中初始化,位于drivers/usb/dwc3/core.c文件中,这部分和USB3.0控制器密切相关,如USB3.0控制器内部寄存器地址、USB3.0的PHY、中断等。
Name: dwc_usb_3_0_host Version: 4.00b ECCN: 5E991/NLR STARs: Open and/or Closed STARs myDesignWare: Subscribe for Notifications Product Type: DesignWare Cores Overview: Product Overview Website Documentation: Show Documents... Toolsets: Qualified Toolsets Download: dw_iip_DWC_usb3 Product ...
Main features of DWC3: The SuperSpeed USB controller features: Dual-role device (DRD) capability: Same programming model for SuperSpeed (SS), High-Speed (HS), Full-Speed (FS), and Low-Speed (LS) Internal DMA controller LPM protocol in USB 2.0 and U0, U1, U2,...
1: USB disconnect, device number 3FWIW, I've moved to 6.7.0.rc2 and the mainline USB ...
usb: dwc3: core: Add DWC31 version 2.00a controller Signed-off-by: Jos Wang <joswang@lenovo.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link:https://lore.kernel.org/r/20240619114529.3441-1-joswang1221@gmail.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org...
3 changes: 2 additions & 1 deletion 3 drivers/usb/dwc3/gadget.c Original file line numberDiff line numberDiff line change @@ -315,7 +315,8 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, * * DWC_usb3 3.30a and DWC_usb31 1.90a programming guide section 3.2.2...
Description:USB 3.0 PHY, SMIC 40LL25 x1 Name:dwc_usb3phy_otg-smic40ll-x1 Version:2.05c ECCN:5E991/NLR STARs:Open and/or Closed STARs myDesignWare:Subscribe for Notifications Product Type:DesignWare Cores Overview:Product Overview Website ...