How to change USB0 to host mode

I use USB0+ UPHY LANE1 for host mode. But P3737 DEMO use USB0+ UPHY LANE1 for type C USB3.2 mode,can be host,device or OTG mode. Can NVIDIA supply the method how to change SDK? In host mode,we need control F54(USB_VBUS_EN0) used for VBUS control and control L57(SOC_GPIO33) for over current detect.

Method is over here.
https://docs.nvidia.com/jetson/archives/r35.4.1/DeveloperGuide/text/HR/JetsonModuleAdaptationAndBringUp/JetsonAgxOrinSeries.html?highlight=universal#porting-the-universal-serial-bus

YK1111-TYPE A DEMO difference.pdf (193.6 KB)

The device configuration mentioned in the document is available in “Jetson_ Linux_ R35.3.1_ Aarch64“ not found:

Download the source code from here.

Brother, which configuration file is the link you provided in?

Our module is p3701.

When compiling the kernel, an error occurred during compilation. How to resolve this issue?

report error log:
zdx@zdx-ThinkPad-T14-Gen-1:~/orin/public/Linux_for_Tegra/source/public/kernel$ ./nvbuild.sh -o /home/zdx/orin/l4t-gcc/out/
Building kernel-5.10 sources
make: 进入目录“/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10”
make[1]: 进入目录“/home/zdx/orin/l4t-gcc/out”
GEN Makefile

No change to .config

