Swap channels on CSI PHY & 2lane operation

Hi Guys

I have accidentally swapped D+ and D- on a CSI line to a Sony IMX274 camera - is there a way in the Jetson to swap its channels?

Also I have the first 2 lanes properly configured l, lane 3 is swapped and lane 4 is correct.

Is there anyone that knows how to configure the jetson and that camera to run in 2 lane mode?

(I’m using the Leopard camera)

Thanks
Lasse

Hi LasseRoedtnes

Change the all of bus-width and num_lanes to 2

num-channels = <6>;
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					e3333_vi_in0: endpoint {
						csi-port = <0>;
						bus-width = <2>;
						remote-endpoint = <&e3333_ov5693_out0>;
					};
				};

.....
.....
.....

						ports {
							#address-cells = <1>;
							#size-cells = <0>;
							port@0 {
								reg = <0>;
								e3333_ov5693_out0: endpoint {
									csi-port = <0>;
									bus-width = <2>;
									remote-endpoint = <&e3333_vi_in0>;
								};
							};
						};
....
....
....
....
....
....
....

						mode0 { // OV5693_MODE_2592X1944
							mclk_khz = "24000";
							num_lanes = "2";
							tegra_sinterface = "serial_b";
							discontinuous_clk = "no";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "2592";
							active_h = "1944";
							pixel_t = "bayer_bggr";
							readout_orientation = "90";
							line_length = "2688";
							inherent_gain = "1";
							mclk_multiplier = "17.0";
							pix_clk_hz = "160000000";
							min_gain_val = "1.0";
							max_gain_val = "16";
							min_hdr_ratio = "1";
							max_hdr_ratio = "64";
							min_framerate = "1.816577";
							max_framerate = "30";
							min_exp_time = "34";
							max_exp_time = "550385";
						};

Hi Shane

Thanks for you quick reply!

Do you know if there is a way to swap the one PHY channel as well?

Or does it even matter that it’s swapped if it’s a differential signal then I assume there’s no polarity?

Thanks
Lasse

Hi
No, not support lane swap config.