Skip to content

media: i2c: Add OmniVision OG0VA1B camera sensor driver

Wenmeng Liu linux-devicetree linux-media lkml 8 versions – In review

Get series with b4
b4 am [email protected] change-id 20260618-og0va1b-55bbf3cabb0e

Versions newest first

  1. v7 Latest3 patches 2 repliesIn review
  2. v64 patches 7 repliesSuperseded
  3. v5 posting 2/24 patches 1 replySuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v5 posting 1/24 patches1 replySuperseded
v44 patches0 repliesSuperseded
v33 patches8 repliesSuperseded
v23 patches10 repliesSuperseded
v12 patches7 repliesSuperseded

Changes in v7 from the cover letter

- Drop the test pattern rename patch. As Sakari noted, a monochrome
colour filter does not imply the internal TPG cannot generate colour patterns, so the original "Vertical Colour Bars" name is kept. -- Sakari
- Give the control registers shared by both sensors (mode select,
software reset, exposure, analogue gain, vertical timing and the test pattern enable bit) a common OG0V_ prefix; part-specific registers keep their per-sensor prefix. -- Sakari
- Reorder struct og0ve1b_sensor_data members to avoid padding. -- Sakari
- Link to v6: https://lore.kernel.org/r/[email protected]

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3dt-bindings: media: i2c: og0ve1b: Add OmniVision OG0VA1B camera sensorDocumentation/devicetree/bindings/media/i2c/ovti,og0ve1b.yaml+8 -70 replies
2/3media: i2c: og0ve1b: Introduce per-sensor data structuredrivers/media/i2c/og0ve1b.c+72 -280 replies
3/3media: i2c: og0ve1b: Add support for OmniVision OG0VA1Bdrivers/media/i2c/og0ve1b.c+304 -502 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchConor DooleyVladimir Zapolskiy
1/3A-b R-b
2/3R-b T-b
3/3R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/3] media: i2c: Add OmniVision OG0VA1B camera sensor driver

Add OmniVision OG0VA1B driver support. The OmniVision OG0VA1B is a 1/10-inch monochrome CMOS VGA image sensor. It outputs 10-bit raw (Y10) frames at up to 640x480 resolution over a single-lane MIPI CSI-2 interface and is controlled via an I2C-compatible SCCB bus.

This driver has been verified(include tpg) on the Purwa EVK.

---
Changes in v7:
- Drop the test pattern rename patch. As Sakari noted, a monochrome
colour filter does not imply the internal TPG cannot generate colour patterns, so the original "Vertical Colour Bars" name is kept. -- Sakari
- Give the control registers shared by both sensors (mode select,
software reset, exposure, analogue gain, vertical timing and the test pattern enable bit) a common OG0V_ prefix; part-specific registers keep their per-sensor prefix. -- Sakari
- Reorder struct og0ve1b_sensor_data members to avoid padding. -- Sakari
- Link to v6: https://lore.kernel.org/r/[email protected]

Changes in v6:
- Rebased onto v7.3-rc1 and added the Vladimir`s Reviewed-by tag for Patch 2.
- Link to v5: https://lore.kernel.org/all/[email protected]/

Changes in v5:
- Use div_u64() for pixel rate calculation to avoid 64-bit division
helpers on 32-bit architectures. -- sashiko-bot, kernel test robot
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4:
- Rename the OG0VA1B and OG0VE1B test pattern menu entries to make them
more accurate. -- Vladimir
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Generalise the binding title and description for both sensors. -- Vladimir
- Keep the cached pre_isp read so the OG0VE1B test pattern still works, select it via a per-sensor callback. -- Bryan, Vladimir
- Rename the "sensor" field to "data", drop bpp (derive from code) and
add og0ve1b_pixel_rate(). -- Vladimir
- Sort defines, rename the shared CHIP_ID reg to OG0V_ and order og0va1b_data first. -- Vladimir
- Expose all four OG0VA1B test patterns instead of one.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Integrate OG0VA1B into the existing og0ve1b driver and binding
instead. -- Vladimir
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Wenmeng Liu (3):
dt-bindings: media: i2c: og0ve1b: Add OmniVision OG0VA1B camera sensor
media: i2c: og0ve1b: Introduce per-sensor data structure
media: i2c: og0ve1b: Add support for OmniVision OG0VA1B

 .../bindings/media/i2c/ovti,og0ve1b.yaml           |  15 +-
 drivers/media/i2c/og0ve1b.c                        | 452 +++++++++++++++++----
 2 files changed, 383 insertions(+), 84 deletions(-)

---
base-commit: e5e04726cdd043e309677071ab1b65a4b18f422b
change-id: 20260618-og0va1b-55bbf3cabb0e

Best regards,

Signature · 1 line
Wenmeng Liu <[email protected]>