GENIO 510 - How to set CSI port polarity swap for data lanes and clock lane

Hello,

we want to swap the polarity of the camera CSI port for all data lanes and the clock lane.

Are there any methods (device tree or hardware registers) do to so ?

regards

Michael

Hi @Michael_Steinel ,

To clarify, are you asking about the flexibility of re-assigning the MIPI-CSI lane order, such as switching between clock and data lanes? If so, could you please share the motivation behind this?

According to the Hardware Design Notice, the lane mapping is defined based on the operating mode (DPHY/CPHY and Normal/Split). Currently, only the Normal mode is supported. You can find the detailed pin-to-signal mapping table in the document MT8370 Application Processor Schematic and PCB Design Notice.

For your immediate reference, here is the relevant snippet:

CSI# Pad Name DPHY Normal (4-lane)
CSI-0 CSI0A_L0P_T0A RDP2
4D CSI0A_L0N_T0B RDN2
CSI0A_L1P_T0C RDP0
CSI0A_L1N_T1A RDN0
CSI0A_L2P_T1B RCP
CSI0A_L2N_T1C RCN
CSI0B_L0P_T0A RDP1
CSI0B_L0N_T0B RDN1
CSI0B_L1P_T0C RDP3
CSI0B_L1N_T1A RDN3
CSI0B_L2P_T1B N/A
CSI0B_L2N_T1C N/A

Thanks

Hi @andy.hsieh,

we want to use swapped connector pads for P and N for better routing the CSI port signals, through the PCB layout.

Is it possible to swap P and N pads mapping per software switch ?

i.e map

CSI0A_L0P_T0A to RDN2
CSI0A_L0N_T0B to RDP2

etc. for other lanes and clock

With NVIDIA SOCs this is possible

see CSI diff pair polarity swap - Jetson Orin Nano - NVIDIA Developer Forums

Regards

Michael

Hi @Michael_Steinel ,

The SoC does not support P/N polarity swapping at the hardware level. Furthermore, there is currently no software interface available to adjust lane configurations for this purpose.

To ensure proper functionality, we kindly recommend adhering to the layout guidelines specified in our Design Notice.

Thanks.