Hi Jacopo, > - ret = ov5640_mod_reg(sensor, OV5640_REG_MIPI_CTRL00, BIT(5), > - on ? 0 : BIT(5)); > - if (ret) > - return ret; > - ret = ov5640_write_reg(sensor, OV5640_REG_PAD_OUTPUT00, > - on ? 0x00 : 0x70); > + /* > + * Enable/disable the MIPI interface > + * > + * 0x300e = on ? 0x45 : 0x40 > + * [7:5] = 001 : 2 data lanes mode Does 2-Lanes work with this config? AFAIU, if 2-Lanes is bit 5, value should be 0x25 and 0x20. > + * [4] = 0 : Power up MIPI HS Tx > + * [3] = 0 : Power up MIPI LS Rx > + * [2] = 1/0 : MIPI interface enable/disable > + * [1:0] = 01/00: FIXME: 'debug' > + */ > + ret = ov5640_write_reg(sensor, OV5640_REG_IO_MIPI_CTRL00, > + on ? 0x45 : 0x40); Regards, Loic