On the #postmarketOS wiki for the #oneplus enchilada (OnePlus 6/6T), it states that you can enable host USB mode using:
# echo host | sudo tee /sys/kernel/debug/usb/a600000.usb/mode
On my oneplus-fajita (6T) I do this and it still returns "device" no matter what. I've tried echo -n "host" as well. Has anyone else confirmed that this USB mode switching is possible on fajita? Looking at the dts for sdm845-mainline, the usb setup is referenced in a common file so I would expect them identical.
I tried the dtc editing method instead and now I have host mode! Will test the controller when I get home.
Yay! It at least detects my USB-C dock with its Realtek Ethernet adapter, and it is charging from the external power too!
@CalcProgrammer1 Would you like to share the commands? Thanks
@tomasoqvist https://wiki.postmarketos.org/wiki/OnePlus_6_(oneplus-enchilada)#OTG_doesn't_work
I followed the steps there to modify the dts.
@CalcProgrammer1 I get a lot of warning messages, e.g. "temp.dts:6346.3-27: Warning (gpios_property): /panel-vddi-poc-regulator:gpio: cell 0 is not a phandle reference".
Did you get the same?
@CalcProgrammer1 Ok, good to know. I also got "host" mode after following the instructions.