From patchwork Thu Mar 4 15:31:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 11497 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 16742BD80C for ; Thu, 4 Mar 2021 15:31:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 747B968A9A; Thu, 4 Mar 2021 16:31:25 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="KRppUtNh"; dkim-atps=neutral Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 93598602ED for ; Thu, 4 Mar 2021 16:31:24 +0100 (CET) Received: by mail-wm1-x32b.google.com with SMTP id h7so797065wmf.3 for ; Thu, 04 Mar 2021 07:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5WBktJdprX5LOSB1TrzbVJCHff2HXZcz3cAcvdDYr4I=; b=KRppUtNhJpehlA9chE8qBuKuYz7owIlPP7zJEZMKyPzFEvZb+qHfyTH4wcKpVHa1qi zqt1jYnYmtDKsxp06fPbXaG2hlJFMaBRvdB3pGnkrsUKAOWU/B91lECB7WPWREt2r8en 6Lwe1E48T0x1gAjyEaVmZmyqTyFVN/oeMg5O4hr56tmPmnFCWVNUrYKpTm/Kw4JpOSbc ptmSW1/DCp31IanvgXcmalfkeE4wyXzDVhy+oW8cLlsePdElM8k6xlHdfaf6dhe2eqG7 6+u9hAScNdX3j+V9qq6WWcDZRUh2pFsjfJT77xw1RFX3kqekW50Mn2c30sJB9r/q+xp8 6ROg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5WBktJdprX5LOSB1TrzbVJCHff2HXZcz3cAcvdDYr4I=; b=kxOX0gPkfItdMU7sE9lbRLclRcMlfLFN4kihW2zYK7Kcxr6I0faXkF8YetD77jJ2zH n5w5kQX2xoxpsZLupcLRX2HygDC4aYDjfOkKur0eOs2sxlhXwHzfqKkTAT59h2u/D6XW nmKuRTDvgw4EbrSAsYOnKlNAEsi5Eo+/0e8SEFlsnZ3JjZ+ntPRkxZoIlxP+k9/h4kXI i+CA0+Yde9MniewbalZQyqwkCpjfAaIdkdmkecDuVAPXcRyqCBr5oIZHaQaCp8ZzkF5n NA5qx0IjSMvJ4YOekLLWfIyhoGsUEML2Mxi4hJdGHgU5PCIwwWL5RvLSHM38wABDkns0 jdag== X-Gm-Message-State: AOAM530YKwkJKzTb1+krOmOjovvQhiJq85ROWEJHZRAK+TgQJzgYVkT9 SZMXY3cQrMVS9GCg3R/OIcmCU3VDRlTfmg== X-Google-Smtp-Source: ABdhPJx5Fsj5TJKYv29Twk/JMVneeQEiuHOpQvPe2e8HA79Td8XB4xW5QWyZvFvCu135/qLR0xoWug== X-Received: by 2002:a7b:cf16:: with SMTP id l22mr4434882wmg.26.1614871883959; Thu, 04 Mar 2021 07:31:23 -0800 (PST) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id f7sm20306129wrm.36.2021.03.04.07.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 07:31:23 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Thu, 4 Mar 2021 15:31:18 +0000 Message-Id: <20210304153120.1904-1-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Raspberry Pi support for new sensors 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 everyone There are 2 patches here. In many respects they're not really connected, except that the second commit assumes the presence of the first. Hope that's ok! The first commit extends our CamHelpers to return a vblank frame delay, as we do for exposure and analogue gain. To be honest we're a bit puzzled that the imx477 sensor has forced us into this, but we've stared at it for quite some while and haven't been able to make it work properly without. At some point we hope to come back to it, but for now this is all we have... The second commit adds the necessary files for modules using imx290/imx327 sensors. Note that they will display various AGC wobbles until other pending patches from Naush are merged. Thanks! David David Plowman (2): ipa: raspberrypi: Make CamHelpers return the frame delay for vblanking ipa: raspberrypi: Add support for imx290/imx327 sensors src/ipa/raspberrypi/cam_helper.cpp | 4 +- src/ipa/raspberrypi/cam_helper.hpp | 9 +- src/ipa/raspberrypi/cam_helper_imx290.cpp | 67 +++++++++ src/ipa/raspberrypi/cam_helper_imx477.cpp | 7 +- src/ipa/raspberrypi/cam_helper_ov5647.cpp | 7 +- src/ipa/raspberrypi/data/imx290.json | 165 ++++++++++++++++++++++ src/ipa/raspberrypi/data/meson.build | 1 + src/ipa/raspberrypi/meson.build | 1 + src/ipa/raspberrypi/raspberrypi.cpp | 6 +- 9 files changed, 256 insertions(+), 11 deletions(-) create mode 100644 src/ipa/raspberrypi/cam_helper_imx290.cpp create mode 100644 src/ipa/raspberrypi/data/imx290.json