From patchwork Tue Nov 24 16:58:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 29079 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 9C5B7BDE17 for ; Tue, 24 Nov 2026 16:59:01 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 46ACF6A9CC; Tue, 24 Nov 2026 17:58:59 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="v0k1jPkn"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BBDD36A979 for ; Tue, 24 Nov 2026 17:58:56 +0100 (CET) Received: from [192.168.95.178] (mob-5-90-67-29.net.vodafone.it [5.90.67.29]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DEC6AB5; Tue, 24 Nov 2026 17:56:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1795539383; bh=etFSUF/+UALgY7cAWaTrny96/qSnyHm9aertakbAGcw=; h=From:Subject:Date:To:Cc:From; b=v0k1jPknaiqsVWcVO7seaUSCfLDs8itKYrIr4XkhMC3OYv1dyWsJInJN7/d+21Gf+ WZrbltaUYoqVDTGpYge78oGuLhzhtssQyDtMmnTNK6fy5X99b7cIXZ6HECJvvWzrC3 gGZYvl8lQ9uLSyhFSEoWQbIR9RIX19lRFtX5qpZ4= From: Jacopo Mondi Subject: [PATCH v3 0/5] libcamera: Add Mira016 support Date: Tue, 24 Nov 2026 17:58:01 +0100 Message-Id: <20261124-b4-mira016-v3-0-b71d2cf61889@ideasonboard.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAAAAAAC/23NTQrCMBAF4KuUrI3kr5G48h7iIplObYQ2ktSgl N7dpG4UnN2D975ZSMLoMZFjs5CI2ScfphLkriEw2OmK1HclE8GE5uWoU3T00TKuKTipDJjeQKt JGdwj9v65YefLJ6eHuyHMVaiNwac5xNf2LfPa+wtnThmVirnOGSGV0CffoU1hcsHGbg9hJNXP4 lsQP4IoAhitlLQH1QL+EdZ1fQM+AUPE/wAAAA== X-Change-ID: 20261111-b4-mira016-cb349c9f9c56 To: Philippe Baetens , libcamera-devel@lists.libcamera.org Cc: Jacopo Mondi X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1947; i=jacopo.mondi@ideasonboard.com; h=from:subject:message-id; bh=etFSUF/+UALgY7cAWaTrny96/qSnyHm9aertakbAGcw=; b=owEBbQKS/ZANAwAKAXI0Bo8WoVY8AcsmYgBrBcJDFoVisFbRLe5sPkjcDSVnwgYqUFT/JyKOt 7764kI63tqJAjMEAAEKAB0WIQS1xD1IgJogio9YOMByNAaPFqFWPAUCawXCQwAKCRByNAaPFqFW PC+rD/4gnd4XomwYgcPsPIdszr1BNo14Xstd8yWbhaCY0gMJFR9+ulFs6oclX2BbQaO7jDnrcBJ PDlZ3JR/r+/DioHp6LmvZgofvO/fjrdtyPNhaoW+Uy2BqRnAFOAMX2y/r5mis7JSwewjM/X5JYX 8uKyamCti6VAj9HMKbpm0rde7xz3JD30nTT+FxoKTWVDeVqrbme9AECbVx0n9go5mDrB5ACnAAv UMhPEXpL6Vm+fa/1x/qxNqnrZEFWKn34dGjH8lIo35J6I+sCtjDZVqioKjHzSGl0/quKNqQKLfI gKHTV7bbzMP27MrS2rZ/yRsFLqHnm93Va0Mzf53hGJEVIzdpYFzND9/ksoqnRWJVeJ/Y7XLiR/Y dHPvG4SNEa0Fnx+PTudC9QZIsqknRudcVt4qF5gIHNL4KdqwHyrJKNeLHedwFM7xuhi29WUQnyz S2s2+yyOzEbhngzhf9FdPRR9m5d7EIWlRxYDnvHVS542z/jTunTu/7/PQTcS2Xy9K8Bs/aBQYrw AFB+63/ocqVCnv1HVAyeDZX9P7NV1Pbp4YPWphTQEnfl4ez5J3Lvbi9ze6Q8WTwOG+JftkrSanB y0JSzUMaK9Y693wrAnZ02We8IXEGdoZwwcoFjEV8UCixqZ8GofH6ZxLTIYgNjx2Jryis2UorARX X9MMTgSGr8j/UWA== X-Developer-Key: i=jacopo.mondi@ideasonboard.com; a=openpgp; fpr=72392EDC88144A65C701EA9BA5826A2587AD026B 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" Add support to the RPi IPA and to libipa for the AMS-OSRAM Mira016 sensor. Mira016 is a 0.5MPx global shutter mono sensor. The driver is queued for Linux v7.5 with a few additional patches on top which change the analogue gain handling to get rid of static tables. https://lore.kernel.org/linux-media/20261124-mira016-fixes-v1-0-20a7be606268@ideasonboard.com/T/#t The tuning for the RPi platforms have been performed by the vendor and is upported from their downstream libcamera tree at: https://github.com/ams-OSRAM/libcamera.git Signed-off-by: Jacopo Mondi --- Changes in v3: - Re-base on the analogue gain rework in the driver Changes in v2: - Use std::array as suggested by Barnabas for gain LUTs - Adjst gain() function to adjust the gain index to the 0-indexed gain table - Remove spurious static attribute - s/frame/lines in frameIntegrationDiff comment --- Jacopo Mondi (4): ipa: rpi: vc4: Add Mira016 tuning file ipa: rpi: pisp: Add Mira016 tuning file libcamera: sensor: Add Mira016 sensor properties libipa: camera_sensor_helper: Add Mira016 Philippe Baetens (1): ipa: rpi: cam_helper: Add Mira016 cam helper src/ipa/libipa/camera_sensor_helper.cpp | 43 ++ src/ipa/rpi/cam_helper/cam_helper_mira016.cpp | 78 ++++ src/ipa/rpi/cam_helper/meson.build | 1 + src/ipa/rpi/pisp/data/meson.build | 1 + src/ipa/rpi/pisp/data/mira016_mono.json | 480 ++++++++++++++++++++++ src/ipa/rpi/vc4/data/meson.build | 1 + src/ipa/rpi/vc4/data/mira016_mono.json | 102 +++++ src/libcamera/sensor/camera_sensor_properties.cpp | 12 + 8 files changed, 718 insertions(+) --- base-commit: f9112fc0c74320832547a1b436204b3d0a4f90fa change-id: 20261111-b4-mira016-cb349c9f9c56 Best regards, -- Jacopo Mondi