From patchwork Wed Nov 27 13:32:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Scally X-Patchwork-Id: 22122 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 09F67C3213 for ; Wed, 27 Nov 2024 13:32:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BACDA660D7; Wed, 27 Nov 2024 14:32:52 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="dVJK19Ej"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C4975660B5 for ; Wed, 27 Nov 2024 14:32:48 +0100 (CET) Received: from mail.ideasonboard.com (cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8D2A9792; Wed, 27 Nov 2024 14:32:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1732714345; bh=wsd/rbCDOl2WHFdR1QZwvjiEhm0C6b3amB0ESAVEbeU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVJK19Ej+bmHdrjiirMee0Yp3z7SV4EcuO2npfSKi9b10lk8kYKnFfZhv5yy9W3Ur 2/GFijWD2jBYHyliL0mhvHRdPgkvO2FckRY0gzlEGnfTKJXl819KqxcnbiFjd9H9jT 4ZznnEbr5U4Kfl9l/o3m8MrHhAEdSDDvqUR8KpNI= From: Daniel Scally To: libcamera-devel@lists.libcamera.org Cc: david.plowman@raspberrypi.com, naush@raspberrypi.com, Daniel Scally Subject: [PATCH 1/2] libcamera: camera_sensor_properties: Add ov7251 and ov9281 Date: Wed, 27 Nov 2024 13:32:32 +0000 Message-Id: <20241127133233.247977-2-dan.scally@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241127133233.247977-1-dan.scally@ideasonboard.com> References: <20241127133233.247977-1-dan.scally@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add entries for the OmniVision OV7251 and OV9281 sensors. The control delay values are drawn from the Raspberry Pi CameraSensorHelper class for these sensors - the pixel sizes from the datasheets. Both sensors are monochrome and do not have test pattern settings that correspond to defined control values. Signed-off-by: Daniel Scally Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- .../sensor/camera_sensor_properties.cpp | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index 3fe18c16..0eccc937 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -360,6 +360,16 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen .hblankDelay = 2 }, } }, + { "ov7251", { + .unitCellSize = { 3000, 3000 }, + .testPatternModes = { }, + .sensorDelays = { + .exposureDelay = 2, + .gainDelay = 2, + .vblankDelay = 2, + .hblankDelay = 2 + }, + } }, { "ov8858", { .unitCellSize = { 1120, 1120 }, .testPatternModes = { @@ -389,6 +399,16 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen }, .sensorDelays = { }, } }, + { "ov9281", { + .unitCellSize = { 3000, 3000 }, + .testPatternModes = { }, + .sensorDelays = { + .exposureDelay = 2, + .gainDelay = 2, + .vblankDelay = 2, + .hblankDelay = 2 + }, + } }, { "ov13858", { .unitCellSize = { 1120, 1120 }, .testPatternModes = {