AGX Question : Changing USB Type C OTG port to device only 2.0 port

Hi DaneLLL,

Thanks for your reply.

It looks like you only have usb2-0 on the custom board.
You would need to remove usb2-1,usb2-2,usb2-3,usb3-0,usb3-2,usb3-3 from device tree.

usb2-0 is used as device mode for sdkmanager connection.
Others (usb2/3-1/2/3) are used as host mode.
My goal is to set usb2-0 as device mode instead of otg mode.

I found that “RNDIS failed with USB 2.0 - #10 by DaneLLL” is similar to my question. I’m trying to modify “tegra194-p2888-0001-p2822-0000-common.dtsi” and it seems to me that it is about different dtsi file.

And add VBUS pin by setting vbus-supply.
For more detail, please refer to Porting USB in adaptation guide.

Yes, that is exactly what I want to do.
When I read the “Porting USB” section, I can see

Under the extcon Node (Not Used on the P2822 Carrier Board)

So the description does not fit to “tegra194-p2888-0001-p2822-0000-common.dtsi”.

	ucsi_ccg: ucsi_ccg@8 {
		status = "okay";
		typec-extcon {
			typec_port0: port-0 {
				status = "okay";
				#extcon-cells = <1>;
                cable-connected-on-boot = <0>;
			};
			typec_port1: port-1 {
				status = "okay";
				#extcon-cells = <1>;
                cable-connected-on-boot = <1>;
			};
		};
		/*typec-pd {
			typec_pd: pd {
				status = "okay";
				#extcon-cells = <1>;
			};
		};*/
	};
};

The above is a sketch of my idea. I want to hard-code vbus and id signal value without actual extcon cable for device mode. But I can’t find a document to do it.
Would you help me please?

Best regards,
Hugh Chang