From patchwork Tue Apr 27 12:06:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 12226609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFE5DC433ED for ; Tue, 27 Apr 2021 12:09:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8525C613B2 for ; Tue, 27 Apr 2021 12:09:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8525C613B2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=yRY163A/XZk46KlRCpKzJKRsY1JGKF0eCV/y6mUOvEo=; b=CF90RTRhZj+KM4zk89fDY2rRZM EkZPbfWbSiZDj3MS/k9TagTNLyVTlv4B+aLP2t43VKYyd1MGokXZBpNvLLvIY3W0RcqG8eQQjFpXY nWSrT//7L81iA85Th1RWzdLEdsIHbXzsh9qgCNf44xYrEtK/PTC1FMgDAs9UGmd5n0ZeAdVyKSmTO zAiNZXTO8paoqefikX4z+lwCxA6MRU8whGGPqbS5QIXem+Mqqjec2GJtohmyk1jz320qa5+lCXSiE XtT0XzjNETMhIO2yK2suEk2E/LBNKhvKAiLyqk4PJzH5980j3Uu5LAc54ZfmJMuaCsZXWoYznm/3+ K9is8a4Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lbMVD-001a7B-Go; Tue, 27 Apr 2021 12:07:43 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbMUy-001a4L-C5 for linux-arm-kernel@desiato.infradead.org; Tue, 27 Apr 2021 12:07:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=Ol5yI3IFajhsM0UmkWcDYFGjprBTyWz0INF02yVQSs0=; b=AIIVOfyzvVsQykTmgtcPOUsPV2 WIUbUTZoiHvKVI3JN04DNc6vy6z9rFmmBRBw8akm1KNPhQyqcRRYDczgWTJkTiLfVUGnMmmVJ5THt d6q3KjhxPyBFWD1fjokQ/nPlUA+hjZQqMh8X6peEknliyA1JzplbtzzJCvP/GqKuEFCP4Ex3VyDZm GD/rzSDjGUqywsmIQ8sFAr7OnteVMjnT/NXFYjoyJNJLamUs7GALkXQgkfbmaILN0lPo0LvA9yVGH DVEhs945t8qdBmyAj99tV0mfZR6MkbMURIhvIEoF00Nl7cHGVlMn2ToivwuS1cPNrSAnFsfoNb1uO vU9H2ecQ==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lbMUv-00Gi9Y-Ji for linux-arm-kernel@lists.infradead.org; Tue, 27 Apr 2021 12:07:27 +0000 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbMUm-0006DF-09; Tue, 27 Apr 2021 14:07:16 +0200 Received: from mfe by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lbMUl-0005uj-A1; Tue, 27 Apr 2021 14:07:15 +0200 From: Marco Felsch To: p.zabel@pengutronix.de, mchehab@kernel.org, slongerbeam@gmail.com, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 0/6] Add new bayer ir formats Date: Tue, 27 Apr 2021 14:06:55 +0200 Message-Id: <20210427120701.21809-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210427_050725_676364_E21B73D3 X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, this adds the inital support for a new sensor format called RGB-IR found on sensors from OnSemi [1]. This is a new custom bayer format with interleaved ir pixels. For more information see the documentation commit. [1] https://www.onsemi.com/products/sensors/image-sensors-processors/image-sensors/ar0237sr Marco Felsch (6): media: uapi: Add MEDIA_BUS_FMT_SGRGB_IGIG_GBGR_IGIG media bus formats media: v4l: Add definition for bayered IR formats media: v4l2-ioctl.c: add V4L2_PIX_FMT_SGRGB_IGIG_GBGR_IGIG to v4l_fill_fmtdesc media: video-mux: add new SGRGB_IGIG_GBGR_IGIG format support gpu: ipu-v3: add custom SGRGB_IGIG_GBGR_IGIG format support media: imx: csi: add custom SGRGB_IGIG_GBGR_IGIG format support .../media/v4l/subdev-formats.rst | 42 +++++++++++++++++++ drivers/gpu/ipu-v3/ipu-cpmem.c | 2 + drivers/gpu/ipu-v3/ipu-csi.c | 2 + drivers/media/platform/video-mux.c | 2 + drivers/media/v4l2-core/v4l2-ioctl.c | 2 + drivers/staging/media/imx/imx-media-csi.c | 2 + drivers/staging/media/imx/imx-media-utils.c | 12 ++++++ include/uapi/linux/media-bus-format.h | 4 +- include/uapi/linux/videodev2.h | 4 ++ 9 files changed, 71 insertions(+), 1 deletion(-)