Use USB0 to flash the system

As our design we can‘t use Type-c and Micro USB,only want keep USB0 testpiont to download the software to Xavier by production jig;so how to design USB0 ,only :VUBS, USB0_DP,USB0_DN,GND four points are ok?

That’s OK for flash only.

but why the carrier board as P2822 can not use J501 to flash the software?and we connect the USB0 to the J501 micro usb by hardware.

It is J512 for flash on P2822 which is not for USB0 to J501, you need to follow the example in OEM DG Figure 21 USB 3.1 USB Micro AB Connection Example Supporting Device & Host Modes & USB 2.0 Recovery Mode to do the design.