[v2] libcamera: camera_sensor_properties: Add OmniVision OV08X40 properties
diff mbox series

Message ID 20260916184959.204572-1-opensource@inspiredexperts.com
State New
Headers show
Series
  • [v2] libcamera: camera_sensor_properties: Add OmniVision OV08X40 properties
Related show

Commit Message

James Alexander Sept. 16, 2026, 6:49 p.m. UTC
The ov08x40 sensor helper is already present, but the sensor has no static
properties. This adds its documented 702 nm unit-cell size and test-pattern
mapping.

The unit-cell size comes from OmniVision's OV08X40 product information. Control
delays remain unspecified so the common defaults are used.

Signed-off-by: James Alexander <opensource@inspiredexperts.com>
---
Changes in v2:
- Use the documented 0.702 um unit-cell size.
- Map test-pattern value 2 to fading colour bars.
- Use the default control delays.

 src/libcamera/sensor/camera_sensor_properties.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Patch
diff mbox series

diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp
index 20cfd0bc1..f0f530f34 100644
--- a/src/libcamera/sensor/camera_sensor_properties.cpp
+++ b/src/libcamera/sensor/camera_sensor_properties.cpp
@@ -524,6 +524,20 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 				.hblankDelay = 2
 			},
 		} },
+		{ "ov08x40", {
+			.unitCellSize = { 702, 702 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 1 },
+				{ controls::draft::TestPatternModeColorBarsFadeToGray, 2 },
+				/*
+				 * No corresponding test pattern mode for
+				 * 3: "Vertical Color Bar Type 3",
+				 * 4: "Vertical Color Bar Type 4"
+				 */
+			},
+			.sensorDelays = { },
+		} },
 		{ "ov8858", {
 			.unitCellSize = { 1120, 1120 },
 			.testPatternModes = {