From patchwork Sun Nov 24 19:29:45 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: 22059 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 C6B17BD808 for ; Sun, 24 Nov 2024 19:29:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 209E765FF7; Sun, 24 Nov 2024 20:29:56 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VYOsO9hs"; dkim-atps=neutral Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E699A65FC6 for ; Sun, 24 Nov 2024 20:29:54 +0100 (CET) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-43167ff0f91so33858925e9.1 for ; Sun, 24 Nov 2024 11:29:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732476593; x=1733081393; 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=LcTvK2wcLc8uV4wA0Cex+S5f20lcJmLQpuV66y6tPPU=; b=VYOsO9hssQewxYqtDpx2im8JIbTJJga9pTlwwz2nrEukEo+MsNrRRUIcPTJHRwIz/r NLMCiurJhHidNXANwS1UyIOFTh1iucyEES0iqjQP0yJ1obl3yol8g3GVyuByC7hLFv9F iF49Z9QOh6TaPMNTOx8HbHCdYWCuZcbVcUUawCHdi7dXSadyjB8Y+MS5z+GjwSEk0n1i /szHfB6t/f6lP2qPNNTxMzT33Eu3NbcpIMoQ58yL29GyKHmbqpJrqicOTKIqJ7v21fPo CnCl39NXZFCBj3/mdZCGRNDch6FCZhMAQR1nfnherqOtuyN1zcoLGT38LEvA9AiOkeAh o4iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732476593; x=1733081393; 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=LcTvK2wcLc8uV4wA0Cex+S5f20lcJmLQpuV66y6tPPU=; b=NhLStqdI0tZpO3pCL+uoao6SetkltwMCrTYW8YFBzpMnnVuv7zYZ02QGfOhfR4/ZDG kKWP5hnBxrEm1+vltzfIKBkabCnNP0SOa4Z/gKSFLy5uH1vXrM8b/6/BMec37qJX6eSD lsWRoFmx4JcjnYF7qh+3a5k8wzIQ6gQ/ZBcwesAl5CpJrUKj/poDTR7m/mW1x9S1bLHd 44a/MLxRl3NKxAjMOEMogg9SCUYMBWP/ye3sZ5O39WMD2+uN+qVsm1U9go/9jNvqslGf /aFrFmwjwUU/TZ80C96MbTIF8fB8AydbVFMYnGg6kH7X3AKnyQqukEB7r4ovVCGe7n19 RV5g== X-Gm-Message-State: AOJu0YyYY5qugXLFPen00YhW8RZWi6AuFcUXQvnjZjLNKSzsWX1pWTZI 0zAsUS+fOm93jeAXoNsXIcfvKA6AZJ9Fvqssk+T4ZA4/XjB9QXWlgLfWdw== X-Gm-Gg: ASbGncvoMaB3ZhbSysvyyDjgO49WaHvEvcz5U56gdwLuhUxp4fLDbOTXEKTP0guQINH xF0gq9JohnUz/HUE0s+B9CZMkiBKfzEp+3N9aNxBdX/2gxyiwdQc1hQNkAPajGdKfTBcf9O9aR6 xePZDVf/cZpSQYyKL6uGb6jKk/bkHMJmZh2XCV8CgH9fXGNTXa/jc5vkTOT1tD/34NQyuDwMFZu Juf8KFmO700QdxVlJFqB6ozwugo023MM6mfUGBK5Y82iCx4gxHixwlARo3wP0smrZHlqSOAYmxp yEi8PWl2wzStZlEZowDOqRUJB3TZDrz44zgHfE6s7OcLcdTrAUb+GZg= X-Google-Smtp-Source: AGHT+IENhKCnE7BwQyu1YZWDaZEDPE8eDN6tqNfQZMRRwt2v7FnpytbIH0MJPJlcBDe1uyFp/SwY2Q== X-Received: by 2002:a05:600c:1f85:b0:431:5f1c:8359 with SMTP id 5b1f17b1804b1-433ce42700fmr97537905e9.15.1732476593472; Sun, 24 Nov 2024 11:29:53 -0800 (PST) Received: from localhost.localdomain (ptr-gh3gmp9ck9bx99mg7lb.18120a2.ip6.access.telenet.be. [2a02:1812:2512:400:400a:4d18:885b:f46f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b463ab6csm169691645e9.35.2024.11.24.11.29.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Nov 2024 11:29:52 -0800 (PST) From: Geoffrey Van Landeghem To: libcamera-devel@lists.libcamera.org Cc: Geoffrey Van Landeghem Subject: [PATCH v3 0/5] Add support for Sony IMX327 and IMX462 sensors Date: Sun, 24 Nov 2024 20:29:45 +0100 Message-ID: <20241124192950.542686-1-geoffrey.vl@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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 upstream: https://lore.kernel.org/linux-media/20241114-media-imx290-imx462-v1-0-c538a2e24786@raspberrypi.com/ Also discussed here: 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. V3 of this patch set focusses on better commit messages and also includes an extra patch for setting the default black level for Sony IMX290 (and IMX327 and IMX462) sensor(s). Thanks, Geoffrey Geoffrey Van Landeghem (5): libcamera: libipa: camera_sensor: Provide helper and properties for Sony IMX462 ipa: rpi: cam_helper: Add Sony IMX327 ipa: raspberrypi: Add tuning file for IMX462 sensor ipa: raspberrypi: Add tuning file for IMX327 sensor libcamera: libipa: camera_sensor_helper: add IMX290 black level src/ipa/libipa/camera_sensor_helper.cpp | 7 + src/ipa/rpi/cam_helper/cam_helper_imx290.cpp | 2 + src/ipa/rpi/vc4/data/imx327.json | 215 ++++++++++++++++++ src/ipa/rpi/vc4/data/imx462.json | 215 ++++++++++++++++++ src/ipa/rpi/vc4/data/meson.build | 2 + .../sensor/camera_sensor_properties.cpp | 4 + 6 files changed, 445 insertions(+) create mode 100644 src/ipa/rpi/vc4/data/imx327.json create mode 100644 src/ipa/rpi/vc4/data/imx462.json