From patchwork Mon Nov 18 22:53:06 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: 21978 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 8DB5BC3260 for ; Mon, 18 Nov 2024 22:53:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1616C658F9; Mon, 18 Nov 2024 23:53:17 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="M6q0X7EB"; 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 C230F658F0 for ; Mon, 18 Nov 2024 23:53:15 +0100 (CET) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4316a44d1bbso30379845e9.3 for ; Mon, 18 Nov 2024 14:53:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731970394; x=1732575194; 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=QYLZvTrdbmTHyrPVtYcZQuKJBxmS+uPxJj2vy3NP/oU=; b=M6q0X7EBNNwigsBMwLcBK8sfffYCMNm+hHKeEQkhxtTqiu4aOm0Ovxh0DEoPCRPJd7 MuUr0/DjKS+3u1g7NOgTeZ3IyI8oHlx/6Z66ThbaPiNgDRd08lgOmvks3joOk0jHWOLS ymEBtbxgjoBAcbkd2UqtL4fpAmmsCytGhiFNUBO0C9dHH9QYRekE6ItIQUWMxCCgI4FS EphuuhyheCe6bqT3Ui4EH25JUGjQcPwdSP3e5r7hYmgH+I1xUbOaNW7MaGvExW+rc0aw CIeUwtxjN48T8mfHpF6Ic1ZJvR+pAHb9w3dFEQsNtIYPDP0z9VBo6LnEWp8JNU3X14Yz Ujwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731970394; x=1732575194; 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=QYLZvTrdbmTHyrPVtYcZQuKJBxmS+uPxJj2vy3NP/oU=; b=cAHrIrTZyHNhDEL+kk34Wnij1XO+lnSbVOUWqUp3jaRn4KwBdE9zOzIVzoVk4JfUwx ElOg60GGEeQfngbXIUAXXchirltkQEOi/QWuifx1utmbQ8ES5Qtunv6S/ku3LkSBWRXk TSjhhKlc+W/ViZ7jU1qJYbIvNuzjLeNwNDtgCJ2WVRCIPrCyUierIjBlME4DXQQlIxFR qPP6oI/9RsELckRIWa7+3BTxGS13ZWXodCMi0Lcxob16LiYqrFXMybqnPNBOrKEUH3Bh TWc3rsQu+oZHuNvGtcUush3TidFhQPNCW/iWpcs5oyl6ImzrrmxBDGQMHHBoOnLMr/3e NQuw== X-Gm-Message-State: AOJu0YxfgL8lLhHXNy1VLPpznPFjy0xKkcpwpCvwIRaQ1Ckbx52pnPkm eXFELtJApt/oD5X8fzyQkZZK592xBcEqiRZevj7uYnBYVqzNiJPU/dlwmVHf X-Google-Smtp-Source: AGHT+IG3DRfYJNkxq85OdDgcnKF1wDYkeSEIXuzLdgZLRtLPHXvZ5e6jd29i4ABXFjMY9frTUuw4wg== X-Received: by 2002:a05:600c:3584:b0:431:5c17:d575 with SMTP id 5b1f17b1804b1-432df72c841mr118768575e9.11.1731970394349; Mon, 18 Nov 2024 14:53:14 -0800 (PST) Received: from localhost.localdomain (ptr-gh3gmpb67n6nyq8fe1w.18120a2.ip6.access.telenet.be. [2a02:1812:2512:400:b7f4:fa69:c596:84e4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dab807d4sm170221535e9.21.2024.11.18.14.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2024 14:53:13 -0800 (PST) From: Geoffrey Van Landeghem To: libcamera-devel@lists.libcamera.org Cc: Geoffrey Van Landeghem Subject: [PATCH v2 0/4] Add support for Sony IMX327 and IMX462 sensors Date: Mon, 18 Nov 2024 23:53:06 +0100 Message-ID: <20241118225310.446706-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. Thanks, Geoffrey Geoffrey Van Landeghem (4): libcamera: libipa: camera_sensor: Provide CameraSensorHelper and CameraSensorProperties for the Sony IMX462 image sensor. ipa: rpi: cam_helper: Add Sony IMX327 ipa: raspberrypi: Add tuning file for IMX462 sensor ipa: raspberrypi: Add tuning file for IMX327 sensor src/ipa/libipa/camera_sensor_helper.cpp | 5 + 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, 443 insertions(+) create mode 100644 src/ipa/rpi/vc4/data/imx327.json create mode 100644 src/ipa/rpi/vc4/data/imx462.json Reviewed-by: David Plowman