This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: USB vendor ID and product ID

Part Number: AM3358


Hi,

To enable the Generic Serial driver to recognize am3358 device. The purpose is to generate /dev/ttyUSBxx devices in user space.
When insmod usbserial.ko , need device vendors ID and product ID. What is the vendors ID and product ID?


Best Regards
Andre

  • Hi Andre,

    The Vendor ID and Product ID are written in the usb_vid_pid Register (read only values) described in the AM335x TRM section 9.3.1.47 at product page:
    www.ti.com/.../AM3358
    but default values are USB Vendor ID = 0x451 and USB Product ID = 0x6141

    BR
    Tsvetolin Shulev
  • Andre,
    The correct VID/PID will be provided to the Host as part of USB enumeration based on the USB Device module you have loaded (gadget/MSC/etc.).

    Please provide more detail on what you are trying to accomplish.
  • Hi,

    When I load the driver, I report the following mistakes. 

    The  usbserial.ko  is in the am335x_03_03_SDK file system.  The command is executed after the am3358 board is powered on again.

    How can I solve this problem?

    BR

    Andre

  • usbserial.ko is the host class driver to support usb serial devices attached to the host port. What is the usb serial device you attach to the usb port? Normally you don't need to pass the vid:pid to usbserial.ko at all, the usb core driver should get those info from the enumeration and pass them to usbserial.ko.
  • Hi,

    The hardware circuit is shown in the following picture:

                           

    A USB line is used to connect the P4 port to the PC, and the PC side uses the tool to open the /dev/ttyUSBxxx and communicate with the am3358.

    How do you configure the USB in the device tree?

    What do you suggest about the usb-serial driver?

    BR 

    Andre

  • andre feng said:
    How do you configure the USB in the device tree?

    This design uses USB0 in device mode, which is the same as that in the AM335x Starter Kit, or BeagleBone Black. You can refer to those device tree settings.

    andre feng said:
    What do you suggest about the usb-serial driver?

    On AM335x? Or Host PC?

    What usb gadget function do you want AM335x USB0 to be?

  • Hi,

    When I load the usb-serial.ko driver on the AM3358 board USB0, can generate the /dev/ttyUSB0 device on the PC(ubuntu 14.04).  

    Use /dev/ttyUSB0 interface from userspace to talk to the am3358 device.

    The device tree is configured as follows:

    &usb0 {

      status = "okay";

      dr_mode = "peripheral";

    };

    1  Load usb-serial.ko driven error reporting

     

    How to solve this problem? 

  • If you want to use USB0 on AM335x to be a usb serial device, usb-serial.ko is not what you need, It will not generate /dev/ttyUSB* on the USB host. Please read kernel doc "Documentation/usb/usb-serial.txt" for more details about usb-serial.ko. You also need to read dmesg on the host PC and other logs to understand what generated /dev/ttyUSB0 on your PC.

    To use USB0 on AM335x as a usb serial device, you can use command 'modprobe g_serial.ko' on AM335x.