How to enable OTG in device mode in JetsonTX1

Hi,
I want to use JetsonTX1 as pointing device. I understand that to make pointing device first the OTG slot shall be converted to device mode. I am not from embedded background So, Can I get detail explanation for changing the config and change mode of OTG.

Thank You.

Hi bhatshashank8,

Please refer to
https://devtalk.nvidia.com/default/topic/952472/jetson-tx1/jtx1_usb_as-device/post/5205745/#5205745

Thanks

On the USB side you might be interested in:
https://www.kernel.org/doc/Documentation/usb/
…once there look at anything with “gadget” in its name. The “gadget” interface is a kind of template for various known devices. It is up to you to write the actual device code (or some subset of information defining the device). A mouse, keyboard, or joystick would be a Human Interface Device (the generic “HID” class).