I was playing around with an Elipsa (SW 4.38.21908) and got OTG to work earlier today. I did not see a post so I'm adding it here.
To check the current USB mode:
Code:
# cat /sys/devices/platform/soc/usbc0/otg_role
usb_device
To change it to host mode
Code:
# echo usb_host > /sys/devices/platform/soc/usbc0/otg_role
# cat /sys/devices/platform/soc/usbc0/otg_role
usb_host
To change it back to device mode
Code:
# echo usb_device > /sys/devices/platform/soc/usbc0/otg_role
A few things I tried
- I was able to mount a usb pen and use a keyboard
- devices worked both with a regular usb to usb-c adaptor and with one of those OTG usb-c splitter cables (power of usb-c and device over usb-a)
- I was unable to use a USB Ethernet dongle though (not sure why, could be drivers)
I ran out of time for today. But maybe tomorrow or next week I'll have a deeper look.