[PATCH 00/13] media: i2c: os05b10: Refactor driver and Add new features

From: Tarang Raval

Date: Fri Mar 06 2026 - 07:38:07 EST


This series improves the OS05B10 sensor driver with cleanup,
refactoring, additional controls, and support for new modes.

Patches 1–3 perform initial cleanup and refactoring. Unused
group-hold programming is removed, register definitions are
introduced, and the initialization tables are reorganized by
splitting common and mode-specific registers.

Patches 4–6 add additional V4L2 controls including digital gain,
horizontal/vertical flip, and test pattern support.

Patches 7–9 extend the driver with 12-bit RAW support, update
pixel rate handling when switching between 10-bit and 12-bit
modes, and add new operating modes including 1080p and 2x2
binned 720p.

Patches 10–12 improve control handling and internal logic by
keeping vblank and exposure in sync on mode changes, updating
the active format before adjusting framing controls, and
renaming the vmax variable used by the VBLANK control.

Patch 13 adds support for 2-lane MIPI CSI-2 operation.

All patches were tested on the Debix Model A board running
Linux kernel v7.0-rc2.

Tarang Raval (13):
media: i2c: os05b10: drop unused group-hold programming
media: i2c: os05b10: add register definitions and use them in init
table
media: i2c: os05b10: split common and mode-specific init registers
media: i2c: os05b10: add V4L2 digital gain control
media: i2c: os05b10: Add H/V flip support
media: i2c: os05b10: Add test pattern options
media: i2c: os05b10: add 12-bit RAW mode support
media: i2c: os05b10: update pixel rate on 10/12-bit mode switch
media: i2c: os05b10: Add 1080p and 2x2 binning 720p modes
media: i2c: os05b10: keep vblank/exposure in sync on mode switch
media: i2c: os05b10: Update active format before adjusting framing
controls
media: i2c: os05b10: Rename vmax variable in VBLANK control
media: i2c: os05b10: add 2-lane support

drivers/media/i2c/os05b10.c | 676 ++++++++++++++++++++++++++++--------
1 file changed, 531 insertions(+), 145 deletions(-)

--
2.34.1