From patchwork Wed Nov 18 08:08:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 28957 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 E64B8BDE17 for ; Wed, 18 Nov 2026 08:09:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A72856A8A0; Wed, 18 Nov 2026 09:09:18 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="kPCEx9JH"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0B06C6A7EA for ; Wed, 18 Nov 2026 09:09:17 +0100 (CET) Received: from mail.ideasonboard.com (unknown [IPv6:2401:4900:1c67:cdf:7464:6c04:36e4:ee87]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 497F94F1; Wed, 18 Nov 2026 09:06:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1794989208; bh=xUlhhkdJTRtg9m6/ZdMPT6oSAhlshgO/VZ5i9gsF/Rs=; h=From:Subject:Date:To:Cc:From; b=kPCEx9JHV43TfOXyD81DvfG1gHSdyW6duMutPUQYYXIMVvLi9QW53ejfyjdHIojMc kUIGrr/n5lUQnKYswv+bt6B41+33PrJVPWftfg2nGrferaR6gbfhpWTlA8BSmncyq9 gv5d7KkK39M/l5CFVdIyaufegbF2HxlSJ9o/kV1Q= From: Jai Luthra Subject: [PATCH v4 0/4] libcamera: sensor: Add support for Sony IMX585, IMX675, IMX676, IMX832 Date: Wed, 18 Nov 2026 13:38:24 +0530 Message-Id: <20261118-mainline-imx676-v4-0-48ae007f11b4@ideasonboard.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3XNTQrCMBCG4atI1kYm0zZpXXkPcZHmRwdsIomUi vTuxm4Uqsv3g3nmybJL5DLbb54suZEyxVCi3m6YuehwdpxsaYaAUoCo+aApXCmUfZikkrxXTqn WeGnAs3J1S87TtIjHU+kL5XtMj+XBKN7rf2sUHLhXTQNd29pKqgNZp3MMfdTJ7kwc2Jsc8YtBX DNYGOjbqvMCQBj4w1QfRkCzZqrCaJSIthay6fofzDzPLySKLgFDAQAA X-Change-ID: 20261014-mainline-imx676-b7e778cf6c0f To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck , Laurent Pinchart , Kieran Bingham , =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= , Dave Stevenson , Jai Luthra X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2971; i=jai.luthra@ideasonboard.com; h=from:subject:message-id; bh=xUlhhkdJTRtg9m6/ZdMPT6oSAhlshgO/VZ5i9gsF/Rs=; b=owEBbQKS/ZANAwAKAUPekfkkmnFFAcsmYgBq/V0ja9n14FWBGVte1CfeqNCCvemtZ78uAyhwA 5FZaXAr1ayJAjMEAAEKAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCav1dIwAKCRBD3pH5JJpx RY39D/9UTD7LXt7prjzqYoBpR+k0dkH7niSUXYsUSb/T17L1JplGwEXlfFlZ/LdNnCVZCvOBVmK WXinXBwQlHxetWx7siZffNHLg0LzOQ+8YiowfEeDdU1NU6cZUNMAa0sDgdM2xjXn7v5mbPGCZ/t ljfZmYyz/ksZHdtgHcu7canqDD7Ni9p9a+BmnLghi1/mf3N1KJfEvGpqoEN2Li6o0Snl0xOCOBm ZjAu3h9b0k+j/TNPPsMCKIzIg5EESFV3sE65hcoq2sUpuLUJZKfh3zU7+vmN4PA7hSlMp/JLei0 l0XKzn785VC4YTvVLQPkSFr/iWgRt+5h5HBYttBzN7nNyuJ7KEbb2jNK1Y5yzrRiRBXcuxp6Xp6 GwtZeOiWikqm5dTolnbQJAymVT3wC6MopMHL4z0pewRunp2dUwkOukodeaPJJQ4g+abVh26Jmn1 hbNdElvUbSNqUhJQa+ARPbs9Qh1WXIXULKLJkk21RyJFVDhF0vV84FZN8V3uKCppb+FP+z91t53 DD3dBmc9rw8vJvpoApADUlKs5ou3Al2E9LWo7MCpI/1xGtDbdDSJcdHwr3srriN16WfU4PlAJif nvFwpIKWEtV9O3tk31nnWm7aDpIbFgznBf9NQBTHhX+rSmrINtWsHH4kOgALDwRtu6rv4scS/sU EjEbAVa+KHOo9pg== X-Developer-Key: i=jai.luthra@ideasonboard.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 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" This series adds support for Sony IMX585, IMX675, IMX676 and IMX832. All of these are Starvis 2 sensors, with a very similar feature set to other supported sensors from the same family (IMX678, IMX662). PATCH 1 simplifies the libipa sensor helper factory mechanism to easily match multiple sensor models to a single helper PATCH 2-3 add basic camera sensor properties, and libipa helpers, combining them wherever possible PATCH 4 adds support for IMX585 and IMX676 in the existing Raspberry Pi sensor helper for Starvis 2 sensors. This series does not yet add sensor tuning files for any platform, but the camera helpers should at least unblock development using local JSON files. This sensor can be supported in mainline linux using the common Starvis 2 driver: https://lore.kernel.org/all/20261029-media-starvis2-v7-0-b33a1332fdfc@raspberrypi.com/ Signed-off-by: Jai Luthra --- Changes in v4: - Swap order of [PATCH 2/4] and [PATCH 3/4] - Implement a separate libipa cam helper with exposureMargin_ = 8 for IMX585 and IMX676, now that exposureMargin_ is defined in mainline - Add Naush and Kieran's R-by tags - Link to v3: https://patchwork.libcamera.org/project/libcamera/list/?series=6332&state=%2A&archive=both Changes in v3: - [PATCH 1/4]: Fix indentation, doxygen warnings, reword commit message and add a comment to clarify that we are combining different models for convenience only. Carry Kieran's R-by tag. - [PATCH 2/4]: Don't use the sensor family name for the shared helper, instead reuse the existing Imx678 helper. Reword commit message. - Introduce [PATCH 3/4] to support IMX675 and IMX832 as well - Link to v2: https://patchwork.libcamera.org/project/libcamera/list/?series=6282&state=%2A&archive=both Changes in v2: - Simplify reusing camera sensor helpers for multiple sensor models - Update the minimum for frameIntegrationDiff to 8, matching the datasheet - Add IMX585 support too while we're at it - Link to v1: https://patchwork.libcamera.org/project/libcamera/list/?series=6246&state=%2A&archive=both --- Jai Luthra (4): ipa: libipa: camera_sensor_helper: Match multiple sensors per helper libcamera: camera_sensor: Add properties and helpers for Sony IMX675 and IMX832 libcamera: camera_sensor: Add properties and helpers for Sony IMX585 and IMX676 ipa: rpi: cam-helper: Support IMX585 and IMX676 src/ipa/libipa/camera_sensor_helper.cpp | 123 +++++++++++----------- src/ipa/libipa/camera_sensor_helper.h | 12 +-- src/ipa/rpi/cam_helper/cam_helper_starvis2.cpp | 14 ++- src/libcamera/sensor/camera_sensor_properties.cpp | 40 +++++++ 4 files changed, 121 insertions(+), 68 deletions(-) --- base-commit: 08c79822a408ea7dbe43320a8d795d2747ea6d33 change-id: 20261014-mainline-imx676-b7e778cf6c0f Best regards,