From patchwork Mon Jul 17 23:23:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suhrid Subramaniam X-Patchwork-Id: 18840 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 652B1BDC71 for ; Mon, 17 Jul 2023 23:24:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 22279628C3; Tue, 18 Jul 2023 01:24:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1689636283; bh=9GJiDyFIQ6G+SCYwlwk5VsK9gbVfh/aRlCzjHKvEoQQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=3uTs6dW7f0Dvh1O5lii9U/kS6VqrtbhrASQFcJimdIPWYbBaTq+gN6tmc6EEHS9jz Xn7q7t7c8kHesWBQ9Z2qBHUH/9w0dG0ClA3PSfQLzMSJxU7SRAPWfR1vFKDsKHIb8B ouE1k5SK1djr1VndERxXhr6ZvVkHuabGGNR51sZfxs8jFkT5Tpa9LwyMT0i4vX4TEE 3CUrL+WxXvKg0XbFh+783ER7QvsPRKZXz+Xs2jjvRo+vZlC4WjOJXznHQHq6ne0Xtx OJX0GpVGQfMA1POv4tzyuO2ojHQbXxFa4y50MuaE6UZniojL/f4FP7fjMvWOfYS5Jj YmoE6BmQMtIdw== Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 754A561E2D for ; Tue, 18 Jul 2023 01:24:42 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LPuMSfTd"; dkim-atps=neutral Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-676cc97ca74so1464159b3a.1 for ; Mon, 17 Jul 2023 16:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689636280; x=1690241080; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Olgb+kh9RGns4B6Zdi3zRcYB0mmCzxGgFWSZFQBiZMI=; b=LPuMSfTdFiyXHqUs+jxh21eUkuHZf+UygmV5059dRh7F3yen9Rn4pYXhI4YmnMfYxM 9KBbI98+bFdaFa9Y5gZX52DXDymaAYY4sMET0Wg4Vnx0gXtkg1ZrRNvL5Ovrdltz1Bk1 akb9iV2HmwIVLzAvsgwhePGXtgLxbN4bi8WoBTN3/7ivHH8m1mbgkL+iBOVrLOy3sc0K YZ6zMbJucwWr3EhSoi+AAlipghgbujp9+lVMrF+ASOd28cHkSohja8sXHJXfbNnXVZXA Fsl44W+IDn59FlD9xZOUCcsBRCpNeXmGWEompMNsdEas5iN2ckhIzy7YWk2WIQdm57O5 l7MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689636280; x=1690241080; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Olgb+kh9RGns4B6Zdi3zRcYB0mmCzxGgFWSZFQBiZMI=; b=SNp5orTBcbFpJ1f9r9qf10/JEVyIa4NXEPtnsr0YJDPbL0jZwoTekU4mouqLPM8iH+ YLchUBq2p1I9V1zQyA6AsovFQ5xFWQySFFkZekEXP7adOh7ixKvVT5qMjFg2ogiObJQY 5Uw1L/aK2ki8uocPyZU6bBLCIR1PrkCSa59PVp4f2sy6JsmpEz5hVjJcXCZgs8TDdzFO ZygsjbsrBH05LxYP3/r4qULToRZfpInjw8Hw8EAvLlEHhuc/uVWddfY5g+wUihpOp89K GLXSOSGCyBCxU8PqcjP/LwDBrDlPaQ4atJTofWGJ6vERaXtRRHSOfEis32T6mgKNH6xz bLCA== X-Gm-Message-State: ABy/qLanQPMX+u9JIOYcoIpxQidDqLLP/ApW+uOwvCG7wdwiAX1mMq9y JMt+d0mJdEhhvYdsseR1pSsZ8NTqfwBDtg== X-Google-Smtp-Source: APBJJlFjIDAqSYUUokZfe/jSVxGgrq0dqZOfQwSudh8TVuktCM8+I8xheARAtUx4KrzRcCjA0kiUdw== X-Received: by 2002:a05:6a20:4428:b0:133:7a67:b477 with SMTP id ce40-20020a056a20442800b001337a67b477mr17278201pzb.1.1689636280543; Mon, 17 Jul 2023 16:24:40 -0700 (PDT) Received: from localhost.localdomain (sfosm0151r356001-v22.wiline.com. [67.207.106.98]) by smtp.gmail.com with ESMTPSA id k12-20020aa790cc000000b00682a839d0aesm303775pfk.112.2023.07.17.16.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 16:24:40 -0700 (PDT) X-Google-Original-From: Suhrid Subramaniam To: libcamera-devel@lists.libcamera.org Date: Mon, 17 Jul 2023 16:23:28 -0700 Message-ID: <20230717232328.98247-2-suhrid.subramaniam@mediatek.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230717232328.98247-1-suhrid.subramaniam@mediatek.com> References: <20230717232328.98247-1-suhrid.subramaniam@mediatek.com> MIME-Version: 1.0 Subject: [libcamera-devel] [libcamera-devel, v2, 1/1] pipeline: simple: Add support for MediaTek MT8365 platforms 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: , X-Patchwork-Original-From: Suhrid Subramaniam via libcamera-devel From: Suhrid Subramaniam Reply-To: Suhrid Subramaniam Cc: Suhrid Subramaniam Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The camera pipeline for MediaTek MT8365 consists of the following: Raw sensor (+ external ISP) --> SENINF --> CAMSV30 --> DRAM SENINF (SENsor INterFace) is a CSI-2 receiver. CAMSV30 (Camera Simple Version) is a DMA Engine which bypasses ISP3.0 and writes directly to DRAM. Both SENINF and CAMSV30 are supported by V4L2 drivers. MT8365 platform consists of a hardware converter called MDP which supports up to three streams. Signed-off-by: Suhrid Subramaniam Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham --- src/libcamera/converter/converter_v4l2_m2m.cpp | 1 + src/libcamera/pipeline/simple/simple.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/libcamera/converter/converter_v4l2_m2m.cpp b/src/libcamera/converter/converter_v4l2_m2m.cpp index 2a4d1d99..a5fc979b 100644 --- a/src/libcamera/converter/converter_v4l2_m2m.cpp +++ b/src/libcamera/converter/converter_v4l2_m2m.cpp @@ -445,6 +445,7 @@ int V4L2M2MConverter::queueBuffers(FrameBuffer *input, } static std::initializer_list compatibles = { + "mtk-mdp", "pxp", }; diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 05ba76bc..24835d50 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -193,6 +193,7 @@ static const SimplePipelineInfo supportedDevices[] = { { "dcmipp", {} }, { "imx7-csi", { { "pxp", 1 } } }, { "j721e-csi2rx", {} }, + { "mtk-seninf", { { "mtk-mdp", 3 } } }, { "mxc-isi", {} }, { "qcom-camss", {} }, { "sun6i-csi", {} },