media: ov8856: Add support for 2 data lanes
authorShawn Tu <shawnx.tu@intel.com>
Fri, 16 Apr 2021 09:58:58 +0000 (11:58 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 09:53:37 +0000 (11:53 +0200)
commitc492ec9ae9ede77dd794b14913b0382376da2bff
tree2b831ab7c5ecc24b10db9e96bb5ec73d13c8675b
parent24786ccd9c80fdb05494aa4d90fcb8f34295c193
media: ov8856: Add support for 2 data lanes

The OV8856 sensor can output frames with 2/4 CSI2 data lanes.
This commit adds support for 2 lane mode in addition to the 4 lane
and also configuring the data lane settings in the driver based on
system configuration.

- Fix Bayer order output in 1640x1232 binning registers
- supported data lanes
  + 3280x2464 on 2 & 4 lanes
  + 1640x1232 on 2 & 4 lanes
  + 3264x2448 on 4 lanes
  + 1632x1224 on 4 lanes

Signed-off-by: Shawn Tu <shawnx.tu@intel.com>
Acked-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov8856.c