cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
852 Views
Registered: ‎12-18-2018

ZCU104 External USB Hub

Jump to solution

Hi,

I have a basic design for the ZCU104 devkit which includes the PS and a Petalinux build. In an attempt to utilize multple USB devices, I tried plugging the included external USB hub into the USB port on the board and I receive the response seen in the attached screenshot.image.png

I am not a Linux expert, but I tried to do some debugging and it would seem that the necessary USB drivers are enabled and show up in the device tree.

Any help would be greatly appreciated.

Thanks,

Ezra

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
780 Views
Registered: ‎05-10-2017

Re: ZCU104 External USB Hub

Jump to solution

Your device-tree is for USB 2.0

Could you please check your pcw settings and make sure you have USB 3.0 selected? Your node should look like below

			dwc3@fe200000 {
				compatible = "snps,dwc3";
				status = "okay";
				reg = <0x0 0xfe200000 0x0 0x40000>;
				interrupt-parent = <0x4>;
				interrupts = <0x0 0x41 0x4 0x0 0x45 0x4 0x0 0x4b 0x4>;
				#stream-id-cells = <0x1>;
				iommus = <0xa 0x860>;
				snps,quirk-frame-length-adjustment = <0x20>;
				snps,refclk_fladj;
				snps,enable_guctl1_resume_quirk;
				snps,enable_guctl1_ipd_quirk;
				snps,xhci-stream-quirk;
				dr_mode = "host";
				snps,usb3_lpm_capable;
				phy-names = "usb3-phy";
				phys = <0x32 0x4 0x0 0x2 0x18cba80>;
				maximum-speed = "super-speed";
			};
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

6 Replies
Highlighted
Moderator
Moderator
813 Views
Registered: ‎05-10-2017

Re: ZCU104 External USB Hub

Jump to solution

Could you please share your device-tree? Do you want to use it as USB 2.0 or USB 3.0?

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
799 Views
Registered: ‎12-18-2018

Re: ZCU104 External USB Hub

Jump to solution

Hi

I have attached the device tree files. I need to be able to use it as USB 3.0. Also, I have tried the same configuration with both Petalinux 2018.2 and 2018.3. Both have given the same results. I am currently using 2018.2 and would like to continue, if possible.

Thanks,

Ezra

0 Kudos
Highlighted
Moderator
Moderator
792 Views
Registered: ‎05-10-2017

Re: ZCU104 External USB Hub

Jump to solution

Please decompile the system.dtb from the images/linux folder and send that. Or just copy just the usb and dwc3 nodes here

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
785 Views
Registered: ‎12-18-2018

Re: ZCU104 External USB Hub

Jump to solution

Hi

Here is the decomposed system.dtb file. I wasn't able to upload the file directly so I had to zip it.

Thanks,

Ezra

0 Kudos
Highlighted
Moderator
Moderator
781 Views
Registered: ‎05-10-2017

Re: ZCU104 External USB Hub

Jump to solution

Your device-tree is for USB 2.0

Could you please check your pcw settings and make sure you have USB 3.0 selected? Your node should look like below

			dwc3@fe200000 {
				compatible = "snps,dwc3";
				status = "okay";
				reg = <0x0 0xfe200000 0x0 0x40000>;
				interrupt-parent = <0x4>;
				interrupts = <0x0 0x41 0x4 0x0 0x45 0x4 0x0 0x4b 0x4>;
				#stream-id-cells = <0x1>;
				iommus = <0xa 0x860>;
				snps,quirk-frame-length-adjustment = <0x20>;
				snps,refclk_fladj;
				snps,enable_guctl1_resume_quirk;
				snps,enable_guctl1_ipd_quirk;
				snps,xhci-stream-quirk;
				dr_mode = "host";
				snps,usb3_lpm_capable;
				phy-names = "usb3-phy";
				phys = <0x32 0x4 0x0 0x2 0x18cba80>;
				maximum-speed = "super-speed";
			};
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

Highlighted
Observer
Observer
762 Views
Registered: ‎12-18-2018

Re: ZCU104 External USB Hub

Jump to solution

Hi

I checked the pcw and it reads that I have USB2.0 selected. The other odd thing is when I run the "petalinux-config -c kernel" command, the gui shows that I have 3.0 enabled and 2.0 disabled. No matter what, I was able to fix this by copying the settings you posted into system.dts and recompiling. It works fine now.

Thanks for your help,

Ezra

0 Kudos