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.

Show thread

Yay! It at least detects my USB-C dock with its Realtek Ethernet adapter, and it is charging from the external power too!

Show thread
Follow

@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?

@tomasoqvist Yeah, it does gove a bunch of warnings but it still works.

@CalcProgrammer1 Ok, good to know. I also got "host" mode after following the instructions.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml