I'm trying to get the Orange Pi One Plus' OTG port to function in "otg" or "peripheral" mode. I've modified the device tree configuration to change the "dr_mode" from "host" to "peripheral". This works as long as the Orange Pi One Plus and the device are separated by a hub. If directly connected via an OTG cable/adapter the device instead charges from the Orange Pi One Plus. I assume this would be due to the OTG port acting as a power source rather than a power sink. However, after experimenting I've been unable to find a device tree configuration change the role of the vbus.
Does anybody have any advice?