From patchwork Thu Jul 6 18:14:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jai Luthra X-Patchwork-Id: 18796 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 DA744C323E for ; Thu, 6 Jul 2023 18:14:59 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2C912628C0; Thu, 6 Jul 2023 20:14:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1688667299; bh=BxQJKdqe1GkbNrd7nrZBOI321ubZrK336882AgsPqaY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=rWMh8WnTOJ6QGKpi8xvYotq9MUnQeu9Px3Y914dBu+HPP1rc1zeF6dTZ/BRhKwAQ5 fukK1dJTQ5HD4fPxPfz0JsBERhh7JTgcE1BdXnF1DGRixvuJDVCrkD6o357R7CMEs9 JKZ6jVdVVelHFIIfQxgXXdy5ZoJo+LTJgX6Wm3UcJjbM3Lwa9r2ufzBglZrtMtDWxr //4wo7yvPKBRdWnjWpigIBqJhAai/yfgZ6FW4CjM6o9AtoBGLU0B3AJxUC/bSuUuWR w6nVX/159EL0xFjyIcsHLOX25dnJ3rbllTsmkOio8G9tpDWPDlWjg5VYoLxZ5aXFyu SFXLoiyO4TE/A== Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 643C161E36 for ; Thu, 6 Jul 2023 20:14:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="gYqDclrq"; dkim-atps=neutral Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 366IEpGQ121771; Thu, 6 Jul 2023 13:14:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1688667291; bh=Gvcm3301ArcoILsY6wS8rlGv13weSJn6AfMtGBR3Zh0=; h=From:To:CC:Subject:Date; b=gYqDclrqDbLJ5AysOHOBv6AfzvzQTOs4ZcWlFY0WBjA7+AHpc+5NTYX90vDQYw+mQ YRG0JPeWKVLozbvTi0aA15sNirWGKGhdP52wKk4f2GuGZmQULN4br8NNTDnQODMvF1 5AOC+DN7gudLsqajUzL/92DtbQ/T+CzGd9enNM7c= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 366IEpZ0086533 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 6 Jul 2023 13:14:51 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 6 Jul 2023 13:14:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 6 Jul 2023 13:14:51 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 366IEoRT005327; Thu, 6 Jul 2023 13:14:51 -0500 To: Date: Thu, 6 Jul 2023 23:44:47 +0530 Message-ID: <20230706181447.2698499-1-j-luthra@ti.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1428; i=j-luthra@ti.com; h=from:subject; bh=BxQJKdqe1GkbNrd7nrZBOI321ubZrK336882AgsPqaY=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBkpwQO6dDcBcxheRI/dGZfdxZ4l+Bl0N874FIEe ku5NYwIWNiJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZKcEDgAKCRBD3pH5JJpx RYicEADTJ5iXaHS3JZipTxOjX/VSUpFCI4VFzU/kSQar1J1S9jx8OtZqkrea5Ko4QC3DnT4AgPJ Vj/HuPA3V3vGoRsyVYloUVHmh3/OB92bJblNOLRwsOMnzQXv/hIrX8F/uo3oP60agWD1DXIaH9N pAk+TAKgJLKn+tVh5UW2vHTVzJDb12zN8oekCSRv6iwJLO3Rej5agCWJoYFqaZmGuYNi/coF6kM 1kS3l4JaQN5pfY4LIePE1kr1UGJDwwBjTef3roLkWFuQ0yI4cEPuHfIgdWHPzX76RT/xQJj4mka IreAc5RVAS2TcC3KxqylJgwxKUp5UszWhAckmifKMW/y+Yq3p0K2GFP66s3EKpXBEsNKnes8RFi pnBj85jX0ynWUjm2gDyoCh4Qg/oBJqWMJyvyzg/nfCpYFOA+3TK/hSv1E99roYAWhCGqKARFVd8 2vqVniJgEF/Ns809p1dhz1QI2UWfwECBps7b4cU2JaYUlsFQ0m57EqF76hPRAU+HC5pSjDSl02a Fm3hxzMNwCU+RYS4rC1hp2KxLahXGYXwrO/2LaEJIZwFxYpUDgYChiOy/BYjxoCjcCMnu4oi660 efwf5q7VCeqlBZ0GWkXl+MK4MGe5AdWRmR4JSiqTp6v+yKtMzroXmmw08r8laXIYG5dreVTB6SM 5f3++gshJWd1b/A! == X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Subject: [libcamera-devel] [PATCH] libcamera: pipeline: simple: Support TI CSI-RX 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: Jai Luthra via libcamera-devel From: Jai Luthra Reply-To: Jai Luthra Cc: Vaishnav Achath , Devarsh Thakkar Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" New TI SoCs from J7 and AM62 family have a camera pipeline that receives data using Cadence's DPHY-RX and CSI-RX bridge. A pixel-grabbing "shim" IP routes this incoming stream of data to the DMA subsystem, to finally store the frame data in memory. The driver for this is not merged in mainline yet, but v7 was posted [1] on linux-media list a few months ago. With some minor fixes, the work-in-progress v8 series [2] works with the simple pipeline handler, so we enable support for this device. Link: https://lore.kernel.org/all/20230314115516.667-1-vaishnav.a@ti.com/ [1] Link: https://github.com/jailuthra/linux/commits/6ff226ca13f34 [2] Signed-off-by: Jai Luthra Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Tested-by: Mattijs Korpershoek # on am62 sk evm --- I am planning to post the v8 series for review upstream in the coming few weeks. Tested with IMX219 on SK-AM62A (logs): http://0x0.st/H14X.txt src/libcamera/pipeline/simple/simple.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 7495587c..05ba76bc 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -192,6 +192,7 @@ namespace { static const SimplePipelineInfo supportedDevices[] = { { "dcmipp", {} }, { "imx7-csi", { { "pxp", 1 } } }, + { "j721e-csi2rx", {} }, { "mxc-isi", {} }, { "qcom-camss", {} }, { "sun6i-csi", {} },