linux/drivers/media
Luca Weiss a97b24febd media: i2c: ov5670: Support single-lane operation
Currently the driver always configures the sensor for dual-lane MIPI
output, but it also supports single-lane output. Add support for that by
checking the data-lanes fwnode property how many lanes are used and
configure the necessary registers based on that.

To achieve this we move setting register 0x3018 out of the general reg
sequence so we set it to the correct value. The pixel_rate value also
needs to be adjusted.

[Sakari Ailus: Use div_s64 to divide a 64-bit number]

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-03-20 15:54:56 +01:00
..
cec media: platform: cros-ec: Add Gladios/Lisbon to the match table 2023-03-19 22:58:10 +01:00
common media: saa7146: drop overlay support 2023-03-20 00:27:04 +01:00
dvb-core Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
dvb-frontends media: dvb-frontends: Fix a typo ("Unknow sleep mode") 2023-03-19 22:48:18 +01:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: i2c: ov5670: Support single-lane operation 2023-03-20 15:54:56 +01:00
mc media: mc: entity: Fix minor issues in comments and documentation 2023-02-06 08:37:12 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: bttv: drop overlay support 2023-03-20 00:29:11 +01:00
platform media: samsung: exynos4-is: drop simple-bus from compatibles 2023-03-20 15:28:17 +01:00
radio media: radio/wl128x: remove unnecessary (void*) conversions 2023-02-08 07:26:02 +01:00
rc media: rc: add Beelink Mini MXIII keymap 2023-03-19 22:21:54 +01:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: drop bitmap and clipping output overlay support 2023-03-20 00:30:27 +01:00
tuners media: mxl5005s: Bounds check size used for max array index 2023-03-19 22:50:49 +01:00
usb media: pvrusb2: VIDEO_PVRUSB2 depends on DVB_CORE to use dvb_* symbols 2023-03-19 22:58:30 +01:00
v4l2-core media: subdev: Add V4L2_SUBDEV_ROUTING_NO_MULTIPLEXING 2023-03-20 00:39:13 +01:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00