Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
489 Discussions

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

sunyeong
Beginner
315 Views

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.

 

0 Kudos
5 Replies
Jeet14
Employee
254 Views
0 Kudos
sunyeong
Beginner
245 Views

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.

 

 

0 Kudos
Jeet14
Employee
165 Views

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


0 Kudos
sunyeong
Beginner
104 Views

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.

0 Kudos
Jeet14
Employee
18 Views

Hi,


Apologies for delayed response.

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


Regards

Tiwari


0 Kudos
Reply