Message ID | 20200526033220.20047-1-frank.wang@rock-chips.com |
---|---|
Headers | show |
Series | Add Rockchip RK3399 USB3.0 Host support | expand |
On Tue, May 26, 2020 at 9:02 AM Frank Wang <frank.wang at rock-chips.com> wrote: > > This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host support. > > The function has been tested pass on rk3399-evb and roc-rk3399-pc board. > > For V6 update: > - Use [PATCH v6 04/16] instead of [PATCH v5 05/16] to fix that the current > Generic PHY subsystem is unable to find PHY if the PHY node is not part of > the root structure. > - Add 'Reviewed-by' tag for all patches except [PATCH v6 04/16]. > > For V5 update: > - Fix dwc3-generic driver followed Marek's comments for [PATCH v4 12/16]. > - Add 'Reviewed-by' and 'Tested-by' tag for [PATCH v4 07/16] and [PATCH v4 08/16]. > > For V4 update: > - Collect Jagan's all fixed patches [1]. > - Amend specific u-boot changes from dts to dtsi for [PATCH v3 6/7]. > > For V3 update: > - Fix compile error for [PATCH v2 1/9]. > - Use Jagan's Type-C driver instead of [PATCH v2 5/9]. > - Cleanup dts changes for [PATCH v2 7/9]. > - Cleanup config changes for [PATCH v2 8/9] and [PATCH v2 9/9]. > > For V2 update: > - Amend type-c driver followed Jagan's comments for [PATCH 5/8]. > - Fix dts commit for [PATCH 7/8]. > - Split RK3399 default config for [PATCH 8/8]. > - Add 'Reviewed-by' tag for [PATCH 1/8], [PATCH 2/8] and [PATCH 3/8]. > > [1] https://patchwork.ozlabs.org/project/uboot/cover/20200506075025.1677-1-jagan at amarulasolutions.com > > BR, > Frank > > Frank Wang (8): > arm: mach-rockchip: bind sub-nodes for rk3399_syscon > usb: dwc3: add dis_enblslpm_quirk > usb: dwc3: add dis_u2_freeclk_exists_quirk > usb: dwc3: amend UTMI/UTMIW phy interface setup > usb: dwc3: add make compatible for rockchip platform > driver: usb: drop legacy rockchip xhci driver > ARM: dts: rk3399-evb: usb3.0 host support > configs: evb-rk3399: update support usb3.0 host I have a new sandisk Type C and A storage disk. Here are the tests in roc-rk3399-pc. => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) USB 2.0 Hub [MTT] 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller => usb reset resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... 2 USB Device(s) found scanning bus dwc3 for devices... cannot reset port 1!? 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) USB 2.0 Hub [MTT] 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 => usb reset resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 2 USB Device(s) found scanning bus usb at fe3c0000 for devices... 2 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Mass Storage (480 Mb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) USB 2.0 Hub [MTT] 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller => usb reset resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... EHCI timed out on TD - token=0x80008d80 USB device not accepting new address (error=22) 2 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found => resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... 3 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) | USB 2.0 Hub [MTT] | +-3 Mass Storage (480 Mb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller => usb reset resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... EHCI timed out on TD - token=0x80008d80 USB device not accepting new address (error=22) 2 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found => usb reset resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... 3 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) | USB 2.0 Hub [MTT] | +-3 Mass Storage (480 Mb/s, 224mA) SanDisk Dual Drive 040130e3ee554b7078843f4eb331646 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller Jagan.
W dniu 26.05.2020 o 05:32, Frank Wang pisze: > This series add quirks for DWC3 and add Rockchip RK3399 USB3.0 host support. > > The function has been tested pass on rk3399-evb and roc-rk3399-pc board. > > For V6 update: > - Use [PATCH v6 04/16] instead of [PATCH v5 05/16] to fix that the current > Generic PHY subsystem is unable to find PHY if the PHY node is not part of > the root structure. > - Add 'Reviewed-by' tag for all patches except [PATCH v6 04/16]. Tested-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl> On RockPro64 (config changes attached): Model: Pine64 RockPro64 v2.1 Net: eth0: ethernet at fe300000 Hit any key to stop autoboot: 0 => usb start;usb tree starting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... 2 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (480 Mb/s, 224mA) SanDisk Ultra USB 3.0 4C530001300923104300 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller Device is Sandisk C/A pendrive. Recognized as HighSpeed in USB-C port but as SuperSpeed in USB-A one: => usb reset;usb tree resetting USB... Bus usb at fe380000: USB EHCI 1.00 Bus usb at fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb at fe380000 for devices... 1 USB Device(s) found scanning bus usb at fe3c0000 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... cannot reset port 1!? 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found USB device tree: 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (480 Mb/s, 0mA) u-boot EHCI Host Controller 1 Hub (5 Gb/s, 0mA) U-Boot XHCI Host Controller 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (5 Gb/s, 224mA) SanDisk Ultra USB 3.0 4C530001300923104300 Whatever SuperSpeed device I plug into USB-C port it gets recognized as HighSpeed only. "cannot reset port 1!?" message appears on almost (3/4) each 'usb start' and each 'usb reset' command. Also checked one of those usb-c 2 usb-a/hdmi/usb-c-charge dongles and Sandisk was recognized as HighSpeed. -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-configs-rockpro64-rk3399-update-support-usb3.0-host.patch Type: text/x-patch Size: 1525 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200526/d2cbb2a7/attachment.bin>