NVIDIA THOR CPHY LANE SWIZZLE

I want to know how to modify sources for achieving CPHY lane swapping in NVIDIA THOR.
In the solution to similar query: Jetson Thor C-PHY lane swizzle support - Jetson Systems / Jetson Thor - NVIDIA Developer Forums, it was mentioned that this is possible if we are using raw v4l2 reads. Can you please guide us how to do it? Thanks

hello curious_elektron,

could you please clarify your CPHY wiring, are you going to swap whole trios or wires within a trio?
it’s brick_config.lane_swizzle to configure lane swizzle.
for instance, exchange A0 and A1; preserve B0 and B1.

  if (is_cphy)
      brick_config.lane_swizzle = NVCSI_LANE_SWIZZLE_A1A0B0B1;