Using USB as device & host on custom carrier board

We have developed (with the help of a external part) a custom carrier board which has one usb-c port for uart debug serial communication and another for flashing & normal usage.
It works well for flashing images but I have not been able to get it to switch to host usage. From my limited understanding of the schematics it should be possible for it to switch between host and device usage during runtime so what am I doing wrong?
I’ve attached my usb device tree settings as well as the schematics of the MUX for the device/host usage.

Thanks in advance,
Fredrik

tegra234-p3768-0000.txt (4.5 KB)

Please also provide the jetson SOM side connection.

Also, your device tree won’t achieve the OTG function by just such content…

				usb2-0 {
					mode = "otg";
					vbus-supply = <&vdd_5v0_sys>;
					status = "okay";
					usb-role-switch;
				};

This part basically tells “wants to support otg”.
How to achieve is totally not mentioned.

Yes sorry here is the SOM side connection.
Oh alright, do you have any tips on what I need to add?

The resolution of this picture is not clear enough to read.

Sorry, is this better?
Schematic_v1_0_1-pages.pdf (64.6 KB)

Want to clarify some points here

Please be aware that we don’t know how is the exact mechanism of this type C controller is expected here.

This is something that should check with IC vendor.

I saw there is “VBUS_DET” and “ID” on it.

Does it expect Jetson GPIOs to be VBUS_DET and ID pins for it?

BTW, not sure if anything missing there. Shouldn’t your USB0_D_N signal be present in above type C controller too?

Here is more context from how it’s built. I’m not quite sure how to answer your previous questions without speaking to the external partner who designed it but maybe this will clarify it to some extent..

Schematic_v1_0_1-4.pdf (57.6 KB)

Please go ahead and discuss this with your partner first.

You need to figure out how your custom board hardware works first. For example, what signal they expect Jetson to do with it. Otherwise we won’t be able to tell how to write device tree.

Sounds reasonable, thank you. Will try to get in contact with them tomorrow and get back to you.

Just to update and make sure thread isn’t closed, they are currently looking into it.