From patchwork Mon Jul 28 09:09:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Mugnier X-Patchwork-Id: 23985 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 B5CB1BDCC1 for ; Mon, 28 Jul 2025 09:11:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id C49DF69145; Mon, 28 Jul 2025 11:11:30 +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="UajpYJea"; 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 000036146B for ; Mon, 28 Jul 2025 11:11:27 +0200 (CEST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56S8pI0J000871; Mon, 28 Jul 2025 11:11:27 +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= M+uFdPMYfPrE8yu4SHimK48a9kpYfFn54oyM1zF44tc=; b=UajpYJeazhKrYFO/ ElLb02N7Nsx6eNU8hFq/dCZtSjlzfLZgvI1G/l6fLsUGcpslbQ0qZZ6UBmtcIkiq wPdUgV14zXyUTcYwniZYge1HxmZ62Ue43f+1Sj8/Tk7VSPM+jNcTAZHBSIE9Hgx2 pslVjg0rrdia33xw3g7801MsOl+8ts44cCtz8N5JYMWU5bWQO8RrBQ1njSYZkIp1 aHB9KTIF752uo63b6tKVC2lMb5PacCn/fb5mE6OJjcEFRDEmnokQe47oZr2YoQRA NB0jCz/DTCWodWi40R+lV2scg3SJmB7DaFoSTD0+nz2uBjqN+I2j2YzZtgSOiK4r e9a9yw== 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 484pc27bu2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Jul 2025 11:11:27 +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 C27904004C; Mon, 28 Jul 2025 11:10:47 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7652A6F4270; Mon, 28 Jul 2025 11:10:27 +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:27 +0200 From: Benjamin Mugnier Date: Mon, 28 Jul 2025 11:09:17 +0200 Subject: [PATCH v2 4/4] libcamera: libipa: Add vd56g3 support for libipa MIME-Version: 1.0 Message-ID: <20250728-vd56g3_support-v2-4-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" Values are sourced initially from the vd56g3 user manual. Signed-off-by: Benjamin Mugnier Reviewed-by: Laurent Pinchart --- 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 */