{"id":18581,"url":"https://patchwork.libcamera.org/api/1.1/patches/18581/?format=json","web_url":"https://patchwork.libcamera.org/patch/18581/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20230502111357.157442-1-dan.scally@ideasonboard.com>","date":"2023-05-02T11:13:57","name":"[libcamera-devel] libcamera: pipeline: simple: Add support for ST's DCMIPP","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"491c00ec198738af25d76e0518f3d69264570189","submitter":{"id":156,"url":"https://patchwork.libcamera.org/api/1.1/people/156/?format=json","name":"Dan Scally","email":"dan.scally@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/18581/mbox/","series":[{"id":3859,"url":"https://patchwork.libcamera.org/api/1.1/series/3859/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3859","date":"2023-05-02T11:13:57","name":"[libcamera-devel] libcamera: pipeline: simple: Add support for ST's DCMIPP","version":1,"mbox":"https://patchwork.libcamera.org/series/3859/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/18581/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/18581/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 050F8BD16B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  2 May 2023 11:14:10 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4477B633B4;\n\tTue,  2 May 2023 13:14:09 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 249C860538\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  2 May 2023 13:14:08 +0200 (CEST)","from mail.ideasonboard.com\n\t(cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net [86.13.91.161])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id CDEE6800;\n\tTue,  2 May 2023 13:14:05 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1683026049;\n\tbh=Gph7lxZ6oRl9DneDbS9F4Lvl6LB25JPHaEkWxF+z9yI=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:Cc:From;\n\tb=n0VVQNIVz6gXswPg3EcRJNURe+Pw4eLX+12GKBBLjmGL7+RwVFVCCpHeE2FqohiOO\n\t090mYHgnuLxz7LGOhIaUGoUxYXN9ShWcCSShRIEAtQWLK0+yqrBzYkJR+uhamghjIc\n\tkTAl/PSDv8NFw8Yiop30FYen5EceJCYSz8060ve3BKD5W35e468LfJlkxIKDLwC//X\n\tA0Ax0G+YaHOMNqVGqwWMunFLW27IDqKoVCcxYs/oPSsivniYcpbk4a2K30Z6e/7LAV\n\t+06C+BYBGlBxoRlzX7bh6CNBY0gussS0cJBXfZeim68qI9LOnoBnXsTLbo7WWnau65\n\tZjA3ivZ37+kFQ==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1683026046;\n\tbh=Gph7lxZ6oRl9DneDbS9F4Lvl6LB25JPHaEkWxF+z9yI=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=RWaootAdJkyDpUI9RsI0HnZs3E5MZv3zdzjoFEB1qvAJBS5wnSOP08UH32LUK6N6X\n\tPvD570H1Kg668wktYwAC9ZUyX0tgA+tfVAq3gBlCpVnx674B5iSoVZ/N3/xezHpzK0\n\trKlbrd4Qq2cZjm11vT/JaD/Tr2LUCjBBJ16kh3sA="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"RWaootAd\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Tue,  2 May 2023 12:13:57 +0100","Message-Id":"<20230502111357.157442-1-dan.scally@ideasonboard.com>","X-Mailer":"git-send-email 2.34.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH] libcamera: pipeline: simple: Add support\n\tfor ST's DCMIPP","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>","From":"Daniel Scally via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Daniel Scally <dan.scally@ideasonboard.com>","Cc":"hugues.fruchet@foss.st.com, alain.volmat@foss.st.com","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"The STM32 contains a camera pipeline known as the DCMIPP (Digital\nCamera-Memory Interface Pixel Processor) which receives data from a\nparallel interface and dumps the post-processed data to memory. The\npipeline is capable of some processing in the form of downscaling\ncaptured data through cropping or skipping the sensor's output.\n\nThe simple pipeline handler is quite capable of handling the DCMIPP\ngiven its operation is handled entirely through configuring the pads\nof a media graph, so add support for the driver to the pipeline's\nsupportedDevices array.\n\nSigned-off-by: Daniel Scally <dan.scally@ideasonboard.com>\n---\nSupport for the dcmipp has been tested on an stm32mp135f-dk with a gc2145\ncamera sensor. Note that the dcmipp driver **is not** in mainline at the moment,\nand nor is the gc2145's driver. @Hugues, @Alain, is there a plan to move those\ndrivers upstream?\n\nA few changes to ST's kernel were needed to fix some format propagation problems\nand some missing controls for the GC2145 for this to work. Those can be found in\nmy tree linked below [1], along with some fixes to the CSI-2 to Parallel bridge\ndriver which _is_ upstream and which I posted to linux-media [2].\n\n[1] https://github.com/djrscally/linux/tree/v5.15-stm32mp\n[2] https://lore.kernel.org/linux-media/20230502103547.150918-1-dan.scally@ideasonboard.com/T/#t\n\n src/libcamera/pipeline/simple/simple.cpp | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp\nindex e1f8b989..01516bc3 100644\n--- a/src/libcamera/pipeline/simple/simple.cpp\n+++ b/src/libcamera/pipeline/simple/simple.cpp\n@@ -194,6 +194,7 @@ static const SimplePipelineInfo supportedDevices[] = {\n \t{ \"mxc-isi\", {} },\n \t{ \"qcom-camss\", {} },\n \t{ \"sun6i-csi\", {} },\n+\t{ \"dcmipp\", {} },\n };\n \n } /* namespace */\n","prefixes":["libcamera-devel"]}