From patchwork Wed Sep 16 18:49:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Alexander X-Patchwork-Id: 28309 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 EACDABDE6B for ; Wed, 16 Sep 2026 18:50:08 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8A706686FD; Wed, 16 Sep 2026 20:50:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=inspiredexperts.com header.i=@inspiredexperts.com header.b="MSsGftqC"; dkim-atps=neutral Received: from s1.inspiredexperts.com (s1.inspiredexperts.com [162.243.156.162]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E128568244 for ; Wed, 16 Sep 2026 20:50:05 +0200 (CEST) Received: from localhost (s1.inspiredexperts.com [127.0.0.1]) by s1.inspiredexperts.com (Postfix) with ESMTPSA id 87A6DD2D68A; Wed, 16 Sep 2026 12:50:00 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inspiredexperts.com; s=default; t=1789584603; bh=q2U5jngWlTVPbZvqnxmzlzetfcUhMcDiL20gQQmnzA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSsGftqCcPGPPb4xCDGlC1ZI682rTycZhfJe5/9Sz4pAbTv1TM6RkxmbIiy2lf+JN +YFs3QqqunmR6M3lP4SEzKoJuD3bEaf/RFvdurGMuieOHJ9tMW57kiY16bgejCeqRS UWSV2ss2Ja4wvqPK5ojYv7DjyCha8Ia0F9g1A344= From: James Alexander To: libcamera-devel@lists.libcamera.org Cc: James Alexander , Jacopo Mondi , Kieran Bingham , =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= , Oleg Mikheev Subject: [PATCH v2] libcamera: camera_sensor_properties: Add OmniVision OV08X40 properties Date: Wed, 16 Sep 2026 12:49:59 -0600 Message-ID: <20260916184959.204572-1-opensource@inspiredexperts.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <178937182524.1723501.8634459218676024286@ping.linuxembedded.co.uk> References: <178937182524.1723501.8634459218676024286@ping.linuxembedded.co.uk> MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on s1.inspiredexperts.com 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" 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 --- 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(+) 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 = {