Xavier NX's PCIe interfaces / reference clocks

Your understanding is correct that when NX is operating as root port, it drives refclk for the endpoints and when it is operating as an end point, refclk needs to be supplied to it from the host where it would be connected to as an endpoint.