News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

TE0729 USB

Started by chris_est, October 12, 2016, 09:47:50 AM

Previous topic - Next topic

chris_est

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).

The USB port, tested on the TEB0729 (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) says so, but i can not find any further information on what to change or add to the Kernel / DeviceTree

JH

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

chris_est

Hi,

I found the Zynq Linux USB Device Driver Wiki Page from Xilinx: 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!

Antti Lukats

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..