[libcamera-devel] [PATCH] libcamera: camera_sensor: Add OV9281 sensor properties

Kieran Bingham kieran.bingham at ideasonboard.com
Fri Nov 11 17:36:55 CET 2022


Add an entry to the sensor properties for the OmniVision OV9281. Test
patterns are not enabled yet as the driver is not in an upstream kernel.

Unit cell size obtained from [0].

[0] https://www.ovt.com/wp-content/uploads/2022/01/OV9281-OV9282-PB-v1.3-WEB.pdf

Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 src/libcamera/camera_sensor_properties.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index e5f27f06eb1d..3a6682f37707 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -160,6 +160,12 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 				 */
 			},
 		} },
+		{ "ov9281", {
+			.unitCellSize = { 3000, 3000 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+			},
+		} },
 		{ "ov13858", {
 			.unitCellSize = { 1120, 1120 },
 			.testPatternModes =  {
-- 
2.34.1



More information about the libcamera-devel mailing list