All of lore.kernel.org
 help / color / mirror / Atom feed
* Any example of USB gadget for DRD device mode on Intel Gemini Lake?
@ 2020-10-19 11:27 Dmitry N. Mikushin
  2020-10-19 13:36 ` Heikki Krogerus
  0 siblings, 1 reply; 11+ messages in thread
From: Dmitry N. Mikushin @ 2020-10-19 11:27 UTC (permalink / raw)
  To: linux-usb

Dear All,

I'm confused by the USB gadget mode on the recent Intel SoCs, such as
Gemini Lake. The /sys/class/udc is empty, and a SoC can't present
itself as a IoT gadget this way, yet definitely being designed as
such. I've noticed the concept of dual-role-device, which seems to
replace the OTG. Particularly, Harry Pan mentioned that Gemini Lake
supports DRD in port 0.

Indeed, if I do:

sudo sh -c "echo device >/sys/class/usb_role/intel_xhci_usb_sw-role-switch/role"


then one of the ports gets successfully recognized as a new USB
device, if connected with a cable to another laptop.

But I'm wondering, how exactly could I construct a logical device
class for this case, e.g. similarly to uvc gadget for OTG? Completely
lacking any example of code, currently it's a big confusion.

Thanks & Kind regards,
- Dmitry.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-10-26  7:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-19 11:27 Any example of USB gadget for DRD device mode on Intel Gemini Lake? Dmitry N. Mikushin
2020-10-19 13:36 ` Heikki Krogerus
2020-10-22 21:06   ` Dmitry N. Mikushin
2020-10-22 21:25     ` Sid Spry
2020-10-22 21:51       ` Dmitry N. Mikushin
2020-10-22 23:04         ` Sid Spry
2020-10-22 23:47           ` Dmitry N. Mikushin
2020-10-23  6:48     ` Heikki Krogerus
2020-10-23 10:08       ` Felipe Balbi
2020-10-23 22:34         ` Dmitry N. Mikushin
2020-10-26  7:11           ` Felipe Balbi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.