make[1]: 离开目录“/home/zdx/orin/l4t-gcc/out”
make: 离开目录“/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10”
make[1]: 进入目录“/home/zdx/orin/l4t-gcc/out”
GEN Makefile
make[1]: 离开目录“/home/zdx/orin/l4t-gcc/out”
CALL /home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/atomic/check-atomics.sh
CALL /home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/platform/tegra/mce/tegra-mce.o
AR drivers/virt/vboxguest/built-in.a
AR drivers/virt/built-in.a
CC drivers/media/platform/tegra/camera/csi/csi2_fops.o
/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/nvidia/drivers/media/platform/tegra/camera/csi/csi2_fops.c: 在函数‘csi2_start_streaming’中:
/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/nvidia/drivers/media/platform/tegra/camera/csi/csi2_fops.c:295:25: 错误: this ‘if’ clause does not guard… [-Werror=misleading-indentation]
295 | if (err)
| ^~
/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/nvidia/drivers/media/platform/tegra/camera/csi/csi2_fops.c:298:33: 附注: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
298 | cil_settletime = 0;
| ^~~~~~~~~~~~~~
cc1:所有的警告都被当作是错误
make[7]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/Makefile.build:281:drivers/media/platform/tegra/camera/csi/csi2_fops.o] 错误 1
make[6]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/Makefile.build:498:drivers/media/platform/tegra/camera/csi] 错误 2
make[5]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/Makefile.build:498:drivers/media/platform/tegra/camera] 错误 2
make[4]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/Makefile.build:498:drivers/media/platform/tegra] 错误 2
make[3]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/Makefile.build:498:drivers/media/platform] 错误 2
make[2]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/scripts/Makefile.build:498:drivers/media] 错误 2
make[2]: *** 正在等待未完成的任务…
CC drivers/mailbox/mailbox.o
CC drivers/platform/tegra/mce/tegra18x-mce.o
CC drivers/platform/tegra/mc/mc.o
CC drivers/platform/tegra/mce/tegra19x-mce.o
CC drivers/mailbox/pcc.o
CC drivers/mailbox/tegra-hsp.o
AR drivers/mailbox/built-in.a
CC drivers/platform/tegra/mc/mcerr.o
CC drivers/platform/tegra/mc/mcerr-t21.o
CC drivers/platform/tegra/mce/tegra23x-mce.o
AR drivers/platform/tegra/mce/built-in.a
CC drivers/platform/tegra/mc/fixed_point.o
CC drivers/platform/tegra/mc/latency_allowance.o
CC drivers/platform/tegra/dce/dce-reset.o
CC drivers/platform/tegra/dce/dce-ast.o
CC drivers/platform/tegra/dce/dce-hsp-smb.o
CC drivers/platform/tegra/aon/tegra-aon-reset.o
CC drivers/platform/tegra/dce/dce-hsp-ss.o
CC drivers/platform/tegra/dce/dce-worker.o
CC drivers/platform/tegra/mc/isomgr-pre_t19x.o
CC drivers/platform/tegra/aon/tegra-aon-hsp.o
CC drivers/platform/tegra/mc/isomgr-t19x.o
CC drivers/platform/tegra/mc/tegra21x_la.o
CC drivers/platform/tegra/dce/dce-fsm.o
CC drivers/platform/tegra/aon/tegra-aon-ast.o
CC drivers/platform/tegra/aon/aon-hsp-mbox-client.o
CC drivers/platform/tegra/aon/tegra-aon-mail.o
CC drivers/platform/tegra/aon/tegra-aon-debug.o
CC drivers/platform/tegra/aon/tegra-aon-module.o
CC drivers/platform/tegra/mc/isomgr.o
AR drivers/platform/tegra/aon/built-in.a
CC drivers/platform/tegra/dce/dce-init-deinit.o
CC drivers/platform/tegra/dce/dce-mailbox.o
CC drivers/platform/tegra/mc/emc_bwmgr-t21x.o
CC drivers/platform/tegra/mc/emc_bwmgr.o
CC drivers/platform/tegra/psc/tegra23x_psc_mailbox.o
CC drivers/platform/tegra/mc/emc_bwmgr-t18x.o
CC drivers/platform/tegra/hwpm/os/linux/tegra_hwpm_debugfs.o
CC drivers/platform/tegra/psc/psc_debug.o
CC drivers/platform/tegra/dce/dce-admin.o
CC drivers/platform/tegra/dce/dce-bootstrap.o
AR drivers/platform/tegra/psc/built-in.a
CC drivers/platform/tegra/hwpm/os/linux/tegra_hwpm_linux.o
CC drivers/platform/tegra/hwpm/os/linux/tegra_hwpm_ip.o
CC drivers/platform/tegra/rtcpu/camera-diagnostics.o
CC drivers/platform/tegra/hwpm/os/linux/tegra_hwpm_io.o
AR drivers/platform/tegra/powergate/built-in.a
CC drivers/platform/tegra/mc/emc_bwmgr-t19x.o
CC drivers/platform/tegra/mc/tegra-mc-sid.o
CC drivers/platform/tegra/dce/dce-ipc.o
CC drivers/platform/tegra/hwpm/os/linux/tegra_hwpm_log.o
CC drivers/platform/tegra/central_actmon/actmon_common.o
CC drivers/platform/tegra/rtcpu/ivc-bus.o
CC drivers/platform/tegra/mc/mcerr_ecc_t18x.o
CC drivers/platform/tegra/hwpm/os/linux/tegra_hwpm_ioctl.o
CC drivers/platform/tegra/rtcpu/debug.o
AR drivers/platform/tegra/central_actmon/built-in.a
CC drivers/platform/tegra/dce/dce-ipc-signal.o
CC drivers/platform/tegra/dce/dce-client-ipc.o
CC drivers/platform/tegra/mc/mc_addr_translate.o
CC drivers/platform/tegra/rtcpu/tegra-sysfs-mbox.o
CC drivers/platform/tegra/nvaudio_ivc/tegra_virt_alt_ivc.o
CC drivers/platform/tegra/mc/mcerr-t18x.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_alist_utils.o
CC drivers/platform/tegra/dce/dce-pm.o
CC drivers/platform/tegra/dce/dce-module.o
AR drivers/platform/tegra/nvaudio_ivc/built-in.a
CC drivers/platform/tegra/mc/tegra18_emc.o
CC drivers/platform/tegra/rtcpu/vi-notify.o
CC drivers/platform/tegra/rtcpu/hsp-mailbox-client.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_aperture_utils.o
CC drivers/platform/tegra/rtcpu/camchar.o
CC drivers/platform/tegra/dce/dce-util-common.o
CC drivers/platform/tegra/dce/dce-debug.o
AR drivers/platform/tegra/dce/built-in.a
CC drivers/platform/tegra/rtcpu/clk-group.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_regops_utils.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_ip_utils.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_resource_utils.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_mem_buf_utils.o
CC drivers/platform/tegra/rtcpu/device-group.o
CC drivers/platform/tegra/rtcpu/reset-group.o
CC drivers/platform/tegra/rtcpu/rtcpu-monitor.o
CC drivers/platform/tegra/hwpm/common/tegra_hwpm_init.o
CC drivers/platform/tegra/rtcpu/tegra-ivc-rpc-test.o
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_alist_utils.o
CC drivers/platform/tegra/rtcpu/tegra-ivc-rpc.o
CC drivers/platform/tegra/mc/tegra18x_la.o
CC drivers/platform/tegra/cvnas/cvnas.o
CC drivers/platform/tegra/cache/tegra-cache.o
CC drivers/platform/tegra/rtcpu/capture-ivc.o
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_aperture_utils.o
CC drivers/platform/tegra/mc/tegra186-mc-sid.o
CC drivers/platform/tegra/cache/tegra18x-cache.o
CC drivers/platform/tegra/mc/tegra_fd.o
AR drivers/platform/tegra/cvnas/built-in.a
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_interface_utils.o
CC drivers/platform/tegra/cache/tegra19x-cache.o
AR drivers/platform/tegra/cache/built-in.a
CC drivers/platform/tegra/tegra-hv-mode.o
CC drivers/platform/tegra/tegra-safety-build.o
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_ip_utils.o
CC drivers/platform/tegra/uncore_pmu/tegra23x_perf_uncore.o
CC drivers/platform/tegra/rtcpu/tegra-rtcpu-trace.o
CC drivers/platform/tegra/mc/tegra19x_la_ptsa_core.o
AR drivers/platform/tegra/uncore_pmu/built-in.a
CC drivers/platform/tegra/mc/tegra19x_la_ptsa.o
CC drivers/platform/tegra/mc/tegra194-mc-sid.o
CC drivers/platform/tegra/panel-simulator.o
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_mem_buf_utils.o
CC drivers/platform/tegra/rtcpu/syncpt-display-channel.o
CC drivers/platform/tegra/tegra-aon.o
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_regops_allowlist.o
CC drivers/platform/tegra/mc/tegra234-mc-sid.o
CC drivers/platform/tegra/mc/mcerr-t19x.o
CC drivers/platform/tegra/tegra-camera-rtcpu.o
CC drivers/platform/tegra/mc/mcerr-t23x.o
CC drivers/platform/tegra/rtcpu/tegra-rtcpu-coverage.o
CC drivers/platform/tegra/tegra-aon-ivc-echo.o
CC drivers/platform/tegra/hwpm/hal/t234/t234_hwpm_resource_utils.o
CC drivers/platform/tegra/hwpm/hal/t234/ip/pma/t234_hwpm_ip_pma.o
CC drivers/platform/tegra/mc/mc_utils.o
CC drivers/platform/tegra/mc/mc-hwpm.o
CC drivers/platform/tegra/hwpm/hal/t234/ip/nvdla/t234_hwpm_ip_nvdla.o
CC drivers/platform/tegra/hwpm/hal/t234/ip/rtr/t234_hwpm_ip_rtr.o
AR drivers/platform/tegra/rtcpu/built-in.a
CC drivers/platform/tegra/hwpm/hal/t234/ip/pva/t234_hwpm_ip_pva.o
AR drivers/platform/tegra/mc/built-in.a
CC drivers/platform/tegra/hwpm/hal/t234/ip/mss_channel/t234_hwpm_ip_mss_channel.o
AR drivers/platform/tegra/hwpm/built-in.a
CC drivers/platform/tegra/reboot-t18x.o
CC drivers/platform/tegra/pm-tegra186.o
CC drivers/platform/tegra/cactmon_t21x.o
CC drivers/platform/tegra/ptp-notifier.o
CC drivers/platform/tegra/cactmon.o
CC drivers/platform/tegra/tegra186_aondbg.o
CC drivers/platform/tegra/denver-knobs.o
CC drivers/platform/tegra/tegra-safety-ivc.o
CC drivers/platform/tegra/tegra-safety-dev.o
CC drivers/platform/tegra/tegra_l1ss_kernel_interface.o
CC drivers/platform/tegra/tegra_l1ss_cmd_resp_l2_interface.o
CC drivers/platform/tegra/tegra_vpr.o
CC drivers/platform/tegra/firmwares.o
CC drivers/platform/tegra/mselect.o
CC drivers/platform/tegra/tegra_bootloader_debug_init.o
CC drivers/platform/tegra/firmwares-all.o
CC drivers/platform/tegra/tegra_l1ss.o
CC drivers/platform/tegra/clocks-config.o
CC drivers/platform/tegra/tegra_prod.o
CC drivers/platform/tegra/tegra-ivc.o
CC drivers/platform/tegra/tegra-epl.o
CC drivers/platform/tegra/tegra-uss-io-proxy.o
CC drivers/platform/tegra/tegra-fsicom.o
AR drivers/platform/tegra/built-in.a
AR drivers/platform/built-in.a
make[1]: *** [/home/zdx/orin/public/Linux_for_Tegra/source/public/kernel/kernel/kernel-5.10/Makefile:1854:drivers] 错误 2
make: *** [Makefile:213:__sub-make] 错误 2

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Is this still an issue to support? Any result can be shared?