From patchwork Fri Jun 20 13:49:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Mugnier X-Patchwork-Id: 23617 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 5A17ABDE6B for ; Fri, 20 Jun 2025 13:50:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3CD5168DE9; Fri, 20 Jun 2025 15:50:54 +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="1dod2iSX"; dkim-atps=neutral Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 11F6561535 for ; Fri, 20 Jun 2025 15:50:52 +0200 (CEST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 55KD7kLu010377; Fri, 20 Jun 2025 15:50:50 +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= t8sZQI9gVi9ZTibK+ekvJG7/6sqbNWZhrMB3rLbw51s=; b=1dod2iSXO0LdLdVb JWleyoF03YRJB0LQXj8JBTizVCULC7v5XT9/OcRl0nhfaQJm1NZD8tiHOkUcFp3i wnenHBiWq2FB//P4VfZfFppDQ5TA8SRHE4W/5nOzAs/Kvq70V8NRR5Rgymgw4lKJ 69Ws1NXCSXTNfmrr46eaf0cVgaoyTNIsHl9ACvdyPmV0b6r5zwWw9nOx+J4707Gw D1v9NgptWkJb7a+ghR87xmQo6G8kAdGYyZ31FCX8KzQoVouailm2TTBavkY8ZegI pjf3rj8556MWeXQlfXAosX+e3WkeKNPH9H+WQnp2r7PyCD+cM93svhzBWqPxlFj2 rIDJ2Q== 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 478x7aeqb3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Jun 2025 15:50:50 +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 5DABC40048; Fri, 20 Jun 2025 15:50:18 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B4A2AAC0B49; Fri, 20 Jun 2025 15:49:38 +0200 (CEST) Received: from localhost (10.130.73.167) 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; Fri, 20 Jun 2025 15:49:38 +0200 From: Benjamin Mugnier Date: Fri, 20 Jun 2025 15:49:18 +0200 Subject: [PATCH 3/3] libcamera: libipa: Add vd56g3 support for libipa MIME-Version: 1.0 Message-ID: <20250620-vd56g3_support-v1-3-df434bdbc9bd@foss.st.com> References: <20250620-vd56g3_support-v1-0-df434bdbc9bd@foss.st.com> In-Reply-To: <20250620-vd56g3_support-v1-0-df434bdbc9bd@foss.st.com> To: CC: Naushir Patuck , Kieran Bingham , Sylvain Petinot , Cyril Liotard , "Jean Poire" , Benjamin Mugnier X-Mailer: b4 0.14.2 X-Originating-IP: [10.130.73.167] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) 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.0.736, FMLib:17.12.80.40 definitions=2025-06-20_05,2025-06-20_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" Adapted from rpi cam_helper and tuning files. Values are sourced initially from the vd56g3 user manual. Signed-off-by: Benjamin Mugnier --- src/ipa/libipa/camera_sensor_helper.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index 7c66cd57d6857e43863375d0b32d688fb5a1063c..dcd69d9f2bbb39feabfefe41cee8b45f0f958127 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -745,6 +745,18 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("ov13858", CameraSensorHelperOv13858) +class CameraSensorHelperVd56g3 : public CameraSensorHelper +{ +public: + CameraSensorHelperVd56g3() + { + /* From datasheet: 0x40 at 10bits. */ + blackLevel_ = 4096; + gain_ = AnalogueGainLinear{ 0, 32, -1, 32 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("vd56g3", CameraSensorHelperVd56g3) + #endif /* __DOXYGEN__ */ } /* namespace ipa */