Forum Discussion

sunyeong's avatar
sunyeong
Icon for New Contributor rankNew Contributor
2 years ago

How to configure device tree and defconfig for using USB device?

Hi,

I'm using an Agilex 5E Premium Development kit board.

I'm trying to communicate with my PC via USB, and I'm planning to use this device as a device(gadget).
Can you tell me how to configure defconfig, device tree, etc. for this?

Regards,

Jung.

8 Replies

    • sunyeong's avatar
      sunyeong
      Icon for New Contributor rankNew Contributor

      Hi, Jeet14.

      Thanks for comment.

      As I know, some configuration needs for using Gadget Serial feature like below url.

      https://www.rocketboards.org/foswiki/Documentation/REFLEXCESAchillesArria10SoCSOM

      Can I use the usb-gadget.cfg mentioned in this document as Agilex5 kernel configuration?

      In device tree, the "dr_mode" property in usb node have to be added as I know.

      This property can be configured as "peripheral", "otg", or "host".

      Which value shoud I use?

      Regards,

      Jung.

  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


    You need to use the dr_mode as "host".

    I believe you are using the board USB as Host through which you are connecting the USB devices.


    Regards

    Tiwari


    • sunyeong's avatar
      sunyeong
      Icon for New Contributor rankNew Contributor

      Hi,

      I think that there is some miss commnunication.

      I said that I want to use the Developlment Kit as a gadget(device).

      And I will use My PC as a HOST.

      (FYI, In USB communication, there is a host/gadget concept.

      It is concept like between master/slave.)

      So, setting up a development board to act as a host seems a little different than what I'm asking for.

      Regards,

      Jung.

  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,


    Apologies for delayed response.

    Then you need to use the "peripheral" mode, as the PC will be the host.


    Regards

    Tiwari


  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    Hi


    Please let me know if there is any query on this.


    Regards

    Tiwari


  • Jeet14's avatar
    Jeet14
    Icon for Frequent Contributor rankFrequent Contributor

    As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


    • sunyeong's avatar
      sunyeong
      Icon for New Contributor rankNew Contributor

      Hi,

      It's been so long time since I asked. So I forgot this issue.

      It took almost a month to get this answer....

      The Devkit that I use is ES version.

      It seems that this board doesn't support USB 3.1 like below.

      So I can't check this feature for now.

      Thank you.

      Regards.