Bringup toshiba tc358840 mipi csi-2 IC

hello znroee,

you may refer to kernel driver,
the reported failure 0x4000 is due to pixel parser.
for example,

int tegra_csi_error(struct tegra_csi_channel *chan, int port_idx)
  	val = pp_read(port, TEGRA_CSI_PIXEL_PARSER_STATUS);
  	err |= val & 0x4000;
  	pp_write(port, TEGRA_CSI_PIXEL_PARSER_STATUS, val);

you may see-also similar discussion threads,
for example, Topic 77250, and Topic 121110 to port the driver to Nano series.