Hello,
I made my own board by imitating ultra96v2, and all port definitions are the same. For USB1, I just want to use USB2.0 function. I use USB3320 phy chip, and I defined my own BSP according to sensor96b BSP (Reference here: https://support.xilinx.com/s/question/0D52E00006hpPyI/petalinux-20202-doesnt-work-with-microsemi-usb3320-phy-on-zynq-ultrascale?language=en_US), disable usb3.0, and refer to here to change the device tree ( https://support.xilinx.com/s/question/0D52E00006hpJWp/make-petalinux-work-with-microsemi-usb3320-phy-on-ultrascale?language=en_US, https://support.xilinx.com/s/article/70625 )
&usb1 {
status = “okay”;
/delete-property/ clocks;
/delete-property/ clock-names;
clocks = <0x3 0x21>;
clock-names = “bus_clk”;
};
&dwc3_1 {
/delete-property/phy-names;
/delete-property/phys;
maximum-speed = “high-speed”;
snps,dis_u2_susphy_quirk ;
snps,dis_u3_susphy_quirk ;
status = “okay”;
dr_mode = “host”;
};
and change the kernel kconfig in petalinux refer to: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842272/Zynq+Linux+USB+Device+Driver, https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841729/Zynq+Ultrascale+MPSOC+Linux+USB+device+driver
and I rebuilt pynqv2.5 of ultra96v2 based on the above changes.
However, the usb3320 is still unrecognizable, but it has a 60MHz clock output, the CPEN pin is always low. I also try this: https://support.xilinx.com/s/article/72376?language=en_US, but it still doesn’t work.
This is the output of lsusb. USB0 is same as ultra96, and is normal, I can access jupyter through usb0.
xilinx@pynq:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
xilinx@pynq:~$ dmesg | grep USB
[ 2.488399] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 2.488749] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 2.488948] usbserial: USB Serial support registered for generic
[ 2.489018] usbserial: USB Serial support registered for carelink
[ 2.489048] usbserial: USB Serial support registered for zio
[ 2.489079] usbserial: USB Serial support registered for funsoft
[ 2.489107] usbserial: USB Serial support registered for flashloader
[ 2.489134] usbserial: USB Serial support registered for google
[ 2.489163] usbserial: USB Serial support registered for libtransistor
[ 2.489192] usbserial: USB Serial support registered for vivopay
[ 2.489221] usbserial: USB Serial support registered for moto_modem
[ 2.489251] usbserial: USB Serial support registered for motorola_tetra
[ 2.489282] usbserial: USB Serial support registered for novatel_gps
[ 2.489311] usbserial: USB Serial support registered for hp4x
[ 2.489337] usbserial: USB Serial support registered for suunto
[ 2.489366] usbserial: USB Serial support registered for siemens_mpi
[ 2.490197] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[ 2.522162] usbhid: USB HID core driver
[ 5.280258] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 5.303920] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 5.312191] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.336199] hub 1-0:1.0: USB hub found
[ 5.349590] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 5.357255] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 5.372088] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[ 5.380356] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.404299] hub 2-0:1.0: USB hub found
And I tried to start USB in the u-boot phase, but it still can’t succeed, this is output:
ZynqMP> usb start
starting USB…
USB0: Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices… 1 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
ZynqMP> usb tree
USB device tree:
1 Hub (5 Gb/s, 0mA)
U-Boot XHCI Host Controller
ZynqMP> usb storage
No storage devices, perhaps not 'usb start’ed…?
ZynqMP> usb reset
resetting USB…
USB0: Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices… 1 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
ZynqMP> usb tree
USB device tree:
1 Hub (5 Gb/s, 0mA)
U-Boot XHCI Host Controller
I removed the usb5744 HUB chip of ultra96v2 and conducted the above test. It is still the same problem.
So, I wonder what I should do? Will the function of USB2 be destroyed in the process of rebuilding pynq? Do I have to use the function of usb3? Thank you very much, this problem has bothered me for a long time.
The new BSP enables the function of usb3, which can be used normally in the ultra96v2 development board. So I think it should not be the problem of BSP. Thank you. This is hdf, tcl, hwh file.
sensors96b.tcl (48.8 KB)
sensors96b.hdf (915.5 KB)
sensors96b.hwh (281.5 KB)