Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: chris_est on October 12, 2016, 09:47:50 AM

Title: TE0729 USB
Post by: chris_est on October 12, 2016, 09:47:50 AM
Hello,

I used the prebuilt images from your 2016.02/test-board project for the TE0729 Zynq Board (https://wiki.trenz-electronic.de/display/PD/TE0729+TRM (https://wiki.trenz-electronic.de/display/PD/TE0729+TRM)).

The USB port, tested on the TEB0729 (https://wiki.trenz-electronic.de/display/PD/TEB0729+TRM (https://wiki.trenz-electronic.de/display/PD/TEB0729+TRM)) does not seem to work. Are there any modifications necessary to make USB available ?

Your wiki page (https://wiki.trenz-electronic.de/display/PD/Zynq+USB (https://wiki.trenz-electronic.de/display/PD/Zynq+USB)) says so, but i can not find any further information on what to change or add to the Kernel / DeviceTree
Title: Re: TE0729 USB
Post by: JH on October 12, 2016, 10:49:41 AM
Hello,

the petalinux of the reference design is not configured for usb usage.
See short description on the download site (PetaLinux Project with I2C, RTC, 3x Ethernet ): https://shop.trenz-electronic.de/en/Download/?path=Trenz_Electronic/TE0729/Reference%20Designs/2016.2/test_board
You must activate usb on device tree (it's not done automatically by petalinux) and configure petalinux (use USB as Master,Slave, Storage...).
Here is a little Kickstart description for petalinux and xilinx petalinux documentation references: https://wiki.trenz-electronic.de/display/PD/PetaLinux+KICKstart
Some other basic documentations: https://wiki.trenz-electronic.de/pages/viewpage.action?pageId=14746264

br
John
Title: Re: TE0729 USB
Post by: chris_est on October 12, 2016, 03:28:12 PM
Hi,

I found the Zynq Linux USB Device Driver Wiki Page from Xilinx: http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver (http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver)
and tested the configuration for USB Host.

Kernel configuration was changed based on the Xilinx Wiki Page.
DeviceTree changes in system-top.dts:


/dts-v1/;
/include/ "system-conf.dtsi"
/ {
    usb_phy0: usb_phy0@0 {
        compatible = "ulpi-phy";
        #phy-cells = <0>;
        reg = <0xe0002000 0x1000>;
        view-port = <0x170>;
        drv-vbus;
    };
};

&usb0 {
    dr_mode = "host";
    usb-phy = <&usb_phy0>;
};


Now the 5V can be measure on the USB Port and it detects a Mass-Storage Device!
Title: Re: TE0729 USB
Post by: Antti Lukats on October 13, 2016, 03:49:57 PM
the Xilinx.com linux wiki pages are sometimes badly outdated.

and the devicetree entries depend the petalinux version you use, the USB driver was changed not so long ago, also the devicetree changed.

So this must always be kept in sync with the linux version..