From patchwork Wed Nov 13 22:35:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoffrey Van Landeghem X-Patchwork-Id: 21892 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 68EE6C324C for ; Wed, 13 Nov 2024 22:44:29 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 819A56582B; Wed, 13 Nov 2024 23:44:28 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jT24gwpU"; dkim-atps=neutral Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id B05E0657CF for ; Wed, 13 Nov 2024 23:36:39 +0100 (CET) Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-37d5aedd177so6419f8f.1 for ; Wed, 13 Nov 2024 14:36:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731537399; x=1732142199; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Tlr1dXLdnam0CPN4niYvxQcdsM7HjCpJo8kuQcSScms=; b=jT24gwpUHG/74itdTSaxaDuIu5ls4bM1PHkPmqT0JuISMgSOc+jwattbqVaTbDdpb8 0CcSKeMYO3e+ogVDq6WZdP/5NVKF9/Igk3Ez9ShqIanZ4p4dvJ13Kq7BtH5xAnZyaF8d INWGCum51AzGPT4wHInseNLwoSD5PuLKmiCTpclRytghMNNTc5OYfiPBftGGQZp1WmQU N4dnf/ZOHGMviw2i4F3Q825pLbbMo48kuhMl4XnpFwTFMKzJ+sWCa3Fa8zX/WbZLaKgq sn9w6CxaZAQx5h2Gs19TTaS3qmMddrI9u6W2InvOBfx7UC5eTd7ofQb2+LKI2L0xgkKQ ss5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731537399; x=1732142199; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tlr1dXLdnam0CPN4niYvxQcdsM7HjCpJo8kuQcSScms=; b=i5SJU/+8OR87SPtsKAN56BhJ6yEaYW94Rq34uXAacbg1RHp/cumRpYU63xQ4spHYOG d2ud52IM15XuTyi5BH9VGSQJRCaY4PQuCeTAmgU3O5C8gZufLC49xNOY5ngrgEotmagV JDSjIygQmXGvfxAKxX0B/YHFSMm+mdHMwyqi2BBIrjcMVFpH47X/NFJl822ln3sq55Vp kbxx5qSwb2DiidQTbW2gCaFn4Y7UtjcPPZ2CsuGVMZErJfgVxpW6vOAxZFOo9YG5D3wL rtzVhLXqd1poYeqsIbVGD998KX6X/+A9z4yQMKo5pCuDeQ98ULDHc953PzAcyy3B1W3o WmvQ== X-Gm-Message-State: AOJu0YzmjpEk7IQmypc5gTGMLrAOMdCUrsuOG+wD1bB1cRCKxqVJkqpF w8Eeqwn5MH++uLmjt8/NUNLw9aQahUBSKdlJyl2dfXnlpNTjeheVQNtHew== X-Google-Smtp-Source: AGHT+IFXVRZHZNmuMrPp+dwnw8uyJH3fMDm+dT7CQ1dM8ou5SGF/CeUeGcuwumTcnKBt7hb1iPnstQ== X-Received: by 2002:a05:6000:1845:b0:37c:d4ba:1127 with SMTP id ffacd0b85a97d-3820df6117emr4398071f8f.16.1731537398839; Wed, 13 Nov 2024 14:36:38 -0800 (PST) Received: from localhost.localdomain (ptr-gh3gmpabk3m2xfsbzez.18120a2.ip6.access.telenet.be. [2a02:1812:2512:400:7ff6:bc6d:a745:500b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381eda04b52sm19268695f8f.101.2024.11.13.14.36.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 14:36:38 -0800 (PST) From: Geoffrey Van Landeghem To: libcamera-devel@lists.libcamera.org Cc: Geoffrey Van Landeghem Subject: [PATCH 1/4] libcamera: libipa: camera_sensor: Add Sony IMX462 sensor properties Date: Wed, 13 Nov 2024 23:35:54 +0100 Message-ID: <20241113223556.413637-2-geoffrey.vl@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 13 Nov 2024 23:44:26 +0100 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" Hi, This patch-set comes as part of an ongoing effort to support Sony IMX327 and IMX462 sensors better in the linux kernel. For the kernel following changes are proposed: https://github.com/raspberrypi/linux/pull/5859 After those changes have been applied, the 2 Starvis sensors will no longer be identied by libcamera as a IMX290 and therefore require this patch-set to work correctly. Signed-off-by: Geoffrey Van Landeghem --- src/ipa/libipa/camera_sensor_helper.cpp | 5 +++++ src/ipa/rpi/cam_helper/cam_helper_imx290.cpp | 1 + src/libcamera/sensor/camera_sensor_properties.cpp | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index c6169bdc..f870dc28 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -622,6 +622,11 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("imx415", CameraSensorHelperImx415) +class CameraSensorHelperImx462 : public CameraSensorHelperImx290 +{ +}; +REGISTER_CAMERA_SENSOR_HELPER("imx462", CameraSensorHelperImx462) + class CameraSensorHelperImx477 : public CameraSensorHelper { public: diff --git a/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp b/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp index e57ab538..0cc24a6d 100644 --- a/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp +++ b/src/ipa/rpi/cam_helper/cam_helper_imx290.cpp @@ -73,3 +73,4 @@ static CamHelper *create() } static RegisterCamHelper reg("imx290", &create); +static RegisterCamHelper reg462("imx462", &create); diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp index 6d4136d0..e2305166 100644 --- a/src/libcamera/sensor/camera_sensor_properties.cpp +++ b/src/libcamera/sensor/camera_sensor_properties.cpp @@ -142,6 +142,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen .unitCellSize = { 1450, 1450 }, .testPatternModes = {}, } }, + { "imx462", { + .unitCellSize = { 2900, 2900 }, + .testPatternModes = {}, + } }, { "imx477", { .unitCellSize = { 1550, 1550 }, .testPatternModes = {},