From patchwork Mon Jul 28 09:09:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Mugnier X-Patchwork-Id: 23986 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 54504BDCC1 for ; Mon, 28 Jul 2025 09:11:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A2F7469148; Mon, 28 Jul 2025 11:11:31 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="ahL/DCE0"; dkim-atps=neutral Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BA1006146B for ; Mon, 28 Jul 2025 11:11:29 +0200 (CEST) Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56S3aEIS008479; Mon, 28 Jul 2025 11:11:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= JlCEJBLdVM9vYD8NkRsLSmnzPLr1VZvlMN9QKDo+DJE=; b=ahL/DCE0AhXCQBMS Od/9G1Q37uvugyBOIxDSgqjeTbcnH0pwT8PVbtxmnIlnT0NzwCO9J5D+ff2TFhb1 AbRIDJnPWhiUXsavZ+ORg7ko3fSC5lsKA1ZlP2tYHktWwiWPcueP3k6Y37OxjdKh qdM6h04dqz4DcCPTgLKR+PHikH2pd3D039hJM4vuEU5C+oy6f484HwOJT5ryBm9u 7SDwh/WBFzd50cxc4TXAQcyYEsA+YCMYk4cjsCs7rbWdbOyrGQNjEdiMvzBmxWw+ 0F7Ohh/Of8kp1CxdguOojCZvDMn7eDuf04d7QlsEPhXbE39JtkqsskrisBmiqWJP VksYHQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 484memfry1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Jul 2025 11:11:29 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id E0D9B4005C; Mon, 28 Jul 2025 11:10:45 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AA7DA6F557E; Mon, 28 Jul 2025 11:10:25 +0200 (CEST) Received: from localhost (10.130.78.67) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 28 Jul 2025 11:10:25 +0200 From: Benjamin Mugnier Date: Mon, 28 Jul 2025 11:09:14 +0200 Subject: [PATCH v2 1/4] libcamera: camera_sensor_properties: Add vd56g3 camera sensor MIME-Version: 1.0 Message-ID: <20250728-vd56g3_support-v2-1-cee5d5feac44@foss.st.com> References: <20250728-vd56g3_support-v2-0-cee5d5feac44@foss.st.com> In-Reply-To: <20250728-vd56g3_support-v2-0-cee5d5feac44@foss.st.com> To: CC: Naushir Patuck , Kieran Bingham , Sylvain Petinot , Cyril Liotard , "Jean Poire" , Benjamin Mugnier , Laurent Pinchart X-Mailer: b4 0.14.2 X-Originating-IP: [10.130.78.67] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293, Aquarius:18.0.1099, Hydra:6.1.9, FMLib:17.12.80.40 definitions=2025-07-28_03,2025-07-24_01,2025-03-28_01 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 unit cell size from the 'pixel size' element in the datasheet. Delays are set to 2 in case a setting is entered at the very end of the N frame, the N+1 frame will miss it and only the N+2 frame will use this new setting. Note that vd56g3 has a diagonal color test pattern, but does not match any description in specified test patterns and therefore is ignored. Signed-off-by: Benjamin Mugnier Reviewed-by: Naushir Patuck Reviewed-by: Laurent Pinchart --- src/libcamera/sensor/camera_sensor_properties.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index c9e9e148a1f08d64b63343ca2e204deaf9ef68c8..f297341770d075bafd53fd51387df2aef4f9953e 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -456,6 +456,27 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen }, .sensorDelays = { }, } }, + { "vd56g3", { + .unitCellSize = { 2610, 2610 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeSolidColor, 1 }, + { controls::draft::TestPatternModePn9, 6 }, + /* + * No corresponding test pattern mode for: + * 2: "Vertical Color Bars" + * 3: "Horizontal Gray Scale" + * 4: "Vertical Gray Scale" + * 5: "Diagonal Gray Scale" + */ + }, + .sensorDelays = { + .exposureDelay = 2, + .gainDelay = 2, + .vblankDelay = 2, + .hblankDelay = 2 + }, + } }, }; const auto it = sensorProps.find(sensor);