Show a patch.

GET /api/patches/27390/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 27390,
    "url": "https://patchwork.libcamera.org/api/patches/27390/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27390/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260720131047.2749510-2-naush@raspberrypi.com>",
    "date": "2026-07-20T13:07:55",
    "name": "[v1,1/2] libcamera: camera_sensor: Add Sony IMX662 sensor properties and helper",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c053495cd2579bedca13ce23fe38fe5f959a2a95",
    "submitter": {
        "id": 34,
        "url": "https://patchwork.libcamera.org/api/people/34/?format=api",
        "name": "Naushir Patuck",
        "email": "naush@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27390/mbox/",
    "series": [
        {
            "id": 6066,
            "url": "https://patchwork.libcamera.org/api/series/6066/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6066",
            "date": "2026-07-20T13:07:54",
            "name": "Add support for Sony IMX662",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/6066/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27390/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27390/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 74A31C328C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 20 Jul 2026 13:10:58 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2228E67E4C;\n\tMon, 20 Jul 2026 15:10:58 +0200 (CEST)",
            "from mail-wm1-x329.google.com (mail-wm1-x329.google.com\n\t[IPv6:2a00:1450:4864:20::329])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5FF7D66177\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 20 Jul 2026 15:10:54 +0200 (CEST)",
            "by mail-wm1-x329.google.com with SMTP id\n\t5b1f17b1804b1-49552f516beso803895e9.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 20 Jul 2026 06:10:54 -0700 (PDT)",
            "from naush-dell.pitowers.org\n\t([2a00:1098:3142:1f:e18f:c09d:5247:6bb6])\n\tby smtp.gmail.com with ESMTPSA id\n\t5b1f17b1804b1-4955df9d2f6sm62264585e9.4.2026.07.20.06.10.52\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 20 Jul 2026 06:10:53 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"mXvVOSIl\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1784553054; x=1785157854;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to:content-type;\n\tbh=CaSVr6YA68l61S9i4SSmYva/NBR2yVrKfdNfGA7MiA4=;\n\tb=mXvVOSIlXiPQtrcZGRw3yDbmMoVVyHkX98fPBnxeoYzOpMcOAoxh6KduT6lcEgU679\n\tjDaD5M8ZAVsm2zsI4aqi/tb+DNB1k3WeoG1689QgUouXQLNsjWGFij0fWGniQLRFsHT1\n\twnje7C+X+Mq8fyA2DI6WLAx8Uuii/m0N3VeoSik/60aHVfS2V+rR0oknoMVAS6ih3ANZ\n\tU9Ys7bnYTf8sJIPXIkpXJyWbbc0Wsp1wqhMUMEyWPCj2rUTmmPOY8/+YeV6UsxShhvpS\n\tju1qVII2zakI4f0H0MyoYRLKKF8ds2Sm9yqPoWt9pPeY4UvJ5t3hW/Qi8IlZON/lZD+U\n\tBYXQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20251104; t=1784553054; x=1785157854;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n\t:to:cc:subject:date:message-id:reply-to:content-type;\n\tbh=CaSVr6YA68l61S9i4SSmYva/NBR2yVrKfdNfGA7MiA4=;\n\tb=hiIHpTUt01p43kc0L7Sr5GpXhCIw992HGVES+ZSLNsGTQxY0hWU4NRZKTcXANUYIqq\n\tkb9vLDlAFxsdBjPFy25kA/u8U8Je/FxbiUzH6nFogTwjl3mLo7SBrDxorlaEybbfcmAp\n\tMJneuNHGTGwAJ8S1n6Tagq11m3V+f/T5CyC/uya5BFVI4sGXcX/7AM7Cw5qRko1uvIzg\n\tqvJJTxQWO9YZYmlsg1HlrDb6IKUshGG4YuaolHtfxnKY1zCwA1YC5T8WJ+My9WvxEie1\n\tu5WpQDagYnV8KLyYV934LptCKZykOP+bT9KBFiv8VDoXjim7MXtSFL8KhYtg5dPiesnO\n\tEoAA==",
        "X-Gm-Message-State": "AOJu0YwMfnLvjpoGsW7Vjwt9MU5a4+CDHyOIaDD0GVdEc9wMweuXuIDy\n\tazIl3e2sD8LmlFqKVuxXRZdAwiYYJqmhVCXII2LulGU8bAiccmP2lRmh0Z1v9Z7oz43oJdoczaw\n\tZ3kGncfE=",
        "X-Gm-Gg": "AfdE7cnf7NNLUR+sidBFks2rdg+8XZ2w0LlpE6a2WTwHKoOpa0ZAB5a3wkxDrImktR1\n\tV4zLsxZNDCE+P0IPCNNgvy73u13SmcXFf88kPHEE8FVERzFvXvdFDTqDVJMsUADXJuJuw+CS/sU\n\t8q4D1LGN0/2QlOe/nxnYws+uVjCkxWv4WvBVaCHVUVRGQiFSqNDcvc0hUWCc1rHs77kEZNL3hYN\n\tUVvLUBhNexP8NX4KKPr5IkySCr+lxsrmigy2s82asyOqiX+tlAB5bIs/WCuZC3dHGB6eZ6pY3UK\n\tYA8hd9IE12S5662BM6cV6XCbZDdu+pgY+CJ70zOlLeHqsnC57o3xTCqq87fKNUlSgKax2yTQMMY\n\tou2Vs2bqMoStTVEsmLFf/9TJwEppfTl6n4RK4ib2Q6AmEou7ikfyIuw7A5GOlvPcUg1Jv61FFVm\n\tQtzBWbRCIBY8pyqrbtetPVSB1QL5iWmkdAJzBfoGEC4880aCFL1Ju48hspiSkek+5db/8o4HAp8\n\tkGL4xhPVhEaifAFtKRW1w4Zxy5VFaygs/+qWNjZx/7p71xe0qNtxyIWHPsoXG3/Oq+7OWKqZq+n\n\tDz7KJuhIBQ==",
        "X-Received": "by 2002:a05:600c:46ca:b0:492:4a7a:e415 with SMTP id\n\t5b1f17b1804b1-4954a3eafb0mr91261775e9.2.1784553053919; \n\tMon, 20 Jul 2026 06:10:53 -0700 (PDT)",
        "From": "Naushir Patuck <naush@raspberrypi.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Naushir Patuck <naush@raspberrypi.com>",
        "Subject": "[PATCH v1 1/2] libcamera: camera_sensor: Add Sony IMX662 sensor\n\tproperties and helper",
        "Date": "Mon, 20 Jul 2026 14:07:55 +0100",
        "Message-ID": "<20260720131047.2749510-2-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260720131047.2749510-1-naush@raspberrypi.com>",
        "References": "<20260720131047.2749510-1-naush@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Add the camera sensor properties and camera helper entry for the Sony\nIMX662 sensor.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/ipa/libipa/camera_sensor_helper.cpp           | 12 ++++++++++++\n src/libcamera/sensor/camera_sensor_properties.cpp | 10 ++++++++++\n 2 files changed, 22 insertions(+)",
    "diff": "diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp\nindex 54a88c55bc2d..14d9690c1864 100644\n--- a/src/ipa/libipa/camera_sensor_helper.cpp\n+++ b/src/ipa/libipa/camera_sensor_helper.cpp\n@@ -642,6 +642,18 @@ public:\n };\n REGISTER_CAMERA_SENSOR_HELPER(\"imx477\", CameraSensorHelperImx477)\n \n+class CameraSensorHelperImx662 : public CameraSensorHelper\n+{\n+public:\n+\tCameraSensorHelperImx662()\n+\t{\n+\t\t/* From datasheet: 0xc8 at 12bits. */\n+\t\tblackLevel_ = 3200;\n+\t\tgain_ = AnalogueGainExp{ 1.0, expGainDb(0.3) };\n+\t}\n+};\n+REGISTER_CAMERA_SENSOR_HELPER(\"imx662\", CameraSensorHelperImx662)\n+\n class CameraSensorHelperImx678 : public CameraSensorHelper\n {\n public:\ndiff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp\nindex 7685524ad189..3672e8f0d79b 100644\n--- a/src/libcamera/sensor/camera_sensor_properties.cpp\n+++ b/src/libcamera/sensor/camera_sensor_properties.cpp\n@@ -309,6 +309,16 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen\n \t\t\t\t.hblankDelay = 3\n \t\t\t},\n \t\t} },\n+\t\t{ \"imx662\", {\n+\t\t\t.unitCellSize = { 2900, 2900 },\n+\t\t\t.testPatternModes = {},\n+\t\t\t.sensorDelays = {\n+\t\t\t\t.exposureDelay = 2,\n+\t\t\t\t.gainDelay = 2,\n+\t\t\t\t.vblankDelay = 2,\n+\t\t\t\t.hblankDelay = 2\n+\t\t\t},\n+\t\t} },\n \t\t{ \"imx678\", {\n \t\t\t.unitCellSize = { 2000, 2000 },\n \t\t\t.testPatternModes = {},\n",
    "prefixes": [
        "v1",
        "1/2"
    ]
}