For example, if the project you compiled is isinstru, Mod kernel/arch/arm/boot/dts/qcom/isinstru.dtsi, add the context below.
&usb_otg {
qcom,hsusb-otg-mode = <3>;
interrupts = <0 134 0>,<0 140 0>,<0 136 0>;
interrupt-names = "core_irq", "async_irq", "phy_irq";
simotg,vbus_use_ldo;
simotg,vbus_ldo_en_pin = <&msm_gpio 112 0>;
};
In this case, we use a "gpio 112" to control the switch of otg power, you must config it according to your hardware.